mirror of
https://github.com/rapid7/metasploit-framework
synced 2024-10-29 18:07:27 +01:00
Here's a starting point
This commit is contained in:
parent
b19f766728
commit
fe267fb5a6
33
tools/egghunter.rb
Executable file
33
tools/egghunter.rb
Executable file
@ -0,0 +1,33 @@
|
||||
msfbase = __FILE__
|
||||
while File.symlink?(msfbase)
|
||||
msfbase = File.expand_path(File.readlink(msfbase), File.dirname(msfbase))
|
||||
end
|
||||
$:.unshift(File.expand_path(File.join(File.dirname(msfbase), '..', 'lib')))
|
||||
require 'msfenv'
|
||||
require 'rex'
|
||||
require 'msf/core'
|
||||
require 'optparse'
|
||||
|
||||
module Egghunter
|
||||
class Driver < Msf::Auxiliary
|
||||
include Msf::Exploit::Remote::Egghunter
|
||||
|
||||
def initialize(opts={})
|
||||
end
|
||||
|
||||
def run
|
||||
end
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
if __FILE__ == $PROGRAM_NAME
|
||||
driver = Egghunter::Driver.new
|
||||
begin
|
||||
driver.run
|
||||
rescue Interrupt
|
||||
$stdout.puts
|
||||
$stdout.puts "Good bye"
|
||||
end
|
||||
end
|
Loading…
Reference in New Issue
Block a user