Skip to content

Commit 7b93147

Browse files
author
Tod Beardsley
committed
Add the require boilerplate
Fixes a bug that sometimes comes up with load order on this module. I know @jlee-r7 is working on a better overall solution but this should solve for the short term. Note, since the problem is practically machine-specific. @jlee-r7 suggested rm'ing all modules but the one under test. Doing that exposes the bug, and I've verified this fix in that way.
1 parent feae4a4 commit 7b93147

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

modules/exploits/osx/local/sudo_password_bypass.rb

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@
55
#
66
# http://metasploit.com/
77
##
8+
require 'msf/core'
9+
require 'rex'
10+
require 'msf/core/post/common'
11+
require 'msf/core/post/file'
12+
require 'msf/core/exploit/exe'
813
require 'shellwords'
914

1015
class Metasploit3 < Msf::Exploit::Local

0 commit comments

Comments
 (0)