2/ Nepouzivejte prikaz "ps" pro detekci beziciho viru, nove varianty "ps" vylepsi za verzi, ktera je nezobrazuje. Vzdy pouzivejte pouze "/bin/ps"....
Kód: Vybrat vše
XM.v5.6.4# ps
  PID USER       VSZ STAT COMMAND
    1 ubnt      1988 S    init       
    2 ubnt         0 SW   [kthreadd]
    3 ubnt         0 SW   [ksoftirqd/0]
    4 ubnt         0 SW   [events/0]
    5 ubnt         0 SW   [khelper]
    8 ubnt         0 SW   [async/mgr]
   50 ubnt         0 SW   [sync_supers]
   52 ubnt         0 SW   [bdi-default]
   54 ubnt         0 SW   [kblockd/0]
   59 ubnt         0 SW   [khubd]
   81 ubnt         0 SW   [kswapd0]
   82 ubnt         0 SW   [aio/0]
   83 ubnt         0 SW   [crypto/0]
  165 ubnt         0 SW   [mtdblockd]
  275 ubnt      1976 S    /bin/watchdog -t 1 /dev/watchdog 
  499 ubnt      1144 S    /sbin/hotplug2 --persistent --set-rules-file /usr/etc/hotplug2.rules 
 1091 ubnt      8268 S    /bin/infctld -m -c -g 
 1092 ubnt      1980 S    /bin/syslogd -n -S 
 1093 ubnt      1504 S    /usr/bin/iwevent -s 
 1094 ubnt      2052 S    /bin/wpa_supplicant -D wext -i ath0 -c /etc/wpasupplicant_WPA-PSK.conf 
 1096 ubnt      1304 S    /bin/dnsmasq -k -C /etc/dnsmasq.conf -x /var/run/dnsmasq.pid 
 1097 ubnt      2028 S    /bin/dropbear -F -r /etc/persistent/dropbear_dss_host_key -r /etc/persistent/dropbear_rsa_host_key -p 22 
 1098 ubnt      4792 S    /bin/lighttpd -D -f /etc/lighttpd.conf 
 1099 ubnt      2312 S    /bin/mcad 
 1100 ubnt      8136 S    /bin/ulogger 
 1101 ubnt      1988 S    init       
12040 ubnt      1396 S    /sbin/ntpclient -n -s -c 0 -l -h clock1.zcu.cz 
12160 ubnt      2072 S    /bin/dropbear -F -r /etc/persistent/dropbear_dss_host_key -r /etc/persistent/dropbear_rsa_host_key -p 22 
12162 ubnt      1988 S    -sh 
12165 ubnt      1984 R    /usr/bin/ps 
Kód: Vybrat vše
XM.v5.6.4# /bin/ps
  PID USER       VSZ STAT COMMAND
    1 ubnt      1988 S    init       
    2 ubnt         0 SW   [kthreadd]
    3 ubnt         0 SW   [ksoftirqd/0]
    4 ubnt         0 SW   [events/0]
    5 ubnt         0 SW   [khelper]
    8 ubnt         0 SW   [async/mgr]
   50 ubnt         0 SW   [sync_supers]
   52 ubnt         0 SW   [bdi-default]
   54 ubnt         0 SW   [kblockd/0]
   59 ubnt         0 SW   [khubd]
   81 ubnt         0 SW   [kswapd0]
   82 ubnt         0 SW   [aio/0]
   83 ubnt         0 SW   [crypto/0]
  165 ubnt         0 SW   [mtdblockd]
  275 ubnt      1976 S    /bin/watchdog -t 1 /dev/watchdog 
  499 ubnt      1144 S    /sbin/hotplug2 --persistent --set-rules-file /usr/etc/hotplug2.rules 
  674 ubnt      1996 S    /bin/sh /var/lib/dhcp/leases 
 1091 ubnt      8268 S    /bin/infctld -m -c -g 
 1092 ubnt      1980 S    /bin/syslogd -n -S 
 1093 ubnt      1504 S    /usr/bin/iwevent -s 
 1094 ubnt      2052 S    /bin/wpa_supplicant -D wext -i ath0 -c /etc/wpasupplicant_WPA-PSK.conf 
 1096 ubnt      1304 S    /bin/dnsmasq -k -C /etc/dnsmasq.conf -x /var/run/dnsmasq.pid 
 1097 ubnt      2028 S    /bin/dropbear -F -r /etc/persistent/dropbear_dss_host_key -r /etc/persistent/dropbear_rsa_host_key -p 22 
 1098 ubnt      4792 S    /bin/lighttpd -D -f /etc/lighttpd.conf 
 1099 ubnt      2312 S    /bin/mcad 
 1100 ubnt      8136 S    /bin/ulogger 
 1101 ubnt      1988 S    init       
 1212 ubnt      1976 S    sleep 174483 
12040 ubnt      1396 S    /sbin/ntpclient -n -s -c 0 -l -h clock1.zcu.cz 
12160 ubnt      2072 S    /bin/dropbear -F -r /etc/persistent/dropbear_dss_host_key -r /etc/persistent/dropbear_rsa_host_key -p 22 
12162 ubnt      1988 S    -sh 
12167 ubnt      1984 R    /bin/ps Tady je ukazka...prvni prikaz je "ps" a druhy "/bin/ps"...v tom druhem je videt navic prikaz "sleep", podle cehoz jde vir odhalit.