当前位置:网站首页>Regular expressions and bypass cases
Regular expressions and bypass cases
2022-07-26 22:17:00 【Small sail, will also set sail】
Check the number :
1. Numbers :^[0-9]*$
2. n Digit number :^\d{n}$
3. At least n Digit number :^\d{n,}$
4. m-n Digit number :^\d{m,n}$
5. Zero and non-zero digits :^(0|[1-9][0-9]*)$
6. A number with a maximum of two decimal places beginning with a nonzero :^([1-9][0-9]*)+(.[0-9]{1,2})?$
7. belt 1-2 Positive or negative number of decimal places :^(\-)?\d+(\.\d{1,2})?$
8. Positive numbers 、 negative 、 And decimal fraction :^(\-|\+)?\d+(\.\d+)?$
9. A positive real number with two decimal places :^[0-9]+(.[0-9]{2})?$
10. Yes 1~3 Positive real number of decimal places :^[0-9]+(.[0-9]{1,3})?$
11. Nonzero positive integer :^[1-9]\d*$ or ^([1-9][0-9]*){1,3}$ or ^\+?[1-9][0-9]*$
12. Nonzero negative integer :^\-[1-9][]0-9"*$ or ^-[1-9]\d*$
13. Non-negative integer :^\d+$ or ^[1-9]\d*|0$
14. Non positive integer :^-[1-9]\d*|0$ or ^((-\d+)|(0+))$
15. Nonnegative floating point number :^\d+(\.\d+)?$ or ^[1-9]\d*\.\d*|0\.\d*[1-9]\d*|0?\.0+|0$
16. Non positive floating point number :^((-\d+(\.\d+)?)|(0+(\.0+)?))$ or ^(-([1-9]\d*\.\d*|0\.\d*[1-9]\d*))|0?\.0+|0$
17. Positive floating point :^[1-9]\d*\.\d*|0\.\d*[1-9]\d*$ or ^(([0-9]+\.[0-9]*[1-9][0-9]*)|([0-9]*[1-9][0-9]*\.[0-9]+)|([0-9]*[1-9][0-9]*))$
18. Negative floating point number :^-([1-9]\d*\.\d*|0\.\d*[1-9]\d*)$ or ^(-(([0-9]+\.[0-9]*[1-9][0-9]*)|([0-9]*[1-9][0-9]*\.[0-9]+)|([0-9]*[1-9][0-9]*)))$
19. Floating point numbers :^(-?\d+)(\.\d+)?$ or ^-?([1-9]\d*\.\d*|0\.\d*[1-9]\d*|0?\.0+|0)$
Check character :
1. Chinese characters :^[\u4e00-\u9fa5]{0,}$
2. English and numbers :^[A-Za-z0-9]+$ or ^[A-Za-z0-9]{4,40}$
3. The length is 3-20 All characters of :^.{3,20}$
4. from 26 Composed of English letters character string :^[A-Za-z]+$
5. from 26 A string of uppercase letters :^[A-Z]+$
6. from 26 A string of lowercase letters :^[a-z]+$
7. By numbers and 26 A string of English letters :^[A-Za-z0-9]+$
8. By digital 、26 A string of English letters or underscores :^\w+$ or ^\w{3,20}$
Bypass the case :
User input
Encounter lightweight detection
adopt javascript Detection bypass
adopt MIME Type detection bypasses
Encountered file content detection
Bypass by code injection
Path encountered 、 Extension detection
Detection bypass
Encounter blacklist detection
File case bypass
The list bypasses
Special file names bypass (windows)
0x00 Bypass
Encountered whitelist detection
0x00 Cut and bypass
Code layer upload vulnerability
Direct analytical
Detection did not bypass
Parsing attacks
Code layer parsing call
.htaccess File parsing
The local file contains parsing
Summary
Code layer upload vulnerability
Indirect analysis
Application layer resolution call
Apache Parsing vulnerabilities
IIS Parsing vulnerabilities
Nginx Parsing vulnerabilities
Summary
Code layer upload vulnerability
Indirect analysis
test :
Client detection bypasses (javascript testing )
First of all, we observed that only image files can be uploaded , So the front-end view code , When the page changes , Will call this checkFileExt Function to check whether the image is uploaded , We just need to put... On the front end checkFileExt Function delete , You can upload a non image file .
You can also use burpsuit, But pay attention to change the Trojan horse into picture format first , To grab bags , Change again
边栏推荐
- 七月集训(第26天) —— 并查集
- 伦敦银外汇走势理解与实操
- Leetcode exercise - Sword finger offer II 005. maximum product of word length
- Flash source code startup phase
- 08.02 adjacency table
- 正则表达式及绕过案例
- Let me show you the MySQL isolation level. What happens when two transactions operate on the same row of data at the same time?
- JDBC summary
- JS verify complex password
- Excel-vba quick start (X. prompt box, inputable pop-up box)
猜你喜欢

Triangular wave spectrum of MATLAB excitation model

Matlab pitch period estimation post-processing

08.02 邻接表

Concept and classification of processes

mysql推荐书

小白学习MySQL - Derived Table

Schematic diagram of MOS tube

TASK04|分类分析

Let me show you the MySQL isolation level. What happens when two transactions operate on the same row of data at the same time?

Matlab draw short-term energy diagram
随机推荐
07 DF command
一篇让小百彻底搞懂性能调优
06 CP command
Understanding and practice of the trend of Bank of London foreign exchange
JS delay execution window.onload
现货黄金操作指南与建议(上)
Pytoch squeeze() unsqueeze() usage
Altium designer 22 modify the layer properties of the selected component
Determine the dimension of numpy array array
Also on Data Governance
[tool] apifox
Flink 在讯飞 AI 营销业务的实时数据分析实践
Triangular wave spectrum of MATLAB excitation model
09.01 深度优先搜索
【工具】Apifox
Matlab pitch period estimation post-processing
js验证复杂密码
Pytoch -- used by visdom
JS 延迟执行window.onload
When deploying Flink on a single machine and creating the connection table of oracle19c RAC, the error ora-12505 is reported. Who can help