xwayway / wifi-connector Goto Github PK
View Code? Open in Web Editor NEW使用Java在windows下暴力破解wifi
Home Page: http://blog.weechang.xyz/2018/10/22/windows-java-wifi/
使用Java在windows下暴力破解wifi
Home Page: http://blog.weechang.xyz/2018/10/22/windows-java-wifi/
(搬家了没wifi,唉)
我按步骤来执行的.java文件,设置了-encoding utf-8,不然报错-》错误: 编码 GBK 的不可映射字符 (0x80),执行文件报错如下,望解答,谢谢你~
C:\Users\Administrator\Desktop\wifi-connector\connector\src\main\java\io\github\weechang\cmd>javac -encoding utf-8 WlanExecute.java
WlanExecute.java:3: 错误: 找不到符号
import io.github.weechang.Connector;
^
符号: 类 Connector
位置: 程序包 io.github.weechang
WlanExecute.java:4: 错误: 程序包io.github.weechang.config不存在
import io.github.weechang.config.Command;
^
WlanExecute.java:50: 错误: 找不到符号
public static List listSsid() {
^
符号: 类 Ssid
位置: 类 WlanExecute
WlanExecute.java:51: 错误: 找不到符号
List ssidList = new ArrayList();
^
符号: 类 Ssid
位置: 类 WlanExecute
WlanExecute.java:51: 错误: 找不到符号
List ssidList = new ArrayList();
^
符号: 类 Ssid
位置: 类 WlanExecute
WlanExecute.java:52: 错误: 找不到符号
String cmd = Command.SHOW_NETWORKS;
^
符号: 变量 Command
位置: 类 WlanExecute
WlanExecute.java:66: 错误: 程序包Command不存在
String cmd = Command.ADD_PROFILE.replace("FILE_NAME", profileName);
^
WlanExecute.java:67: 错误: 找不到符号
List result = execute(cmd, Connector.PROFILE_TEMP_PATH);
^
符号: 变量 Connector
位置: 类 WlanExecute
WlanExecute.java:83: 错误: 程序包Command不存在
String cmd = Command.CONNECT.replace("SSID_NAME", ssid);
^
WlanExecute.java:98: 错误: 找不到符号
String cmd = "ping " + Connector.PING_DOMAIN;
^
符号: 变量 Connector
位置: 类 WlanExecute
10 个错误
Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile) on project connector: Compilation failure怎么解决
原来代码把checkThreadPool.submit(task);
和 Future.get()
放在同一个线程导致线程池空转不干活
`/**
* 根据密码验证配置文件
*/
public String check(String ssid) {
String password = null;
List passwordList = null;
int counter = 0;
outer:
while (true) {
int start = counter * BATH_SIZE;
int end = (counter + 1) * BATH_SIZE - 1;
passwordList = FileUtils.readLine(PASSWORD_PATH, start, end);
if (passwordList != null && passwordList.size() > 0) {
Map<String,Future> futureSet = new HashMap<>();
for (String item : passwordList) {
CheckTask task = new CheckTask(ssid, item);
Future<Boolean> checked = checkThreadPool.submit(task);
futureSet.put(item,checked);
}
for (Map.Entry<String, Future<Boolean>> stringFutureEntry : futureSet.entrySet()) {
String item = stringFutureEntry.getKey();
Future<Boolean> checked = stringFutureEntry.getValue();
try {
if (checked.get()) {
password = item;
break outer;
}
} catch (Exception e) {
System.out.println("校验出错:ssid=>" + ssid + ",passord=>" + password);
}
}
counter++;
} else {
break outer;
}
}
return password;
}`
我这样改了之后我发现我电脑性能好像不行了,cpu直接100%,而且临时配置文件太多了,idea变得很卡。。有没有大佬一起讨论一波
我把自己的密码写进密码本里面都连不上,是有什么特殊要求吗
ping www,baidu.com 的时候网络会断掉.这是一种怎样的情况呢.关闭程序网络就恢复了.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.