Low level proxy support added, MAC address spoofing done, basic runtime interception done

Signed-off-by: matt123337 <matt123337@hotmail.com>
This commit is contained in:
matt123337
2014-02-17 19:26:58 -05:00
parent dc08dd5777
commit 74a731d2e0
19 changed files with 1980 additions and 23 deletions
+36 -7
View File
@@ -1,16 +1,19 @@
package org.parabot;
import java.io.IOException;
import javax.swing.JOptionPane;
import javax.swing.UIManager;
import org.matt123337.proxy.ProxySocket;
import org.matt123337.proxy.ProxyType;
import org.parabot.core.Core;
import org.parabot.core.Directories;
import org.parabot.core.forum.AccountManager;
import org.parabot.core.spoofing.Ip;
import org.parabot.core.ui.LoginUI;
import org.parabot.core.ui.ServerSelector;
import org.parabot.core.ui.utils.UILog;
import javax.swing.*;
import java.io.IOException;
/**
* Parabot v2
*
@@ -84,9 +87,14 @@ public final class Landing {
username = args[++i];
password = args[++i];
break;
case "-proxy":
Ip.spoofIP(args[++i], args[++i]);
break;
case "-proxy":
String type = args[++i];
String ip = args[++i];
String port = args[++i];
if (!handleProxy(type, ip, port)) {
System.exit(1);
}
break;
case "-loadlocal":
Core.setLoadLocal(true);
break;
@@ -94,5 +102,26 @@ public final class Landing {
}
}
private static boolean handleProxy(String type, String ip, String port) {
ProxyType proxyType = null;
for (ProxyType pt : ProxyType.values()) {
if (pt.name().equalsIgnoreCase(type)) {
proxyType = pt;
break;
}
}
if (proxyType == null) {
System.err.println("Unknown proxy type:" + type);
return false;
}
try {
int p = Integer.parseInt(port);
ProxySocket.setProxy(proxyType, ip, p);
return true;
} catch (Exception e) {
return false;
}
}
}