Class: URI::HTTP
- Inherits:
-
Generic
- Object
- Generic
- URI::HTTP
- Defined in:
- lib/ronin/php/lfi/extensions/uri/http.rb,
lib/ronin/php/rfi/extensions/uri/http.rb
Instance Method Summary collapse
- #has_lfi?(options = {}) ⇒ Boolean
- #has_rfi?(options = {}) ⇒ Boolean
- #lfi(options = {}) ⇒ Object
- #rfi(options = {}) ⇒ Object
- #test_lfi(options = {}) ⇒ Object
- #test_rfi(options = {}) ⇒ Object
Instance Method Details
#has_lfi?(options = {}) ⇒ Boolean
53 54 55 |
# File 'lib/ronin/php/lfi/extensions/uri/http.rb', line 53 def has_lfi?(={}) !(test_lfi().empty?) end |
#has_rfi?(options = {}) ⇒ Boolean
49 50 51 |
# File 'lib/ronin/php/rfi/extensions/uri/http.rb', line 49 def has_rfi?(={}) !(test_rfi().empty?) end |
#lfi(options = {}) ⇒ Object
49 50 51 |
# File 'lib/ronin/php/lfi/extensions/uri/http.rb', line 49 def lfi(={}) test_lfi().first end |
#rfi(options = {}) ⇒ Object
45 46 47 |
# File 'lib/ronin/php/rfi/extensions/uri/http.rb', line 45 def rfi(={}) test_rfi().first end |
#test_lfi(options = {}) ⇒ Object
29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 |
# File 'lib/ronin/php/lfi/extensions/uri/http.rb', line 29 def test_lfi(={}) up = (([:up]) || 0..Ronin::PHP::LFI::MAX_UP) vulns = [] query_params.each_key do |param| lfi = Ronin::PHP::LFI.new(self,param) up.each do |n| lfi.up = n if lfi.vulnerable?() vulns << lfi break end end end return vulns end |