首页 > 其他分享 >网络安全——CC攻击

网络安全——CC攻击

时间:2024-07-13 18:26:53浏览次数:8  
标签:网络安全 FILE CC siege -- 攻击 attributes

目录

一、什么是CC攻击?

二、CC攻击的原理

三、攻击步骤

四、其他工具

五、防御策略


一、什么是CC攻击?

       CC(ChallengeCollapsar,挑战黑洞)攻击是DDoS攻击的一种类型,使用代理服务器向受害服务器发送 大量貌似合法的请求。CC根据其工具命名,攻击者使用代理机制,利用众多广泛可用的免费代理服务器 发动DDoS攻击。许多免费代理服务器支持匿名模式,这使追踪变得非常困难。

二、CC攻击的原理

       CC攻击的原理就是攻击者控制某些主机不停地发大量数据包给对方服务器造成服务器资源耗尽,一直到 宕机崩溃。CC主要是用来攻击页面的,每个人都有这样的体验:当一个网页访问的人数特别多的时候, 打开网页就慢了,CC就是模拟多个用户(多少线程就是多少用户)不停地进行访问那些需要大量数据操 作(就是需要大量CPU时间)的页面,造成服务器资源的浪费,CPU长时间处于100%,永远都有处理不 完的连接直至就网络拥塞,正常的访问被中止。

三、攻击步骤

       kali操作系统的ab命令( Apache Benchmark简称AB )

┌──(kali㉿kali)-[~]
└─$ ab -h
Usage: ab [options] [http[s]://]hostname[:port]/path
Options are:
-n requests Number of requests to perform
-c concurrency Number of multiple requests to make at a time
-t timelimit Seconds to max. to spend on benchmarking
This implies -n 50000
-s timeout Seconds to max. wait for each response
Default is 30 seconds
-b windowsize Size of TCP send/receive buffer, in bytes
-B address Address to bind to when making outgoing connections
-p postfile File containing data to POST. Remember also to set -T
-u putfile File containing data to PUT. Remember also to set -T
-T content-type Content-type header to use for POST/PUT data, eg.
'application/x-www-form-urlencoded'
Default is 'text/plain'
-v verbosity How much troubleshooting info to print
-w Print out results in HTML tables
-i Use HEAD instead of GET
-x attributes String to insert as table attributes
-y attributes String to insert as tr attributes
-z attributes String to insert as td or th attributes
-C attribute Add cookie, eg. 'Apache=1234'. (repeatable)
-H attribute Add Arbitrary header line, eg. 'Accept-Encoding: gzip'
Inserted after all normal header lines. (repeatable)
-A attribute Add Basic WWW Authentication, the attributes
are a colon separated username and password.
其它方式
其它工具
Siege是一款开源的压力测试工具,设计用于评估WEB应用在压力下的承受能力。可以根据配置对一个
WEB站点进行多用户的并发访问,记录每个用户所有请求过程的相应时间,并在一定数量的并发访问下
重复进行。siege可以从您选择的预置列表中请求随机的URL。
说明
-P attribute Add Basic Proxy Authentication, the attributes
are a colon separated username and password.
-X proxy:port Proxyserver and port number to use
-V Print version number and exit
-k Use HTTP KeepAlive feature
-d Do not show percentiles served table.
-S Do not show confidence estimators and warnings.
-q Do not show progress when doing more than 150 requests
-l Accept variable document length (use this for dynamic pages)
-g filename Output collected data to gnuplot format file.
-e filename Output CSV file with percentages served
-r Don't exit on socket receive errors.
-m method Method name
-h Display usage information (this message)
-I Disable TLS Server Name Indication (SNI) extension
-Z ciphersuite Specify SSL/TLS cipher suite (See openssl ciphers)
-f protocol Specify SSL/TLS protocol
(SSL2, TLS1, TLS1.1, TLS1.2, TLS1.3 or ALL)
-E certfile Specify optional client certificate chain and private key
ab -n 请求数 -c 单次请求数 网站链接

其他方式

yum install -y httpd-tools
ab -n 请求数 -c 单次请求数 网站链接

四、其他工具

       Siege是一款开源的压力测试工具,设计用于评估WEB应用在压力下的承受能力。可以根据配置对一个 WEB站点进行多用户的并发访问,记录每个用户所有请求过程的相应时间,并在一定数量的并发访问下 重复进行。siege可以从您选择的预置列表中请求随机的URL。

# 下载
[root@redis-120-20 opt]# git clone https://github.com/JoeDog/siege.git
# yum安装
[root@redis-120-20 opt]# yum install siege

       说明

$ siege -h
SIEGE 4.0.2
Usage: siege [options]
siege [options] URL
siege -g URL
Options:
-V, --version VERSION, prints the version number.
-h, --help HELP, prints this section.
-C, --config CONFIGURATION, show the current config.
-v, --verbose VERBOSE, prints notification to screen.
-q, --quiet QUIET turns verbose off and suppresses output.
-g, --get GET, pull down HTTP headers and display the
transaction. Great for application debugging.
-c, --concurrent=NUM CONCURRENT users, default is 10
-r, --reps=NUM REPS, number of times to run the test.
-t, --time=NUMm TIMED testing where "m" is modifier S, M, or H
ex: --time=1H, one hour test.
-d, --delay=NUM Time DELAY, random delay before each requst
-b, --benchmark BENCHMARK: no delays between requests.
-i, --internet INTERNET user simulation, hits URLs randomly.
-f, --file=FILE FILE, select a specific URLS FILE.
-R, --rc=FILE RC, specify an siegerc file
-l, --log[=FILE] LOG to FILE. If FILE is not specified, the
default is used: PREFIX/var/siege.log
-m, --mark="text" MARK, mark the log file with a string.
between .001 and NUM. (NOT COUNTED IN STATS)
-H, --header="text" Add a header to request (can be many)
-A, --user-agent="text" Sets User-Agent in request
-T, --content-type="text" Sets Content-Type in request
siege -c 并发数目 -r 测试次数 目标网站

五、防御策略

       面对CC攻击,仅仅理解攻击原理和工具是不够的,更重要的是学会如何防御。以下是一些基本的防御策略:

       增加服务器资源:通过增加带宽和服务器的处理能力,可以在一定程度上抵御CC攻击。

       使用CDN服务:内容分发网络(CDN)可以将流量分散到多个节点,减轻单个服务器的压力。

       设置访问限制:通过限制单个IP的访问频率,可以有效防止CC攻击。

       使用Web应用防火墙(WAF):WAF可以识别并拦截恶意的流量,保护Web应用不受攻击。

       进行流量分析:通过分析流量模式,可以识别出异常流量并采取相应的措施。

标签:网络安全,FILE,CC,siege,--,攻击,attributes
From: https://blog.csdn.net/weixin_71208450/article/details/140299223

相关文章

  • 网络安全——SQL注入
    一、概念SQL注入原理        在与数据库交互的地方程序没有对用户的输入做严格的过滤和限制,导致用户可以构造恶意的sql语句拼接在参数后面,然后带到数据库中执行,sql注入属于服务端攻击,和操作系统和编程语言无关。SQL注入提交方式        get......
  • 网络安全——网络渗透测试入门
     ⼀、行业术语介绍渗透测试(PenetrationTesting):模拟黑客攻击手段对目标系统进行安全评估的过程。APT(AdvancedPersistentThreat):高级持续性威胁,指有组织的、长期针对性的网络攻击。PTES(PenetrationTestingExecutionStandard):渗透测试执行标准,指导渗透测试的行业标准。......
  • CCS工程导入后编译时无法读取头文件的问题
    CCS工程导入后编译时无法读取头文件的问题,主要是由移植之后的文件搜索路径所指向的文件夹不存在导致的。有两种解决办法:①导入工程时将所需要的所有.h、.c以及.lib文件一并打包在工程文件中,复制到Workspace并重新选取搜索路径;②导入工程的电脑安装有C2000WARE,修改CCS中相对路径......
  • GCC介绍
    GCC是什么GCC(GNUCompilerCollection)是一个开源的编译器套件,由GNU项目开发和维护。GNU编译器套件包括C、C++、Objective-C、Fortran、Ada、Go和D语言的编译器,以及这些语言的库(libstdc++,…)。GCC最初作为GNU操作系统的编译器,后来为了满足各种编程语言的需求,加入了......
  • 网络安全就业前景分析,这些岗位都能月入过万
    前言随着时代发展,网络安全已经成为人们不可忽视的重要问题,对于企业来说,互联网安全更是重中之重。从2015年开始,每年都有企业因为没有做好互联网安全,造成企业机密泄露,给企业造成巨大的影响,现在众多企业都需要维护网络安全,于是网络安全专业的学生也成为企业眼中的香饽饽,那么网......
  • 尽快删除!流行前端库遭受攻击,影响 10w+ 网站
    近日,安全机构Sansec发文称流行前端库 polyfill.js受到了供应链攻击,受影响的网站超过10万个。通过CDN使用该库的网站,在特定情况下会跳转到赌*和色*网站,下面就来看看这是怎么个事!polyfill.js是什么?Polyfill.js提供的代码用于模拟浏览器中缺失的原生功能。Polyf......
  • 网络安全人士必备的30个安全工具_在网络安全方面,有哪些必备的安全软件和工具
    1.WiresharkWireshark(前称Ethereal)是一个网络封包分析软件。网络封包分析软件的功能是截取网络封包,并尽可能显示出最为详细的网络封包资料。Wireshark使用WinPCAP作为接口,直接与网卡进行数据报文交换。2.MetasploitMetasploit是一个免费的、可下载的框架,通过它可以很容易......
  • 网络安全专家?信息安全毕业生就业分析!
    最近有点焦虑,来聊聊安全的就业吧,仅个人观点哈,有什么地方,如果说的不正确的话,欢迎大家批评指正!!!网络安全现状?让我们先听听互联网上说的一些:网络安全是一个非常具有前景的职业领域。首先,它拥有众多的就业岗位和广泛的发展方向。你可以在计算机科学与技术、信息通信、电子商......
  • 2024年06月CCF-GESP编程能力等级认证C++编程三级真题解析
    本文收录于专栏《C++等级认证CCF-GESP真题解析》,专栏总目录:点这里。订阅后可阅读专栏内所有文章。一、单选题(每题2分,共30分)第1题小杨父母带他到某培训机构给他报名参加CCF组织的GESP认证考试的第1级,那他可以选择的认证语言有()种。A.1B.2C.3D.4答案:C第2......
  • Extjs中的success和failure
    转载:http://blog.csdn.net/gangwazi0525/article/details/7314581 1.Ext.form.Action.Submit的配置选项success、failure根据返回json中success属性判断的,如果success为true,则success,false则failure,如果无json中无success属性,failure,故要提示操作是否成功,必须要返回success......