Skip to content

Commit 01881a8

Browse files
committed
don't wrap non-existent metasploit-aggregator
1 parent f3fb088 commit 01881a8

File tree

5 files changed

+2
-13
lines changed

5 files changed

+2
-13
lines changed

config/software/metasploit-framework-wrappers-windows.rb

-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@
3333
vars: { install_dir: install_dir }
3434

3535
metasploit_bins = [
36-
'metasploit-aggregator',
3736
'msfbinscan',
3837
'msfconsole',
3938
'msfd',

config/software/metasploit-framework-wrappers.rb

-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@
2525
command "chmod +x #{install_dir}/bin/*"
2626

2727
metasploit_bins = [
28-
'metasploit-aggregator',
2928
'msfbinscan',
3029
'msfconsole',
3130
'msfd',

config/templates/metasploit-framework-wrappers/msfwrapper.erb

-9
Original file line numberDiff line numberDiff line change
@@ -88,15 +88,6 @@ else # Skip initialization if we're root
8888
fi
8989
fi
9090

91-
if [ $cmd = "metasploit-aggregator" ]; then
92-
`echo "exit 1 unless ['x86_64-linux', 'x86-linux', 'darwin'].include?(RUBY_PLATFORM.gsub(/.*darwin.*/, 'darwin'))" | $BIN/ruby`
93-
if [ $? != 0 ]; then
94-
(>&2 echo "This platform is not supported at this time.")
95-
exit 0
96-
fi
97-
FROM_CONSOLE_PATH=true
98-
fi
99-
10091
unset GEM_HOME
10192
unset GEM_PATH
10293
unset GEM_ROOT

package-scripts/metasploit-framework/postinst

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
# after package is installed.
55
#
66

7-
BINS="msfbinscan msfconsole msfd msfdb msfelfscan msfmachscan msfpescan msfrop msfrpc msfrpcd msfupdate msfvenom metasploit-aggregator"
7+
BINS="msfbinscan msfconsole msfd msfdb msfelfscan msfmachscan msfpescan msfrop msfrpc msfrpcd msfupdate msfvenom"
88

99
if [ -x /usr/sbin/update-alternatives -o -x /usr/bin/update-alternatives ] ; then
1010
for BIN in $BINS; do

package-scripts/metasploit-framework/prerm

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
# prior to installing package.
55
#
66

7-
BINS="msfbinscan msfconsole msfd msfdb msfelfscan msfmachscan msfpescan msfrop msfrpc msfrpcd msfupdate msfvenom metasploit-aggregator"
7+
BINS="msfbinscan msfconsole msfd msfdb msfelfscan msfmachscan msfpescan msfrop msfrpc msfrpcd msfupdate msfvenom"
88

99
if [ -x /usr/sbin/update-alternatives ] ; then
1010
for BIN in $BINS; do

0 commit comments

Comments
 (0)