Search This Blog

Loading...

Thursday, April 16, 2009

Batch File "OpenPorts.bat"

@ECHO OFF
REM ----------------------------------------------------------
REM Author: Peter Koshakji
REM Date: 04/16/2009
REM Filename: NetStat.bat
REM Skill Level: Beginner
REM Duty: Output All open ports and protocols to open-ports.txt
REM ----------------------------------------------------------
REM Instructions:
REM - Create a file OpenPorts.bat copy content
REM - In the console, navigate to the file location
REM - Execute the script: OpenPorts.bat

NETSTAT -ano > open-ports.txt
PAUSE

0 comments: