|
@@ -32,7 +32,7 @@ public class ExampleAnomalyController {
|
|
|
public ExampleAnomalyController(Controller controller) {
|
|
|
this.controller = controller;
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
|
|
|
* Opens a DDosCreation Menu which targets the given Device
|
|
|
* So far only a DDoS Attack is created
|
|
@@ -60,11 +60,11 @@ public class ExampleAnomalyController {
|
|
|
|
|
|
* Role of the target device
|
|
|
*/
|
|
|
- int targetRole = 1;
|
|
|
+ int targetRole = 0;
|
|
|
if(example != null) {
|
|
|
targetRole = example.getConnection().getProtocol().getRoleOfDevice(example);
|
|
|
if(targetRole == -1)
|
|
|
- targetRole = 1;
|
|
|
+ targetRole = 0;
|
|
|
}
|
|
|
|
|
|
* Attack Interval per device
|
|
@@ -80,7 +80,7 @@ public class ExampleAnomalyController {
|
|
|
|
|
|
* Frequency Less or equal
|
|
|
*/
|
|
|
- attackInterval /= 4.0;
|
|
|
+ attackInterval /= 2.0;
|
|
|
}
|
|
|
|
|
|
|