2012-11-01 19:18:05 +00:00
|
|
|
class Anemone::Extractors::Dirbuster < Anemone::Extractors::Base
|
|
|
|
|
2013-08-30 21:28:33 +00:00
|
|
|
def run
|
|
|
|
return [] if page.code.to_i != 200
|
2012-11-01 19:18:05 +00:00
|
|
|
|
2013-08-30 21:28:33 +00:00
|
|
|
@@dirs ||= nil
|
2012-11-01 19:18:05 +00:00
|
|
|
|
2013-08-30 21:28:33 +00:00
|
|
|
return @@dirs if @@dirs
|
|
|
|
@@dirs = IO.read( File.dirname( __FILE__ ) + '/dirbuster/directories' ).split( "\n" )
|
|
|
|
end
|
|
|
|
|
2012-11-01 19:18:05 +00:00
|
|
|
end
|