[Preface] recently, my friend's website was attacked by CC attacks and I was asked about it because I didn't know much about anti-cc attacks, so I didn't dare to give him any good answers at once. Today, I wrote the following documents to see if I can give it to you. If you have a better idea of anti-CC attack, please leave a message with me, let's study together
CC attack principles and new ideasAuthor: Ice Cream firewall Website: www.bingdun.com1. Basic CC principles
CC attacks use a proxy server to send a large number of URL requests that require long computing time, such as database queries. As a result, the server performs a large amount of computing and quickly reaches its processing capabilities to form dos, once
What is a CC attack
CC attack is simple (Challengecollapsar)
The principle of the CC attack is that the attacker controls some hosts to keep sending a large number of packets to the other server, causing the server to run out of resources until downtime crashes. CC is primarily used to attack pages, everyone has this
We often encounter some problems, such as http cc attacks and FTP TCP-FLOOD attacks, as shown in, we can see the continuous anonymous speculative attacks of illegal users. at this time, we have a variety of solutions. You can try to solve this problem by blocking the IP address. Of course, you need to write a shell to determine how many times a user attempts to log on and block it.
CC is an attack tool (sof
PHP anti-CC attack implementation code summary. A cc attack means that the other party uses programs or some agents to continuously access your website. as a result, your website cannot be processed and is in the status of an on-premise server, next, we will summarize some CC attacks that prevent CC attacks, that is, t
In July 2013, Adobe released the latest version of Photoshop CC (creative cloud ). Adobe officially releases the latest version of Adobe Photoshop CC 2014 patch. The Chinese version of Adobe Photoshop CC 2014 patch removes all the features included in Photoshop CS6. Photoshop CC adds camera jitter protection, cameraraw
Duanxx C ++: cc file introduction in linux, duanxxcc
For historical reasons, a long time ago, the extension of the C ++ source file was *. c, but this caused many problems.
So different predecessors thought of different methods to solve this problem: they changed the suffix of the C ++ file to *. cc *. cpp *. cxx, etc.
Today, except for Unix systems, the extension names of C ++ files on other platforms ar
Dreamweaver|word| Skills | As a web designer, I do not know whether you have the experience: the customer to your website material is a lot of Word documents, although it is easy to read, you can add to the Web page is not very convenient. In particular, it is time-consuming and laborious to add one item to a Word document that contains a form. Although word can save a document as a Web page, there are too many wasted code generated and the file size
Tiny cc compiler, tinycc, variant, tinytinycc
-Run parameter removed
Download Code and compiled programs
If something is wrong, it cannot be generated.
It is estimated that you will not use the programming environment or the installation of the programming environment is incorrect.You can download a tinycc minimum C compiler that can be compiled using the command line.Download.savannah.gnu.org/..in.zipA c ++ or C Compilation Principle lexical an
This method is used to passively count the number of IP connections. iptables is used to block IP addresses with a large number of connections. For more information, see iptables to limit the number of ip connections to prevent CC attacks.The Shell script is as follows:#! /Bin/bash# Created by http://www.bkjia.comNum = 100 # Upper LimitList = 'netstat-an | grep ^ tcp. *: 80 | egrep-v 'Listen | 127.0.0.1 '| awk-F "[] + | [:] "'{print $6}' | sort | uniq
Prevents CC breakpoints under a specific function
The following is a method for detecting disconnections in GetDlgItemText.
Dword winapi ThreadProc (LPVOID lpParam){Typedef UINT (_ stdcall * pGetDlgItemText) (HWND, INT, LPTSTR, INT); // function pointer Declaration
PBYTE pByte = (PBYTE) (pGetDlgItemText): GetDlgItemText;For (int I = 0; I {// Check the first five bytesIf (0 = (* pByte ++ ^ 0xcc )){// This is just a simple process of exception or han
Source online can findThe first step is to analyze the source 1. To analyze the client's default allowed clients, please refer to the major station $agent = $_server["Http_user_agent"]; Block_browser (); 2. Analysis parameters These parameters must have foreach (Array ("passkey", "Info_hash", "peer_id", "event") as $x) { if (isset ($_get["$x"])) $G lobals[$x] = $_get[$x]; } foreach (Array ("Port", "downloaded", "uploaded", "left", "compact", "no_peer_id") as $x) { $GLOBALS [$x] = 0
(Akira total) write an iptables rule3est: I thought it was good. I just reprinted it./* It is also a simple anti-CC attack.
#! /Bin/shIPTABLES = "/sbin/iptables"Echo "1">/proc/sys/net/ipv4/ip_forward$ IPTABLES-P INPUT DROP$ IPTABLES-P FORWARD DROP$ IPTABLES-P OUTPUT DROP$ IPTABLES-F$ IPTABLES-X$ IPTABLES-Z# $ IPTABLES-a input-m state-state ESTABLISHED, RELATED-j ACCEPT# If the number of connections on port 80 is greater than 10 at the same time, Drop
The following methods to prevent CC attacks are mainly used to filter access logs and seal the IP address into the firewall. Place the script in cron once every 10 minutes. You can also modify the script as needed, because I use lighttp as a web server, it reads lighttp access logs. This script is also applicable to apache servers:#! /Bin/bash/Www/MTCC/solution_ip.sh/Usr/bin/tail-1000/var/log/lighttpd/access. log | grep-v 127.0.0.1 | awk {print $1} |
Tags: blog HTTP Io AR for strong file SP Div
I recently learned about the crystal report and found the following error after compilation:
Failed to Load file or assembly "file: // C: \ Program Files \ sap businessobjects \ Crystal Reports. net Framework 4.0 \ common \ sap businessobjects Enterprise XI 4.0 \ win32_x86 \ dotnet1 \ crdb_adoplus.dll "or one of its dependencies. The system cannot find the specified file.
Failed to Load file or assembly "file: // C: \ Program Files \ sap business
The experiences of these days are merged into code.
Python, edited by me.
#! /Usr/bin/ENV Python #-*-coding: UTF-8-*-import OS, sys, timeimport commands, logging # The following is the action for manual commands # Time Format 17/OCT/2014: 10: 00: 00 # Time Format sat Oct 18 12:35:43 2014 # awk '$4> "[17/OCT/2014: 14: 00: 00 " $4
BASH Shell, written by O M engineers, saves a lot of trouble. Take a good look at the shell script.
#!/bin/bash#while true#do tail -f XXX.log > url.txt
User's meaningless frequent jump, request will add a lot of burden to the server in fact, cookies can prevent this.PHP implementation prevents user CC attacks/frequent refreshes
VaR type inference keyword. It can automatically infer the type of the variable after the value assignment, but can only be used for local variables. It cannot be used for class member definitions and parameter passing.An anonymous class, that is, a class cannot be defined, which is automatically generated by the system. The following Code creates an anonymous real-column SSZ, and the system automatically defines the name, age, height, job and other field members. This definition is similar to t
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.