From f2856c7ee9a4b44c789d2313c8a944a106788c4f Mon Sep 17 00:00:00 2001 From: l0stkn0wledge Date: Tue, 6 Sep 2016 14:03:29 -0500 Subject: [PATCH] Correct missing comma in post-commands No comma resulted in a command line that tried: mkdir /root/.msf4 cp /opt/database.yml /root/.msf4 Added comma after the inital mkdir to separate into a separate mkdir and cp command. --- modules/exploitation/metasploit.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/exploitation/metasploit.py b/modules/exploitation/metasploit.py index 87fe1125..fc9b6a84 100644 --- a/modules/exploitation/metasploit.py +++ b/modules/exploitation/metasploit.py @@ -26,7 +26,7 @@ FEDORA="" # COMMANDS TO RUN AFTER -AFTER_COMMANDS="cd {INSTALL_LOCATION},mv msfupdate.erb msfinstall,chmod 755 msfinstall,./msfinstall,rm msfinstall,update-rc.d postgresql enable, chmod +x {PTF_LOCATION}/modules/exploitation/msfdb.sh,sh {PTF_LOCATION}/modules/exploitation/msfdb.sh,mkdir /root/.msf4 cp /opt/database.yml /root/.msf4/,rm -rf /pentest/exploitation/metasploit 2> /dev/null,rm -rf /usr/local/bin/msf*" +AFTER_COMMANDS="cd {INSTALL_LOCATION},mv msfupdate.erb msfinstall,chmod 755 msfinstall,./msfinstall,rm msfinstall,update-rc.d postgresql enable, chmod +x {PTF_LOCATION}/modules/exploitation/msfdb.sh,sh {PTF_LOCATION}/modules/exploitation/msfdb.sh,mkdir /root/.msf4, cp /opt/database.yml /root/.msf4/,rm -rf /pentest/exploitation/metasploit 2> /dev/null,rm -rf /usr/local/bin/msf*" # THIS WILL CREATE AN AUTOMATIC LAUNCHER FOR THE TOOL LAUNCHER=""