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 :)
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