Skip to content

Commit fe267fb

Browse files
committed
Here's a starting point
1 parent b19f766 commit fe267fb

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

tools/egghunter.rb

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
msfbase = __FILE__
2+
while File.symlink?(msfbase)
3+
msfbase = File.expand_path(File.readlink(msfbase), File.dirname(msfbase))
4+
end
5+
$:.unshift(File.expand_path(File.join(File.dirname(msfbase), '..', 'lib')))
6+
require 'msfenv'
7+
require 'rex'
8+
require 'msf/core'
9+
require 'optparse'
10+
11+
module Egghunter
12+
class Driver < Msf::Auxiliary
13+
include Msf::Exploit::Remote::Egghunter
14+
15+
def initialize(opts={})
16+
end
17+
18+
def run
19+
end
20+
21+
end
22+
end
23+
24+
25+
if __FILE__ == $PROGRAM_NAME
26+
driver = Egghunter::Driver.new
27+
begin
28+
driver.run
29+
rescue Interrupt
30+
$stdout.puts
31+
$stdout.puts "Good bye"
32+
end
33+
end

0 commit comments

Comments
 (0)