【转载】sqlmap-tamper使用介绍

SQLMAP当前为1.2.7.20,共有57个tamper脚本,与1.0版本相比新增了19个脚本。

序号脚本名称注释
10x2char将每个编码后的字符转换为等价表达
2apostrophemask单引号替换为Utf8字符
3apostrophenullencode替换双引号为%00%27
4appendnullbyte有效代码后添加%00
5base64encode使用base64编码
6between比较符替换为between
7bluecoat空格替换为随机空白字符,等号替换为like
8chardoubleencode双url编码
9charencode将url编码
10charunicodeencode使用unicode编码
11charunicodeescape以指定的payload反向编码未编码的字符
12commalesslimit改变limit语句的写法
13commalessmid改变mid语句的写法
14commentbeforeparentheses在括号前加内联注释
15concat2concatws替换CONCAT为CONCAT_WS
16equaltolike等号替换为like
17escapequotes双引号替换为\\
18greatest大于号替换为greatest
19halfversionedmorekeywords在每个关键字前加注释
20htmlencodehtml编码所有非字母和数字的字符
21ifnull2casewhenisnull改变ifnull语句的写法
22ifnull2ifisnull替换ifnull为if(isnull(A))
23informationschemacomment标示符后添加注释
24least替换大于号为least
25lowercase全部替换为小写值
26modsecurityversioned空格替换为查询版本的注释
27modsecurityzeroversioned添加完整的查询版本的注释
28multiplespaces添加多个空格
29nonrecursivereplacement替换预定义的关键字
30overlongutf8将所有字符转义为utf8
31overlongutf8more以指定的payload转换所有字符
32percentage每个字符前添加%
33plus2concat将加号替换为concat函数
34plus2fnconcat将加号替换为ODBC函数{fn CONCAT()}
35randomcase字符大小写随机替换
36randomcomments/**/分割关键字
37securesphere添加某字符串
38sp_password追加sp_password字符串
39space2comment空格替换为/**/
40space2dash空格替换为–加随机字符
41space2hash空格替换为#加随机字符
42space2morecomment空格替换为/_/
43space2morehash空格替换为#加随机字符及换行符
44space2mssqlblank空格替换为其他空符号
45space2mssqlhash空格替换为%23%0A
46space2mysqlblank空格替换为其他空白符号
47space2mysqldash空格替换为–%0A
48space2plus空格替换为加号
49space2randomblank空格替换为备选字符集中的随机字符
50symboliclogicalAND和OR替换为&&和
51unionalltounionunion all select替换为union select
52unmagicquotes宽字符绕过GPC
53uppercase全部替换为大写值
54varnish添加HTTP头
55versionedkeywords用注释封装每个非函数的关键字
56versionedmorekeywords使用注释绕过
57xforwardedfor添加伪造的HTTP头

下面以数据库为区分,给出每种数据库可供选择的tamper。若同一脚本适用不同数据库,则在每个数据库中都指出。

【MySQL】

版本可用tamper编号脚本名称
4/5.0/5.510x2char
"6between
"9charencode
"16concat2concatws
"18greatest
"24least
"25lowercase
"35randomcase
"39space2comment
"49space2randomblank
"53uppercase
5.17bluecoat
"46space2mysqlblank
5.0/5.512commalesslimit
"13commalessmid
"21ifnull2casewhenisnull
"22ifnull2ifisnull
"42space2morecomment
5.015concat2concatws
"26modsecurityversioned
"27modsecurityzeroversioned
4.0/5.041space2hash
5.1.5610charunicodeencode
5.1.56/5.5.1132percentage
"56versionedmorekeywords
4.0.18/5.0.2219halfversionedmorekeywords
4.0.18/5.1.56/5.5.1155versionedkeywords
5.1.4143space2morehash
未指定版本14commentbeforeparentheses
"40space2dash
"45space2mssqlhash
"47space2mysqldash

【SQLServer】

版本可用tamper编号脚本名称
2005/200010charunicodeencode
"32percentage
"44space2mssqlblank
20056between
"9charencode
"16equaltolike
"25lowercase
"35randomcase
"39space2comment
"49space2randomblank
"53uppercase
2002+33plus2concat
2008+34plus2fnconcat
未指定14commentbeforeparentheses

【Access】

版本可用tamper编号脚本名称
未指定4appendnullbyte

【Oracle】

版本可用tamper编号脚本名称
10g6between
"9charencode
"14commentbeforeparentheses
"18greatest
"24least
"25lowercase
"35randomcase
"39space2comment
"49space2randomblank
"53uppercase

【PostgreSQL】

版本可用tamper编号脚本名称
8.3/8.4/9.06between
"9charencode
"18greatest
"24least
"25lowercase
"39space2comment
"49space2randomblank
"53uppercase
9.032percentage
9.0.310charunicodeencode
未指定14commentbeforeparentheses
"35randomcase

【MSSQL】

版本可用tamper编号脚本名称
未指定38sp_password

【SQLite】

版本可用tamper编号脚本名称
未指定40space2dash

【未知适用范围】
若以上脚本未解决问题,可尝试使用一下脚本。

版本可用tamper编号脚本名称
"2apostrophemask
"3apostrophenullencode
"5base64encode
"8chardoubleencode
"11charunicodeescape
"17escapequotes
"20htmlencode
"23informationschemacomment
"28multiplespaces
"29nonrecursivereplacement
"30overlongutf8
"31overlongutf8more
"36randomcomments
"37securesphere
"48space2plus
"50symboliclogical
"51unionalltounion
"52unmagicquotes
"54varnish
"57xforwardedfor
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值