|
@@ -182,16 +182,13 @@ public class Listener implements Runnable {
|
|
|
try {
|
|
|
String ip = client.getInetAddress().getHostAddress();
|
|
|
if (ConnectionGuard.registerConnection(port, ip)){
|
|
|
- Log.i("sda", "PORTSCAN ICH MACH NIX");
|
|
|
return;
|
|
|
}
|
|
|
Log.i("sda", "pause");
|
|
|
Thread.sleep(999);
|
|
|
if(ConnectionGuard.detectedPortscan(port, ip)){
|
|
|
- Log.i("sda", "ICH LOGGE JETZT PORTSANCS");
|
|
|
logPortscan(client, System.currentTimeMillis());
|
|
|
}else{
|
|
|
- Log.i("sda", "ICH LOGGE JETZT NIX =(");
|
|
|
if (protocol.isSecure()) {
|
|
|
startSecureHandler(client);
|
|
|
} else {
|
|
@@ -292,7 +289,6 @@ public class Listener implements Runnable {
|
|
|
networkRecord.setAccuracy(Float.MAX_VALUE);
|
|
|
networkRecord.setTimestampLocation(0);
|
|
|
}
|
|
|
- Log.i("sda", "YEAAAAH");
|
|
|
Logger.logPortscan(Hostage.getContext(), attackRecord, networkRecord, timestamp);
|
|
|
}
|
|
|
}
|