hacking contest

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

Full Version: Telnet
ZakOpath
Hello, i have used some hours on looking for a telnet client, who can use a "scan.txt" file and connect to one ip at the time from the txt file. is there such a telnet client out there ?

Is a must that i disite which port, the client shall connect to.


-/Zak
Yemoke
Why you dont make a batch file, that's read scan.txt and check it?
blackP0ster
CODE

@echo off
@echo enter txt-file of scan:
set /p txt=
for /f "eol=; tokens=1*" %%i in (%txt%) do telnet %%i -p 23


hope it works smile.gif


black
ZakOpath
i tryed this in a *.bat file

CODE

@echo off
@echo scan.txt:
set /p txt=
for /f "eol=; tokens=1*" %%i in (%txt%) do telnet %%i -p 1337

and i'v tryed in raw format in CMD but it wont work it just freeze or whrte this

C:\>tell.bat
scan.txt:

and then nothing ...

Damn im sure im doing somthin wrong but what... damn ill just keep up fighting whit it to it works ...

if it gonna work i let ya know

or if there is one who has a idea how to help me out plz reply smile.gif
BlaStA
set /p txt=
means, that you have to enter something, in this case the name of the text-file (scan.txt)
randalizm
is this batch meant to work in 95/98/me too or only 2000 up????
i always recieve a syntax error:

and at what point do you enter the file name??? do you insert it at the end of the third line or does the /p mean Prompt or sumthin???

im only runnin ME so i dont know where im screwing up!
ZakOpath
Damn im still stuck..
i maneged to get it work typing this
for /f "eol=; tokens=1*" %%i in (%scan.txt%) do telnet %%i -p 1337

But every time i got a ip whitout a usefull box( no shell ) it just freez because it dont jump forward to next ip sad.gif

matze
I tried your versions but nothing worked....
Then I wrote this and itīs working biggrin.gif


QUOTE
echo off
echo Please enter the filename of the scan..... example scan.txt
set /p txt=
for /f %%i in (scan.txt) do (telnet %%i 1337)
dmg
QUOTE (matze @ Feb 23 2004, 03:43 AM)
I tried your versions but nothing worked....
Then I wrote this and itīs working biggrin.gif


QUOTE
echo off
echo Please enter the filename of the scan..... example scan.txt
set /p txt=
for /f %%i in (scan.txt) do (telnet %%i 1337)

LOL.... First you ask which txt file to use and then (regardless of the answer) you use scan.txt.

CODE

@echo off
:input
set /p txt="Enter the name of your scan.txt file [scan.txt]: "
if "%txt%"=="" set txt=scan.txt
if not exist %txt% echo %txt% not found & goto input
for /f %%i in (%txt%) do telnet %%i 1337
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.