当前位置:网站首页>【零基础】php代码审计之sql注入
【零基础】php代码审计之sql注入
2022-07-24 22:12:00 【宣紫科技】
在很多人眼里,代码审计的基础就是代码,这句话没错,但是如果不会代码,我们是否可以学会代码审计?
答案是:可以(不过由于个人代码阅读能力有限,很多漏洞可能不会那么容易被关注到)
0x01 准备环节
开始之前我们需要了解我们要准备的一些必备的东西,当然这里我们讲的不是代码审计所需要的环境,而是我们在代码审计过程中需要查阅的一些资料。
1:php官网
https://www.php.net/
主要作用是用于函数作用查看,我们本文主要讲的是sql注入,当然除sql注入以外的其他漏洞的相关函数也是可以通过php官网查看的,当然为了提升个人php代码阅读能力也可以通过php官网进行学习。
2:菜鸟学院
https://www.runoob.com/php/php-tutorial.html
菜鸟学院的php页面没有官网上函数那么的全,不过菜鸟学院主要是作用于学习,可提升个人代码阅读能力。
0x02 sql注入的产生
在以往的文章中,大家可能已经对sql注入有一定的了解,我们就不做过多介绍,不懂的同学可以看下我们过去的文章,我们直接从代码来看,以sqli-labs中的less-1为例,页面代码如下:
- <
边栏推荐
- How to adjust the default output of vscode to the debugging console to the terminal and the problem of garbled code in both
- Which is the best interface documentation tool at home and abroad?
- Helm —— 强大的 Kubernetes 应用的包管理工具
- Flex layout
- 【ICML2022】气候变化与机器学习:机遇、挑战与考虑,121页ppt
- 头脑风暴之——利用reduce方法重构concat函数
- 暴力递归——N皇后详解 && 如何用位运算进行优化
- Cell special issue | application and future prediction of AI in protein structure, precision medicine, antibody therapy [review]
- IndexTree2D
- Implement redis sentinel to simulate master failure scenarios
猜你喜欢

Helm -- a powerful package management tool for kubernetes applications

工业物联网中的时序数据

《JUC并发编程 - 高级篇》05 -共享模型之无锁 (CAS | 原子整数 | 原子引用 | 原子数组 | 字段更新器 | 原子累加器 | Unsafe类 )
![Cell special issue | application and future prediction of AI in protein structure, precision medicine, antibody therapy [review]](/img/2e/7f3cbae33c8a994b38e3bf4f9f13cb.png)
Cell special issue | application and future prediction of AI in protein structure, precision medicine, antibody therapy [review]

Implement redis sentinel to simulate master failure scenarios

PCL点云处理之直线点集投影规则化(五十六)

Get the solution to the slow running speed of Mengxin Xiaobai computer! ٩ ( ‘ ω‘ )و get! ٩ ( ‘ ω‘ )و

Gee - dataset introduction mcd12q1

GlideModule AppGlideModule和Generated API详解

Go+ language
随机推荐
ASP. Net core 6.0 data validation based on model validation
"Yuan universe 2086" outsold "San ti" in one-day sales and won the champion of JD books' one-day science fiction list
Pyqt5 uses qfile and qdatastream to read and write binary files
CSF cloth simulation filtering for PCL point cloud processing (59)
CAD break command
单调栈结构
Glidemodule appglidemodule and generated API details
DDos攻击分类
PCL点云处理之找到直线点集的两个端点(五十七)
IndexTree2D
Visual studio input! No prompt
Update structure of maximum or minimum value in the window - maximum value in the window
Icassp 2022 | KS transformer for multimodal emotion recognition
线段树,,
CA证书制作实战
Win10 solution Base64
[cloud native kubernetes] kubernetes cluster advanced resource object staterulesets
Let‘s Encrypt
Brainstorming -- using reduce method to reconstruct concat function
暴力递归——N皇后详解 && 如何用位运算进行优化