当前位置:网站首页>dvwa 通关记录1 - 暴力破解 Brute Force
dvwa 通关记录1 - 暴力破解 Brute Force
2022-08-01 21:46:00 【InfoQ】
Security Level:
low
<?php
if( isset( $_GET[ 'Login' ] ) ) {
// Get username
$user = $_GET[ 'username' ];
// Get password
$pass = $_GET[ 'password' ];
$pass = md5( $pass );
// Check the database
$query = "SELECT * FROM `users` WHERE user = '$user' AND password = '$pass';";
$result = mysqli_query($GLOBALS["___mysqli_ston"], $query ) or die( '<pre>' . ((is_object($GLOBALS["___mysqli_ston"])) ? mysqli_error($GLOBALS["___mysqli_ston"]) : (($___mysqli_res = mysqli_connect_error()) ? $___mysqli_res : false)) . '</pre>' );
if( $result && mysqli_num_rows( $result ) == 1 ) {
// Get users details
$row = mysqli_fetch_assoc( $result );
$avatar = $row["avatar"];
// Login successful
echo "<p>Welcome to the password protected area {$user}</p>";
echo "<img src=\"{$avatar}\" />";
}
else {
// Login failed
echo "<pre><br />Username and/or password incorrect.</pre>";
}
((is_null($___mysqli_res = mysqli_close($GLOBALS["___mysqli_ston"]))) ? false : $___mysqli_res);
}
?>- Proxy 挂代理或者直接用内置浏览器,开拦截
- 随便输入账号密码,点登陆
- Burp中拦截到,发送到Intruder中
- clear掉所有的变量,然后给username,password 挂上变量。
- 接下来重头戏,介绍下Attack Type
- Sniper 人如其名,狙击手模式,一次干一个地方。所以两个变量不适合这种情况,当然了,如果你已知账号或者已知密码,就只加一个变量,用这个模式最合适。此时只需要一个payload。
- Battering Ram 攻城锤模式,只需要一个payload,挂一个字典,你有几个变量就都用同样的值。例如你 字典有一行是 admin ,那么就一定有一条 username=admin&password=admin 的请求放出去。
- Pitchfork 叉子模式(没错就是海王那个叉子),此时需要多个payload,正常我有两个变量,就要两个payload,然后burp会从第一个payload拿出第一个,第二个payload拿出第二个作为参数发出去。所以请求次数是最小的payload的条数。
- Cluster bomb 集束炸弹,这个最暴力,其实就是两个字典的笛卡尔积,也需要多个payload,假设用户名字典有5个,密码有100个,那么就会有500次请求。
- 设置后好之后就可以发动攻击啦。
边栏推荐
- 【建议收藏】ヾ(^▽^*)))全网最全输入输出格式符整理
- VGUgarbage collector(垃圾回收器)的实现原理
- 二分法中等 LeetCode6133. 分组的最大数量
- Chapter 12, target recognition of digital image processing
- 0DFS中等 LeetCode6134. 找到离给定两个节点最近的节点
- 树莓派的信息显示小屏幕,显示时间、IP地址、CPU信息、内存信息(c语言),四线的i2c通信,0.96寸oled屏幕
- 统计单词数
- [Mobile Web] Mobile terminal adaptation
- 工程建筑行业数据中台指标分析
- Getting Started Database Days4
猜你喜欢

Unity Shader general lighting model code finishing

shell programming conventions and variables

上传markdown文档到博客园

19 Lectures on Disassembly of Multi-merchant Mall System Functions - Invoice Management on the Platform

Based on php animation peripheral mall management system (php graduation design)

Analysis of the development trend of game metaverse

Shell programming conditional statement

教你VSCode如何快速对齐代码、格式化代码

FusionGAN:A generative adversarial network for infrared and visible image fusion文章学习笔记

感觉自己好傻
随机推荐
(*゚ヮ゚)*【精品C语言整理】*(゚ヮ゚*)女盆友缠着你让你教她写代码怎么办?安排,三万字博文带你走遍C语言,从此不再害怕编程
Kubernetes第零篇:认识kubernetes
游戏元宇宙发展趋势展望分析
_ _ determinant of a matrix is higher algebra eigenvalue of the product, the characteristic value of matrix trace is combined
Pytest: begin to use
HCIP---Architecture of Enterprise Network
不卷了!入职字节跳动一周就果断跑了。
MySQL related knowledge
迁移学习——Discriminative Transfer Subspace Learning via Low-Rank and Sparse Representation
工程建筑行业数据中台指标分析
用户体验 | 如何度量用户体验?
365天挑战LeetCode1000题——Day 046 生成每种字符都是奇数个的字符串 + 两数相加 + 有效的括号
Kubernetes Scheduler全解析
HCIP---Multiple Spanning Tree Protocol related knowledge points
毕业十年,财富自由:那些比拼命努力更重要的事,从来没人会教你
【建议收藏】ヾ(^▽^*)))全网最全输入输出格式符整理
基于php酒店在线预定管理系统获取(php毕业设计)
kubernetes CoreDNS全解析
程序员必备的 “ 摸鱼神器 ” 来了 !
Scala practice questions + answers