bash - 在 bash 中绕过过滤 "."和 "space"

标签 bash ubuntu

我试图绕过。过滤,所以有什么办法可以写。 bash shell 能理解吗?

例如我可以通过使用绕过空间:

cat</etc/passwd

{cat,/etc/passwd}

谢谢

最佳答案

在 Bash 中,您可以使用 source关键词:

$ cat some_script
echo sourced
$ {source,some_script}
sourced

关于bash - 在 bash 中绕过过滤 "."和 "space",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49785255/

相关文章:

linux - 在 Ubuntu 上从 matlab 调用外部脚本失败

linux - 在linux中将默认shell更改为我们自己编写的shell

bash - 检查文件夹是否包含 glob

ruby-on-rails - 让 Nginx 转发到 EC2 上的 Thin

ubuntu - Ubuntu 上的 PHP 5.5 和 php5-mcrypt : Unmet dependencies

linux - 使用 linux 将数据转换为所需的形式

node.js - Cygwin 路径错误 : Cannot find module 'C:\cygdrive\c\...'

python - 如何使用 tcpdump 或从头开始编写一个模仿 Fiddler 的程序?

linux - 如何将输入管道输入到 linux 上的 sublimetext?

php - 批量删除大量文件