Skip to content

Commit

Permalink
Use http://testphp.vulnweb.com/` example URLs for new examples.
Browse files Browse the repository at this point in the history
  • Loading branch information
postmodern committed Aug 28, 2024
1 parent 995ea8e commit 47c76cb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -278,15 +278,15 @@ Finds all vulnerabilities for a given URI:
```ruby
require 'ronin/vulns/core_ext'

URI('https://example.com/page.php?lang=en').vulns
URI('http://testphp.vulnweb.com/listproducts.php?cat=1').vulns
# => [#<Ronin::Vulns::RFI: ...>, ...]

```

Check if a URI contains any vulnerabilities:

```ruby
URI('https://example.com/page.php?lang=en').has_vulns?
URI('http://testphp.vulnweb.com/listproducts.php?cat=1').has_vulns?
# => true
```

Expand Down
4 changes: 2 additions & 2 deletions lib/ronin/vulns/core_ext/uri/http.rb
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ class HTTP
# All discovered Web vulnerabilities
#
# @example
# URI('https://testphp.vulnweb.com/').vulns
# URI('http://testphp.vulnweb.com/listproducts.php?cat=1').vulns
# # => [#<Ronin::Vulns::RFI: ...>, ...]
#
# @see Ronin::Vulns::URLScanner.scan
Expand All @@ -63,7 +63,7 @@ def vulns(**kwargs)
# @return [Boolean]
#
# @example
# URI('https://testphp.vulnweb.com/').has_vulns?
# URI('http://testphp.vulnweb.com/listproducts.php?cat=1').has_vulns?
# # => true
#
# @see Ronin::Vulns::URLScanner.test
Expand Down

0 comments on commit 47c76cb

Please sign in to comment.