Skip to content
August 25, 2008 / technocrawl

Port Scanner using Batch

You too can design a port scanner using a simple batch program, that too less than 10 lines.

1. Open up a notepad.

2. Copy and paste the following code.

@ECHO off
Title Crafted Port Scanner
color 0a
for /L %%v in (1,1,11) do telnet %1 %%v
GOTO scan2
for /L %%w in (12,1,20) do telnet %1 %%w

3. Save it as port.bat.

4. Goto command prompt and, goto the exact location of where this port.bat is located.

5. now type the following command on the command prompt.


6. This will port scan upto 20 continuous ports starting from 1 to 20 on your localhost.

7. This is not much efficient and not much reliable, but this is just to show, that there is a possibility for port scanning automation using Batch file programming.

Leave a Reply

Please log in using one of these methods to post your comment: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: