CyberPolice

An epic windows securing and hardening script
Log | Files | Refs | README

RunNetTools.bat (1023B)


      1 @echo off
      2 color 0D
      3 setlocal
      4 cd /d %~dp0
      5 set ip_address_string="IPv4 Address"
      6 set adapter="LAN"
      7 set adapterfound=false
      8 echo ===========================================
      9 echo Elite Gamer Hacking Squad: Epic Net Hacker!
     10 echo ===========================================
     11 :start
     12 for /f "delims=: tokens=2" %%a in ('ipconfig ^| find "IPv4"') do set IPAddress=%%a
     13 echo Your IP: %IPAddress%
     14 echo Hit [1] for connection test
     15 echo Hit [2] for open port checker
     16 echo hit [x] to escape
     17 choice /n /c:x12 >nul
     18 echo.
     19 if %errorlevel%==1 (goto finished)
     20 if %errorlevel%==2 (goto connect)
     21 if %errorlevel%==3 (goto port)
     22 goto finished
     23 :connect
     24 set /P ip=Target IP: 
     25 powershell -ExecutionPolicy RemoteSigned -File "%cd%/QPingTest.ps1" %ip%
     26 goto yn
     27 
     28 
     29 :port
     30 set /P ip=Target IP:  
     31 set /P port=Port: 
     32 echo running from %cd%...
     33 powershell -ExecutionPolicy RemoteSigned -File "%cd%/QTelnet.ps1" %ip% %port% 
     34 goto yn
     35 :yn
     36 choice /m "continue" /c yn 
     37 echo.
     38 echo.
     39 if %errorlevel%==1 (goto start)
     40 if %errorlevel%==2 (goto finished)
     41 goto finished
     42 :finished