Skip to content

Commit 81cb85e

Browse files
committed
Make msfbase actually do something useful
Signed-off-by: Tod Beardsley <[email protected]>
1 parent 21e093a commit 81cb85e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tools/modules/module_commits.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,11 @@ class CommitHistory < Struct.new(:fname, :total, :authors)
2121
end
2222

2323
msfbase = __FILE__
24+
2425
while File.symlink?(msfbase)
2526
msfbase = File.expand_path(File.readlink(msfbase), File.dirname(msfbase))
2627
end
28+
msfbase = File.expand_path(File.join(File.dirname(msfbase), '..', '..'))
2729

2830
dir = ARGV[0] || File.join(msfbase, "modules", "exploits")
2931
raise ArgumentError, "Need a filename or directory" unless (dir and File.readable? dir)

0 commit comments

Comments
 (0)