https://blog.youkuaiyun.com/weixin_43583637/article/details/102828013
在执行getshell.sh时报错
www-data@dc-8:/tmp$ ./getshell.sh -m netchat
./getshell.sh -m netchat
bash: ./getshell.sh: /bin/bash^M: bad interpreter: No such file or directory
原因是文档格式不对
使用vim 打开getshell.sh
在末行命令行中输入 :set ff查看fileformat
在末行命令行中修改文件格式:set ff=unix
解决/bin/bash^M: bad interpreter问题
https://blog.youkuaiyun.com/itgather/article/details/102729348
本文介绍了解决在执行getshell.sh脚本时遇到的/bin/bash^M:badinterpreter错误的方法。通过使用vim编辑器检查并修改文件格式为Unix,成功解决了因文档格式不匹配导致的解释器识别问题。
4999

被折叠的 条评论
为什么被折叠?



