forked from rapid7/metasploit-framework
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
5b32c63
commit 7e5e0f7
Showing
886 changed files
with
245,072 additions
and
245,072 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
class Anemone::Extractors::Anchors < Anemone::Extractors::Base | ||
|
||
def run | ||
doc.search( '//a[@href]' ).map { |a| a['href'] } | ||
end | ||
def run | ||
doc.search( '//a[@href]' ).map { |a| a['href'] } | ||
end | ||
|
||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
class Anemone::Extractors::Dirbuster < Anemone::Extractors::Base | ||
|
||
def run | ||
return [] if page.code.to_i != 200 | ||
def run | ||
return [] if page.code.to_i != 200 | ||
|
||
@@dirs ||= nil | ||
@@dirs ||= nil | ||
|
||
return @@dirs if @@dirs | ||
@@dirs = IO.read( File.dirname( __FILE__ ) + '/dirbuster/directories' ).split( "\n" ) | ||
end | ||
return @@dirs if @@dirs | ||
@@dirs = IO.read( File.dirname( __FILE__ ) + '/dirbuster/directories' ).split( "\n" ) | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
class Anemone::Extractors::Forms < Anemone::Extractors::Base | ||
|
||
def run | ||
doc.search( '//form[@action]' ).map { |a| a['action'] } | ||
end | ||
def run | ||
doc.search( '//form[@action]' ).map { |a| a['action'] } | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
class Anemone::Extractors::Frames < Anemone::Extractors::Base | ||
|
||
def run | ||
doc.css( 'frame', 'iframe' ).map { |a| a.attributes['src'].content rescue next } | ||
end | ||
def run | ||
doc.css( 'frame', 'iframe' ).map { |a| a.attributes['src'].content rescue next } | ||
end | ||
|
||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
class Anemone::Extractors::Links < Anemone::Extractors::Base | ||
|
||
def run | ||
doc.search( "//link[@href]" ).map { |a| a['href'] } | ||
end | ||
def run | ||
doc.search( "//link[@href]" ).map { |a| a['href'] } | ||
end | ||
|
||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,24 @@ | ||
class Anemone::Extractors::MetaRefresh < Anemone::Extractors::Base | ||
|
||
def run | ||
doc.search( "//meta[@http-equiv='refresh']" ).map do |url| | ||
begin | ||
_, url = url['content'].split( ';', 2 ) | ||
next if !url | ||
unquote( url.split( '=', 2 ).last ) | ||
rescue | ||
next | ||
end | ||
end | ||
rescue | ||
nil | ||
end | ||
def run | ||
doc.search( "//meta[@http-equiv='refresh']" ).map do |url| | ||
begin | ||
_, url = url['content'].split( ';', 2 ) | ||
next if !url | ||
unquote( url.split( '=', 2 ).last ) | ||
rescue | ||
next | ||
end | ||
end | ||
rescue | ||
nil | ||
end | ||
|
||
def unquote( str ) | ||
[ '\'', '"' ].each do |q| | ||
return str[1...-1] if str.start_with?( q ) && str.end_with?( q ) | ||
end | ||
str | ||
end | ||
def unquote( str ) | ||
[ '\'', '"' ].each do |q| | ||
return str[1...-1] if str.start_with?( q ) && str.end_with?( q ) | ||
end | ||
str | ||
end | ||
|
||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
class Anemone::Extractors::Scripts < Anemone::Extractors::Base | ||
|
||
def run | ||
doc.search( '//script[@src]' ).map { |a| a['src'] } | ||
end | ||
def run | ||
doc.search( '//script[@src]' ).map { |a| a['src'] } | ||
end | ||
|
||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.