web-dev-qa-db-ja.com

bash: "Y":コマンドが見つかりません

Ubuntu 18.04にいくつかのツールをインストールしましたが、どうやら問題が発生したようです。

いくつかの現象があります。

最初はそれです Ctrl+Alt+t 端末を開きません。端末を開くには、デスクトップを右クリックして[新しい端末を開く]ボタンを押す必要があります。

さらに、質問を表示して回答を待つスクリプトを実行すると、スクリプトがクラッシュします。たとえば、SQLmapを実行すると、次のようになります。

eliko@ubuntu:~/Desktop/Tools/sqlmap$ ./sqlmap.py -u 
https://Nice.app.com/[email protected]&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 

私の理解では、プロセスがバックグラウンドまたは何かで作成されるという問題があります(私はLinuxマスターではありませんが、「[4] 2652」と表示されて続行するためと思います)。

bash: Y: command not foundエラーは、ヒットした文字のみを含む、挿入された文字に対して発生します ENTER

上記の一連の問題は、おそらくツールのインストールに起因する1つの問題に関連していると思います。

私はすでに.bashrcを実行してコピーしようとしました(いくつかのスレッドでこれが役立つかもしれません)。

cp /etc/skel/.bashrc ~/.bashrc

また、マシンを再起動しようとしました。

これはPATHをエコーし​​て得られる出力です。

/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin

問題を解決するにはどうすればよいですか?入力を受信するツールを使用できず、おそらくbashに問題があるようです。

2
user3091216

問題はおそらくURLの&文字です-これにより、シェルはコマンドをバックグラウンドで配置します([4] 2652ジョブ番号/ pidで示されます)。

URL文字列を引用してみてください:

./sqlmap.py -u "https://Nice.app.com/[email protected]&key=cc" 
7
steeldriver