Hey guys this is an easy tutorial on how to make your own port scanner using only notepad.
1- Open notepad and write this:
@echo off
netstat -an |find /i "listening"
pause
2- save it as .bat
If you didn't understand the code I will explain to you don't worry. Normally cmd when being used you type a command and before your command you can see something like this:
X:\Users\xxx>
When this happens echo is on (by default), but when you type echo off you see nothing it makes the cmd more understandable. With netstat you look for local connections and ports, netstat -an will show all ports but with the command (|find /i "listening") It will find all ports that contain the string "listening" and it will show them.
Here it is hope you liked it👍!
1- Open notepad and write this:
@echo off
netstat -an |find /i "listening"
pause
2- save it as .bat
If you didn't understand the code I will explain to you don't worry. Normally cmd when being used you type a command and before your command you can see something like this:
X:\Users\xxx>
When this happens echo is on (by default), but when you type echo off you see nothing it makes the cmd more understandable. With netstat you look for local connections and ports, netstat -an will show all ports but with the command (|find /i "listening") It will find all ports that contain the string "listening" and it will show them.
Here it is hope you liked it👍!

