Skip to content

Commit 5348127

Browse files
committed
Metasploit 4.5 Installer Environment Tweak
Armitage on Windows requires the user to specify their MSF install folder. This tweak checks for an MSF 4.5 environment and updates the specified folder to make everything work. Like magic.
1 parent a79f2fa commit 5348127

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

data/armitage/armitage.jar

-149 Bytes
Binary file not shown.

external/source/armitage/scripts/util.sl

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -294,6 +294,11 @@ sub startMetasploit {
294294
[System exit: 0];
295295
}
296296

297+
# if the user chooses c:\metasploit AND we're in the 4.5 environment... adjust
298+
if (-exists getFileProper($msfdir, "apps", "pro", "msf3")) {
299+
$msfdir = getFileProper($msfdir, "apps", "pro");
300+
}
301+
297302
if (charAt($msfdir, -1) ne "\\") {
298303
$msfdir = "$msfdir $+ \\";
299304
}

0 commit comments

Comments
 (0)