Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ignore network exceptions in ronin url --status #211

Closed
postmodern opened this issue Aug 12, 2024 · 0 comments
Closed

Ignore network exceptions in ronin url --status #211

postmodern opened this issue Aug 12, 2024 · 0 comments
Assignees
Labels
bug Bug Report command Ronin Command
Milestone

Comments

@postmodern
Copy link
Member

postmodern commented Aug 12, 2024

If a URL cannot be requested, ignore any network exceptions and omit the URL from the output of ronin url --status.

$ ronin url --status https://does.not.exist.com/
...

ronin url: /usr/share/ruby/net/http.rb:1603:in `initialize': Failed to open TCP connection to does.not.exist.com:443 (getaddrinfo: No address associated with hostname) (Socket::ResolutionError)
	from /usr/share/ruby/net/http.rb:1603:in `open'
	from /usr/share/ruby/net/http.rb:1603:in `block in connect'
	from /usr/share/ruby/timeout.rb:186:in `block in timeout'
	from /usr/share/ruby/timeout.rb:193:in `timeout'
	from /usr/share/ruby/net/http.rb:1601:in `connect'
	from /usr/share/ruby/net/http.rb:1580:in `do_start'
	from /usr/share/ruby/net/http.rb:1569:in `start'
	from /usr/share/ruby/net/http.rb:2297:in `request'
	from /usr/local/share/gems/gems/ronin-support-1.1.0/lib/ronin/support/network/http.rb:780:in `request'
	from /usr/local/share/gems/gems/ronin-support-1.1.0/lib/ronin/support/network/http.rb:855:in `response_status'
	from /usr/local/share/gems/gems/ronin-support-1.1.0/lib/ronin/support/network/http.rb:1586:in `response_status'
	from /usr/local/share/gems/gems/ronin-support-1.1.0/lib/ronin/support/network/http/core_ext/uri/http.rb:45:in `status'
	from /usr/local/share/gems/gems/ronin-2.1.0/lib/ronin/cli/commands/url.rb:144:in `process_value'
@postmodern postmodern added bug Bug Report command Ronin Command labels Aug 12, 2024
@postmodern postmodern added this to the 2.1.1 milestone Aug 12, 2024
@postmodern postmodern self-assigned this Aug 12, 2024
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Bug Report command Ronin Command
Projects
None yet
Development

No branches or pull requests

1 participant