bash:“Y”:找不到命令

use*_*216 2 command-line bash gnome-terminal bashrc 18.04

我在 Ubuntu 18.04 上安装了一些工具,显然出了点问题。

有几种现象。

第一个是Ctrl+ Alt+t不会打开一个终端。为了打开终端,我需要右键单击桌面并按“打开新终端”按钮。

此外,每当我运行一个提示问题并等待答案的脚本时,脚本就会崩溃。例如,当我运行 SQLmap 时会发生以下情况:

eliko@ubuntu:~/Desktop/Tools/sqlmap$ ./sqlmap.py -u 
https://nice.app.com/forgot_password?email=rob@bob.com&key=cc
[4] 2652
eliko@ubuntu:~/Desktop/Tools/sqlmap$ 
[!] legal disclaimer: Usage of sqlmap for attacking targets without prior mutual consent is illegal. It is the end user's responsibility to obey all applicable local, state and federal laws. Developers assume no liability and are not responsible for any misuse or damage caused by this program

[*] starting @ 08:46:58 /2019-12-29/

[08:46:59] [INFO] testing connection to the target URL
[08:46:59] [CRITICAL] previous heuristics detected that the target is protected by some kind of WAF/IPS
[08:46:59] [INFO] testing if the target URL content is stable
[08:46:59] [WARNING] target URL content is not stable (i.e. content differs). sqlmap will base the page comparison on a sequence matcher. If no dynamic nor injectable parameters are detected, or in case of junk results, refer to user's manual paragraph 'Page comparison'
how do you want to proceed? [(C)ontinue/(s)tring/(r)egex/(q)uit] Y
bash: Y: command not found

[4]+  Stopped                 ./sqlmap.py -u 
Run Code Online (Sandbox Code Playgroud)

根据我的理解,存在进程在后台创建或其他问题(我不是Linux高手,但我认为是因为它显示“ [4] 2652”然后继续)。

bash: Y: command not found所插入包括只击中任何字母出现错误ENTER

我假设上述一组问题与一个可能由工具安装引起的问题有关。

我已经尝试.bashrc通过执行复制(我在某些线程上看到这可能会有所帮助):

cp /etc/skel/.bashrc ~/.bashrc
Run Code Online (Sandbox Code Playgroud)

并尝试重新启动机器。

这是我从 echoing 得到的输出PATH

/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin
Run Code Online (Sandbox Code Playgroud)

我能做些什么来解决这个问题?我无法使用任何接收输入的工具,而且 bash 似乎有问题。

ste*_*ver 7

问题很可能是&您的 URL 中的字符 - 这导致 shell 将命令置于后台(如[4] 2652作业编号/pid 所示)。

尝试引用 URL 字符串:

./sqlmap.py -u "https://nice.app.com/forgot_password?email=rob@bob.com&key=cc" 
Run Code Online (Sandbox Code Playgroud)

  • @user3091216 终端快捷方式问题不太可能与恕我直言有关 (2认同)