![]() |
|
|
|
Registered
|
![]()
What a pain. This a new Linux server I put up a few weeks ago. I was planning to retire my old server and had the new one almost ready, when the old one decided to give up a hard drive unexpectedly. That drive was dated 1996.
![]() I rushed to get the new one in place and even though it runs the same firewall script that my old one did, someone got past it. They exploited either ftp or php. PHP is current and ftp is supposed to be forwarded via the firewall to a different server, so I'm not sure how this happened. The exploit created a new user and installed port/IP scanning software and an ssh client. Looking through the files, I found the password info for fsf.org - The Free Software Foundation aka the GNU guys... ![]() At this point, I can clean up and be done with it or I can have some fun, rewrite certain scripts, sit back and watch the fireworks (even if they are CGI ![]() Suggestions?? ![]() -rwxr-xr-x 1 fax users 433 2006-03-10 15:32 all -rwxr-xr-x 1 fax users 22354 2005-04-18 11:30 common -rwxr-xr-x 1 fax users 732 2006-04-18 14:27 full -rwxr-xr-x 1 fax users 265 2004-11-24 15:21 gen-pass.sh -rwxr-xr-x 1 fax users 89 2005-04-18 11:29 go.sh -rwxr-xr-x 1 fax users 5159 2005-05-26 08:34 inb.php -rwxr-xr-x 1 fax users 17148 2006-03-09 07:39 kb.tgz -rwxr-xr-x 1 fax users 6320 2008-08-10 11:34 mfu.txt -rwxr-xr-x 1 fax users 2388 2008-08-10 11:49 pass_file -rwxr-xr-x 1 fax users 207456 2007-04-27 07:28 pico -rwxr-xr-x 1 fax users 20363 2006-05-06 01:46 ps -rwxr-xr-x 1 fax users 25503 2007-04-27 07:28 pscan2 -rwxr-xr-x 1 fax users 6735709 2008-03-19 08:43 r00t -rwxr-xr-x 1 fax users 423 2005-11-09 16:32 skan -rwxr-xr-x 1 fax users 458068 2007-04-27 07:28 ss -rwxr-xr-x 1 fax users 846832 2007-04-27 06:24 ssh -rwxr-xr-x 1 fax users 704 2008-03-16 11:03 vuln.txt -rwxrwxr-x 1 fax users 3130 2007-04-27 07:30 x ![]()
__________________
Make sure to check out my balls in the Pelican Parts Catalog! 917 inspired shift knobs. '84 Targa - Arena Red - AX #104 '07 Toyota Camry Hybrid - Yes, I'm that guy... '01 Toyota Corolla - Urban Camouflage - SOLD |
||
![]() |
|
Registered
|
Someone was having some fun. Brute force SSH kit, PHP web shell... You've caught my interest. Post the contents of go.sh
__________________
ßrandon |
||
![]() |
|
Registered
|
Tis but a boring little script.
./ss 22 -b $1 -i eth0 -s 6 cat bios.txt |sort | uniq > mfu.txt ./ssh-scan rm -f bios.txt
__________________
Make sure to check out my balls in the Pelican Parts Catalog! 917 inspired shift knobs. '84 Targa - Arena Red - AX #104 '07 Toyota Camry Hybrid - Yes, I'm that guy... '01 Toyota Corolla - Urban Camouflage - SOLD |
||
![]() |
|
JW Apostate
Join Date: May 2004
Location: Napa, Ca
Posts: 14,164
|
It's all geek to me...
Will it take much to get back up and running like you want it? KT
__________________
'74 914-6 2.6 SS #746 '01 Boxster |
||
![]() |
|
Registered
|
I had noticed the username a few days ago, but dismissed it, as I had recently setup a corporate fax machine to email via a different Linux server for a client, but it is possible that I had also created the user on mine to test with. I had even checked the 'lastlog', but I guess I did not pay attention to the I.P.
__________________
Make sure to check out my balls in the Pelican Parts Catalog! 917 inspired shift knobs. '84 Targa - Arena Red - AX #104 '07 Toyota Camry Hybrid - Yes, I'm that guy... '01 Toyota Corolla - Urban Camouflage - SOLD |
||
![]() |
|
Registered
|
Quote:
![]() I don't like my servers being hacked. This is the second time in 4 years, so not bad. I pretty lazy on keeping my personal Linux servers updated. Kinda like the mechanic that never gets his project car finished.
__________________
Make sure to check out my balls in the Pelican Parts Catalog! 917 inspired shift knobs. '84 Targa - Arena Red - AX #104 '07 Toyota Camry Hybrid - Yes, I'm that guy... '01 Toyota Corolla - Urban Camouflage - SOLD |
||
![]() |
|
![]() |
Registered
|
If your not already you should be running an IDS. This is most likely the work of a bot that discovered a ftp (plain text passwords) or an application vulnerability via PHP. BTW, a firewall shouldn't run FTP or PHP if you care about security.
__________________
ßrandon |
||
![]() |
|
Registered
|
Looks like the server was hacked on 6/24/08 via PHP. There is an empty session file in the /tmp directory and a few other files...
drwxr-xr-x 2 fax users 4096 2000-04-25 17:21 cmd -rw-r--r-- 1 fax users 278762 2008-06-24 11:53 cmd.tgz drwxr-xr-x 4 root root 4096 2008-06-24 01:37 pear -rw------- 1 root root 0 2008-06-24 01:35 sess_ab47719c7181effe333e3b343dc613ec The fun stuff is in the cmd directory... 1234 echok kod paralyze3 stealth ADMdns****r fawx kox pepsi stream DoS-Linux.pl flatline land pimp syndrop DoS_frontpage.pl flushot laser pimp2 synful akill2.pl foqerc latierra pirchslap synhose arnup100 galt_gin linux-icmp pong synk ascend-foo gewse locktcp quake2 synk4 beer gewse5 mailer rape targa biffit gin misfrag raped targa2 binds hanson mmsu-dos rc8 targa3 bloop hell moyari13 rcon teardrop bncex hestra mutilate rpk tesoiis boink hiperbomb2 nestea ruc ton bonk inetd.DoS nestea2 rwhokill trash c**ksuck ircd_kill newtear simping trash2 coke jaypee nt-dns slice3 twinge comatose jolt octopus smack udpdata conseal kill_inetd opentear spender.pl udpflood d0s.pl killwin orgasm spiffit winfreez dos-prox.pl kkill oshare_1_gou sprite wingatecrash duy koc overdrop ssping winnuke
__________________
Make sure to check out my balls in the Pelican Parts Catalog! 917 inspired shift knobs. '84 Targa - Arena Red - AX #104 '07 Toyota Camry Hybrid - Yes, I'm that guy... '01 Toyota Corolla - Urban Camouflage - SOLD |
||
![]() |
|
Registered
|
Yeah, definitely a bot. So what are you running in the way of php?
humorous note: "targa rape" & "raped targa2" in that list ![]()
__________________
ßrandon |
||
![]() |
|
Registered
|
Latest version, 5.2.6.. Nothing special when configured/compiled.
__________________
Make sure to check out my balls in the Pelican Parts Catalog! 917 inspired shift knobs. '84 Targa - Arena Red - AX #104 '07 Toyota Camry Hybrid - Yes, I'm that guy... '01 Toyota Corolla - Urban Camouflage - SOLD |
||
![]() |
|
Registered
|
Sorry, should have phrased that different. Are you running a php based framework, BB, some little php based frontend, php you wrote?
__________________
ßrandon |
||
![]() |
|
Registered
|
Ah, my own stuff. I looked at some of the common exploits, but I don't think any of my files are using the calls. I had a couple of websites on the old server that could have been exploited, but I am not using them and never bothered to set them up on the new server. Sendmail is not even installed on the server, so some of the form exploits can't work.
__________________
Make sure to check out my balls in the Pelican Parts Catalog! 917 inspired shift knobs. '84 Targa - Arena Red - AX #104 '07 Toyota Camry Hybrid - Yes, I'm that guy... '01 Toyota Corolla - Urban Camouflage - SOLD |
||
![]() |
|
![]() |
Gon fix it with me hammer
|
So Dave, you reinstalling it to Windows now ?
![]() ![]() ![]()
__________________
Stijn Vandamme EX911STARGA73EX92477EX94484EX944S8890MPHPINBALLMACHINEAKAEX987C2007 BIMDIESELBMW116D2019 |
||
![]() |
|
Registered
|
Yeah, right! That will be the day. Linux power all the way!
![]() Team Tux!
__________________
Make sure to check out my balls in the Pelican Parts Catalog! 917 inspired shift knobs. '84 Targa - Arena Red - AX #104 '07 Toyota Camry Hybrid - Yes, I'm that guy... '01 Toyota Corolla - Urban Camouflage - SOLD |
||
![]() |
|
Registered
Join Date: May 2008
Location: Harford Co, MD
Posts: 1,623
|
I'm glad some of you know what the heck he's talking about, because I sure have no idea.
|
||
![]() |
|
Did you get the memo?
Join Date: Mar 2003
Location: Wichita, KS
Posts: 32,309
|
I just hoped to hear that you fried some hacker's computer.
__________________
‘07 Mazda RX8-8 Past: 911T, 911SC, Carrera, 951s, 955, 996s, 987s, 986s, 997s, BMW 5x, C36, C63, XJR, S8, Maserati Coupe, GT500, etc |
||
![]() |
|
Counterclockwise?
|
Now I'm worried about my server.
Never really thought about it before. I just had an ftp site set up as I am a printing company and need it for customer files. Are there any precautions I should be taking? Thanks in advance.
__________________
Rod 1986 Carrera 2001 996TT A bunch of stuff with spark plugs |
||
![]() |
|
Too big to fail
|
Are you running ftp or vsftpd? What distro?
__________________
"You go to the track with the Porsche you have, not the Porsche you wish you had." '03 E46 M3 '57 356A Various VWs |
||
![]() |
|
Counterclockwise?
|
__________________
Rod 1986 Carrera 2001 996TT A bunch of stuff with spark plugs |
||
![]() |
|
1.367m later
|
Quote:
I imagine if anyone can fix it Dave you can.
__________________
non velox ad propitiare, verisimile non oblivisci If it's not The Original Automotive Innovations and Restoration, then it's just hot AIR. |
||
![]() |
|