简单说清楚什么是SQL Injection?

最近看完了《The Pragmatic Programmer: 20th Anniversary Edition, 2nd Edition: Your Journey to Mastery》,在第7章:While You Are Coding的footnotes中,提到了一幅漫画:

这不仅用简单的方式说清楚了什么是SQL Injection,而且这个网站还提供各种编程语言下的SQL Injection示例。

其实如果你熟悉Shell脚本,我也一个更简单的例子来演示injection。虽然不是SQL Injection,而是Shell脚本注入,但意思是一样的。

bash 复制代码
$ ls *.out
a.out

$ cat a.sh
eval "ls -l $*"

$ ./a.sh "*.c;rm *.out"
-rw-r--r-- 1 oracle oinstall 67 Mar  1 05:29 a.c

$ ls *.out
ls: cannot access '*.out': No such file or directory
相关推荐
DBA圈小圈3 小时前
【KingbaseES】V8R6查询长事务语句
数据库·postgresql·database
码农12138号9 小时前
Bugku 2023 HackINI Virtual Shop 和 2023 HackINI Virtual Shop 2
web安全·sqlite·sql注入
TT哇1 天前
【Database Navigator 插件】idea 社区版连接 mysql 数据库
java·数据库·mysql·intellij-idea·database
码农12138号1 天前
网络安全-SQL注入
数据库·web安全·sql注入
汤愈韬1 天前
防火墙双机热备HRP
网络协议·security·huawei
dingdingfish3 天前
Oracle 《数据库 2 天开发人员指南》第1章:2天Oracle数据库开发介绍
oracle·database·developer·guide·intro
dingdingfish3 天前
Oracle 《数据库 2 天开发人员指南》第2章:连接与探索Oracle数据库
oracle·database·developer·connect·guide·explore
宝桥南山5 天前
Azure - 尝试使用一下Kusto Query Language(KQL)
sql·microsoft·微软·database·azure·powerbi
dingdingfish5 天前
Oracle 数据库 2 天开发人员指南 翻译及读书笔记
oracle·database·developer·19c·guide
mooyuan天天5 天前
DedeCMS织梦5.7 SQL注入+文件上传复现:环境搭建+渗透实战
文件上传·sql注入·dedecms织梦