Skip to content

Commit 239ca28

Browse files
committed
Use http://testphp.vulnweb.com/` example URLs for new examples.
1 parent f0463c2 commit 239ca28

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -278,15 +278,15 @@ Finds all vulnerabilities for a given URI:
278278
```ruby
279279
require 'ronin/vulns/core_ext'
280280

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

284284
```
285285

286286
Check if a URI contains any vulnerabilities:
287287

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

lib/ronin/vulns/core_ext/uri/http.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ class HTTP
4242
# All discovered Web vulnerabilities
4343
#
4444
# @example
45-
# URI('https://testphp.vulnweb.com/').vulns
45+
# URI('http://testphp.vulnweb.com/listproducts.php?cat=1').vulns
4646
# # => [#<Ronin::Vulns::RFI: ...>, ...]
4747
#
4848
# @see Ronin::Vulns::URLScanner.scan
@@ -63,7 +63,7 @@ def vulns(**kwargs)
6363
# @return [Boolean]
6464
#
6565
# @example
66-
# URI('https://testphp.vulnweb.com/').has_vulns?
66+
# URI('http://testphp.vulnweb.com/listproducts.php?cat=1').has_vulns?
6767
# # => true
6868
#
6969
# @see Ronin::Vulns::URLScanner.test

0 commit comments

Comments
 (0)