Skip to content

Commit 4e7bd71

Browse files
committed
Added logging messages to indicate that the a server is listening.
* For some reason `async-dns` does have built-in logging messages, but `async-http` is silent.
1 parent 7a7bf1e commit 4e7bd71

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

lib/ronin/listener/cli/commands/dns.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,8 @@ def run(domain)
112112
options[:output_format].open(options[:output])
113113
end
114114

115+
log_info "Listening on #{options[:host]}:#{options[:port]} ..."
116+
115117
Ronin::Listener::DNS.listen(domain,**proxy_kwargs) do |query|
116118
log_info "Received DNS query: #{query.type} #{query.label} from #{query.source}"
117119
output_file << query if output_file

lib/ronin/listener/cli/commands/http.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,8 @@ def run
120120
options[:output_format].open(options[:output])
121121
end
122122

123+
log_info "Listening on #{options[:host]}:#{options[:port]} ..."
124+
123125
Ronin::Listener::HTTP.listen(**server_kwargs) do |request|
124126
log_info "Received HTTP request from #{request.remote_ip}:#{request.remote_port} ..."
125127

0 commit comments

Comments
 (0)