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
cd\
C:
cls
for /L %%v in (1,1,11) do telnet %1 %%v
GOTO scan2
: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.
port 127.0.0.1
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
You must be logged in to post a comment.