2016-04-24 23 views
-2

你可以看到它說chmod命令沒有找到,但它已經安裝了chmod。我直接從終端安裝metasploit(我沒有安裝任何桌面環境,也不想從那裏運行msf)。有什麼辦法可以解決這個問題嗎?我很樂意回覆。 enter image description here在下圖中找不到chmod [metasploit installation]

回答

0

而不是使用該命令的,用這個來代替

curl https://raw.githubusercontent.com/rapid7/metasploit-omnibus/master/config/templates/metasploit-framework-wrappers/msfupdate.erb > msfinstall && chmod 755 msfinstall && ./msfinstall

0

取下複合bash命令的反斜槓,他們在Linux中已經習慣了逃避空格字符。例如,你必須鍵入:

cd ~/Documents/My\ Folder 

訪問

~/Documents/My Folder 

通過寫命令你做你要找的,而不是「CHMOD」命令的方式「CHMOD」,你」 ve基本上在命令名之前插入了一個空格。 我建議在冒險進入Metasploit之前學習Linux Bash腳本。 否則你會不斷遇到這類問題,如果你想從命令控制檯使用Metasploit,那麼研究Linux Bash腳本(以及整個Linux操作系統)是非常必要的。