网页登录之防字典爆破奇巧淫技

一般来说,使用工具进行字典爆破进行登录时,通常根据服务器返回的响应报文的长度是否发生变化来得出哪一个为正确的账户口令。但是如果登录页面的名称的字数,和登录成功后首页的名称的字数是一样的,且服务器均响应为302错误。此时,只有通过响应报文的重定向行指向的网页的名称来判断是否成功登录。如果不细心一点,很可能错过得到正确账户口令的机会。


例如:响应报文只有Location行有差别。如:

登录失败:

HTTP/1.1 302 Found
Date: Thu, 27 Jul 2017 01:19:46 GMT
Server: Apache/2.2.14 (Ubuntu) mod_mono/2.4.3 PHP/5.3.2-1ubuntu4.30 with Suhosin-Patch proxy_html/3.0.1 mod_python/3.3.1 Python/2.6.5 mod_ssl/2.2.14 OpenSSL/0.9.8k Phusion_Passenger/4.0.38 mod_perl/2.0.4 Perl/v5.10.1
X-Powered-By: PHP/5.3.2-1ubuntu4.30
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Pragma: no-cache
Location: login.php
Vary: Accept-Encoding
Content-Length: 0
Connection: close
Content-Type: text/html


登录成功:

HTTP/1.1 302 Found
Date: Thu, 27 Jul 2017 01:19:46 GMT
Server: Apache/2.2.14 (Ubuntu) mod_mono/2.4.3 PHP/5.3.2-1ubuntu4.30 with Suhosin-Patch proxy_html/3.0.1 mod_python/3.3.1 Python/2.6.5 mod_ssl/2.2.14 OpenSSL/0.9.8k Phusion_Passenger/4.0.38 mod_perl/2.0.4 Perl/v5.10.1
X-Powered-By: PHP/5.3.2-1ubuntu4.30
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Pragma: no-cache
Location: index.php
Vary: Accept-Encoding
Content-Length: 0
Connection: close
Content-Type: text/html


  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
Python字典爆破是一种通过不断尝试不同的密码组合来破解密码的技术。在引用[1]中的代码示例中,通过生成一个包含从0000到9999的可能密码的字典文件来实现字典爆破。这个字典文件可以用于破解密码保护的系统或应用。 除了数字字符,字典爆破还可以匹配其他字符。在引用中的示例中,配置文件规定了匹配规则,其中可以包含其他特殊字符,如!、@和#。这样可以增加密码破解的复杂度。 在进行字典爆破时,可以结合特定的场景和目标来使用。例如,在引用中的示例中,字典爆破用于破解CMS网站后台管理系统的密码。通过抓包并分析响应状态码,可以根据登录成功和失败的状态码来确定密码是否正确。 总结来说,Python字典爆破是一种通过尝试不同密码组合来破解密码的技术。可以通过生成包含可能密码的字典文件,并结合特定的场景和目标来实现字典爆破。<span class="em">1</span><span class="em">2</span><span class="em">3</span> #### 引用[.reference_title] - *1* *2* [Python开发爆破字典](https://blog.csdn.net/weixin_30916125/article/details/97011325)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"] - *3* [Python--弱口令字典爆破](https://blog.csdn.net/qq_44468544/article/details/120363351)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"] [ .reference_list ]

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值