Skip to content
This repository has been archived by the owner on Jan 10, 2024. It is now read-only.

Commit

Permalink
Fixed update script for msfvenom path on non-kali distros
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisTruncer committed Apr 21, 2015
1 parent 3f1fdb5 commit 277f1eb
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG
@@ -1,3 +1,7 @@
[4.21.2015]
Released.: 2.19.1
Modified.: Fixed Github issue #132 with an issue for msfvenom path on non-kali distro.

[4.17.2015]
Released.: 2.19.0
Modified.: Forgot to add to changelog and update version number last month, fixed here!
Expand Down
9 changes: 8 additions & 1 deletion config/update.py
Expand Up @@ -163,7 +163,6 @@ def generateConfig(options):
options["METASPLOIT_PATH"] = "/usr/share/metasploit-framework/"
if os.path.isfile('/usr/bin/msfvenom'):
options["MSFVENOM_PATH"] = "/usr/bin/"
print options["MSFVENOM_PATH"]
else:
msfpath = raw_input(" [>] Please enter the path of your metasploit installation: ")
options["MSFVENOM_PATH"] = msfpath
Expand All @@ -175,12 +174,20 @@ def generateConfig(options):
options["OPERATING_SYSTEM"] = "BackTrack"
options["TERMINAL_CLEAR"] = "clear"
options["METASPLOIT_PATH"] = "/opt/metasploit/msf3/"
if os.path.isfile('/usr/bin/msfvenom'):
options["MSFVENOM_PATH"] = "/usr/bin/"
else:
options["MSFVENOM_PATH"] = "/opt/metasploit/msf3/"
options["PYINSTALLER_PATH"] = "/opt/pyinstaller-2.0/"
else:
options["OPERATING_SYSTEM"] = "Linux"
options["TERMINAL_CLEAR"] = "clear"
msfpath = raw_input(" [>] Please enter the path of your metasploit installation: ")
options["METASPLOIT_PATH"] = msfpath
if os.path.isfile('/usr/bin/msfvenom'):
options["MSFVENOM_PATH"] = "/usr/bin/"
else:
options["MSFVENOM_PATH"] = msfpath
options["PYINSTALLER_PATH"] = "/opt/pyinstaller-2.0/"

# last of the general options
Expand Down
2 changes: 1 addition & 1 deletion modules/common/messages.py
Expand Up @@ -8,7 +8,7 @@
import helpers


version = "2.19.0"
version = "2.19.1"


# try to find and import the settings.py config file
Expand Down

1 comment on commit 277f1eb

@6lackghost
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please enter the directory of msfvenom (e.g. /usr/bin/): im having problem with is what to do? nothing seems to be working

Please sign in to comment.