Hack Forums
[Shell] Network User Whois - Printable Version

+- Hack Forums (https://hackforums.net)
+-- Forum: Tech (https://hackforums.net/forumdisplay.php?fid=444)
+--- Forum: Coding (https://hackforums.net/forumdisplay.php?fid=151)
+---- Forum: Software Development (https://hackforums.net/forumdisplay.php?fid=118)
+---- Thread: [Shell] Network User Whois (/showthread.php?tid=382821)



Network User Whois - Biohazard™ - Apr 23, 2010

I made a cool batch file for use on large networks (E.g. your School) that use domain controllers. This typically won't work on your home standard home network. But if you are on a domain controller you can use this tool to see info on a name you type in. You can also display all users registered on the network. it is good for seeing basic info and memberships of people and also find unsecured accounts (Require no pass) :)

This batch requires no special privileges for any features :) coded for Vista and above.
Code
@echo off
title Domain Name Whois DOS V1.2
color 0A
echo Welcome to Domain Name Whois by Biohazard™ v1.2 Welcome to the main menu.
pause

:menu
echo _                 _
echo _.-::Main Menu::-._
echo ------------------------------------------------------------
echo 1. Search User  2. List All Network Users  3. Exit
echo ------------------------------------------------------------
set MENUCHOICE=
set /P MENUCHOICE=Please Select a Menu Option: %=%
if "%MENUCHOICE%"=="1" goto searchname
if "%MENUCHOICE%"=="2" goto allusers
if "%MENUCHOICE%"=="3" goto exit
if "%MENUCHOICE%"=="4" goto error
if "%MENUCHOICE%"=="" 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 menu

:allusers
ECHO ------------------------------------------------------------
net users /domain
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

Coded completely by me, please don't leech.


* - Biohazard™ - Apr 24, 2010

Any Feedback? :) I want to know what you guys think.


* - amahanit - Apr 28, 2010

really nice script to view a users information .


* - Moot - Apr 28, 2010

it looks pretty good i'll try it tomorrow and leave some feedback :D


* - Xeke - Apr 28, 2010

Looks good, it's a pity I won't be able to try it out D:


* - Biohazard™ - Apr 29, 2010

I have made this batch into a huge networking tool. Features the network this same whois tool with net tools like ping with data, telnet, trace route. It's good for people who are still new to command prompt. It's at school right now but I will post tomorrow. Also post suggestions if you have a feature you would like me to add.


* - shadow_69_91 - Apr 30, 2010

This will be really handy to a lot of people man. I believe batch is a great little tool. and you just shared one of the best batch scipts ive found so far. thanks for the share bro.


* - Biohazard™ - May 1, 2010

I have incorperated this script in to my new larger networking tool. This script is now located here ---> https://hackforums.net/showthread.php?tid=395328