Note: Depending on the number of web logs or network connections, monitor the number of concurrent connections for an IP or PV to 100 in a short timethat is, call the firewall command to seal off the corresponding IP, monitoring frequency every 3 minutesthe firewall command is: iptables-a input-s 10.0.1.10-j DROPIdeas:1. Analyze logs, extract IP and PV numbers2.w
In this paper, we analyze the method of using the hash conflict vulnerability to DDoS attack in PHP. Share to everyone for your reference. The specific analysis is as follows:
first of all: The content of this article is only used to study and use, do not use illegal!
As mentioned in the previous hash table collision vulnerability, including Java, Python, PHP, and many other common language has not been s
Enable NGINX anti-CC and DDOS Attack ModuleHttpLimitZoneModule configuration instructions
This module makes it possible to limit the number of simultaneous connections for the assigned session or as a special case, from one address.
Example configuration
Http {limit_zone one $ binary_remote_addr 10 m; server {location/download/{limit_conn one 1 ;}}}
HttpLimit
Introduction to DDoS Deflate
DDoS deflate is a free script for defending and mitigating DDoS attacks. It creates an IP address for a large number of network connections through Netstat monitoring trails that prohibit or block these IPs through APF or iptables when a node is
Comments: Distributed Denial of Service (DDoS) attacks are common and difficult to prevent by hackers. Distributed Denial of Service (DDoS) attacks are all called Distributed Denial of Service) it is an attack that hackers often use and cannot prevent. Its English name is Distributed Denial of Service 。DDoS is a networ
Reason
PHP script part of the source code:
Copy CodeThe code is as follows:
$fp = Fsockopen ("udp://$ip", $rand, $errno, $ERRSTR, 5);
if ($fp) {
Fwrite ($fp, $out);
Fclose ($FP);
PHP script in the Fsockopen function, to the external address, through the UDP send a large number of packets, attack each other.
Response
You can disable the Fsockopen function thro
Reason
PHP script part of the source code:
Copy Code code as follows:
$fp = Fsockopen ("udp://$ip", $rand, $errno, $ERRSTR, 5);
if ($fp) {
Fwrite ($fp, $out);
Fclose ($FP);
PHP script in the Fsockopen function, to the external address, through UDP send a large number of packets to attack each other.
Response
You can disable the Fsoc
unknown, no further data processing can be done after the destination host is reached.There is no test of TCP datagram checksums like SYN flood attacks. At this point, the system considers that the protocol of this packet is not sent with data packets or the system does not support this protocol, so the source IP that sends this packet directlyLocation receipts an ICMP packet to notify the other IP datagra
[email protected] ~]# cat fw.sh#!/bin/bashCat/var/log/nginx/access.log|awk-f ":" ' {print $} ' |sort|uniq-c|sort-rn|head-10|grep-v "127.0" |awk ' {if ($2!=null A mp; $1>4) {print $}} ' >/tmp/dropipFor I in $ (CAT/TMP/DROPIP)Do/sbin/iptables-a input-p TCP--dport 80-s $i-j DROPecho "$i kill at Date" >>/var/log/ddosDoneScript Annotations:First look at the log file, awk filter out the first column of IP, and sort, go to heavy, then reverse sort, filter ou
connection in the buffer. At this point, if the legitimate user 61.61.61.61 again to send legitimate data, the server has no such connection, the user must start to establish a new connection. Attack, the attacker will forge a large number of IP address, to send the RST data to the target, so that the server does not serve legitimate users, thereby achieving the
This vulnerability is not considered a vulnerability. However, the impact scope is extremely great. Currently, CDN, such as jiasule, website guard, Baidu cloud acceleration, and quickshield, are playing a great role ~, Various anti-DDOS and CC defenses ~, However, this cave can ignore the CDN defense and implement intrusion and traffic attacks. After thinking for a long time, I have not found a solution ~ You can only submit the CDN vendor.
1. First,
As TCP/IP is the basic protocol of the Internet, it is necessary to improve the TCP/IP protocol. From the beginning, the TCP/IP protocol did not take into account so many threats on the current network, resulting in many different types of attack methods, which are generally aimed at protocol principles (especially
computer system.
Figure 1: IP spoofingSee the above figure. two computers, victim and partner, were communicating with each other. in the meantime, a sender (the attacker) also tries to communicate with the victim by forging the IP address and tries to fool the victim with the fake IP
LAN computer IP address and MAC address, to prevent the arbitrary modification of IP address behavior.
At present, there are many local area network control software, network management monitoring software, generally have IP a
Python obtains the Ip address attribution and other information, and python obtains the ip address attribution.
If you have a batch of IP addresses that want to obtain the specific information of these IP addresses, such as the co
Turkey
88.234.193.11 -- 08:25:42 --/5895 Turkey
88.236.78.79 -- 15:01:54 --/170 Turkey
88.238.26.12 -- 05:21:46 --/473 Turkey
88.238.26.154 -- 05:31:58 --/1683 Turkey
88.242.124.128 -- 06:53:56 --/8401 Turkey
88.242.65.61 -- 08:38:41 --/1204 Turkish program caught
94.122.109157 -- 09:53:39 --/1917 the Turkish American program has been arrested
94.54.37.54 -- 02:44:07 --/1096 the Turkish American program has been arrested
95.14.1.97 -- 08:30:10 --/167 Turkey United States
95.15.248.177 -- 11:14:
majority.
Finally, thank you for your message, I will think of your message. However, I this program is only a reference, local conditions, is not the best, can only be said to be humane. Now I send the program again, only changed the time parameter, the new parameters have been able to 100% to seize those hacker IP, I experimented for two days, grabbed 62 new IP, or the majority of Turkey.
Website anti-
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.