Home Upgrade Search Memberlist Extras Hacker Tools Award Goals Help Wiki Contact

Shell 

Batch Network Tool

I made this program to do basic networking functions for people who are lazy or new to command line :) It has a lot of features and was based off of my Domain Name Whois script (https://hackforums.net/showthread.php?tid=382821)

It features: Ping with the option to specify how much data, Trace Route, Telenet, username information from a domain controller, and can display all users on a domain controller. I also like suggestions for future versions :D

This was coded fully by me. Please do not leech. Enjoy my tool :)
Code
echo off
title Batch Networking Tools V2.0
color 0A
echo Batch Networking Tool V2.0 by Biohazard™

:menu
echo _                 _
echo _.-::Main Menu::-._
echo ------------------------------------------------------------
echo 1. Name Whois Tools  2. Networking Tools  3. Credits  4. Exit
echo ------------------------------------------------------------
set MENUCHOICE=
set /P MENUCHOICE=Please Select a Menu Option: %=%
if "%MENUCHOICE%"=="1" goto nametools
if "%MENUCHOICE%"=="2" goto nettools
if "%MENUCHOICE%"=="3" goto credits
if "%MENUCHOICE%"=="4" goto exit
if "%MENUCHOICE%"=="" goto error

:nametools
echo _                 _
echo _.-::Name Tools::-._
echo ------------------------------------------------------------
echo 1. Search User  2. List All Network Users  3. Main Menu  4. Exit
echo ------------------------------------------------------------
set NAMECHOICE=
set /P NAMECHOICE=Please Select a Menu Option: %=%
if "%NAMECHOICE%"=="1" goto searchname
if "%NAMECHOICE%"=="2" goto allusers
if "%NAMECHOICE%"=="3" goto menu
if "%NAMECHOICE%"=="4" goto exit
if "%NAMECHOICE%"=="5" goto error
if "%NETCHOICE%"=="" goto error

:searchname
ECHO ------------------------------------------------------------
set INPUTNAME=
set /P INPUTNAME=Please Enter a name you would like to search: %=%
if "%INPUTNAME%"=="" echo Please Enter a Name
net user %INPUTNAME% /domain
ECHO ------------------------------------------------------------
pause
goto nametools

:allusers
ECHO ------------------------------------------------------------
net users /domain
ECHO ------------------------------------------------------------
pause
goto nametools

:nettools
echo _                 _
echo _.-::Network Tools::-._
echo ------------------------------------------------------------
echo 1. Ping  2. Traceroute 3. Telnet  4. Main Menu  5. Exit
echo ------------------------------------------------------------
set NETCHOICE=
set /P NETCHOICE=Please Select a Menu Option: %=%
if "%NETCHOICE%"=="1" goto ping
if "%NETCHOICE%"=="2" goto trace
if "%NETCHOICE%"=="3" goto tel
if "%NETCHOICE%"=="4" goto menu
if "%NETCHOICE%"=="5" goto exit
if "%NETCHOICE%"=="6" goto error
if "%NETCHOICE%"=="" goto error

:ping
set PINGIP=
set /P PINGIP=Enter an adress or IP you would like to ping: %=%
set PINGYN=
set /P PINGYN=Would you like to specify the data amount? (Y or N): %=%
if "%PINGYN%"=="Y" goto ping1
if "%PINGYN%"=="Yes" goto ping1
if "%PINGYN%"=="N" goto ping2
if "%PINGYN%"=="No" goto ping2

:ping1
echo ------------------------------------------------------------
set PINGDATA=
set /P PINGDATA=How much data would you like to ping with? (1-65500, Default 32): %=%
ping %PINGIP% -l %PINGDATA%
if "%PINGDATA%"=="" ping %PINGIP% -l 32
echo ------------------------------------------------------------
pause
goto nettools

:ping2
echo ------------------------------------------------------------
ping %PINGIP%
echo ------------------------------------------------------------
pause
goto nettools

:tel
echo ------------------------------------------------------------
set TELNIP=
set /P TELNIP=Please enter the IP or adress you would like to telenet: %=%
set TELNPID=
set /P TELNPID=Please enter the port: %=%
telnet %TELNIP% %TELNPID%
pause
goto nettools

:trace
echo ------------------------------------------------------------
set TRACEAD=
set /P TRACEAD=Enter an adress or IP you would like to perform a trace route on: %=%
tracert %TRACEAD%
echo ------------------------------------------------------------
pause
goto nettools

:credits
echo _                 _
echo _.-::Credits::-._
echo Version 2.0. Coded by Biohazard™, please give credit to me if you post this
echo somewhere else. Contact me at [email protected]
echo ------------------------------------------------------------
pause
goto menu

:error
ECHO ------------------------------------------------------------
echo Please enter a valid menu number to continue.
ECHO ------------------------------------------------------------
goto menu

:exit
ECHO ------------------------------------------------------------
echo Deconfiguring Script, please stand by
timeout 2
exit
Simple and sweet. Nice going man.
As for suggestions to expand the code
-maybe try adding in a few known network exploits like the port 139 exploit
- some connectivity or perhaps network messaging

Keep it up man! it reminds me of some of my first network admin batch files i wrote for myself...
(May 1, 2010 02:40 AM)nervejunction Wrote:  Simple and sweet. Nice going man.
As for suggestions to expand the code
-maybe try adding in a few known network exploits like the port 139 exploit
- some connectivity or perhaps network messaging

Keep it up man! it reminds me of some of my first network admin batch files i wrote for myself...
Thanks! :) Glad you like it.
Bump :) Feedback, bug reports, and suggestions are all greatly appreciated.
thanks for the post mate works well
That is a great batch file man.
I have one little suggestion.
Instead of having:
Code
if "%MENUCHOICE%"=="" goto error
Why not put in:
Code
if not defined "%MENUCHOICE%" goto menu
And add cls to the beginning of the menu code. It is better then having an error section and saves some spave.
Other then that is is great man. Thank you for the share!


Possibly Related Threads...
Thread / Author Replies Views Last Post
[Shell] by Robert RougeSep 24, 2026 10:02 AM 4 219 Sep 24, 2026 10:02 AM
Last Post: Anonynuk
[Shell] by HackooJun 26, 2022 04:23 PM 9 651 Jun 26, 2022 04:23 PM
Last Post: SetLost
[Python] by T i e rMar 13, 2021 11:46 PM 0 182 Mar 13, 2021 11:46 PM
Last Post: T i e r