Skip to content

Instantly share code, notes, and snippets.

@raresteak
Last active July 3, 2021 02:29
Show Gist options
  • Save raresteak/f62e90fe235c7cba9836d957d7ecd987 to your computer and use it in GitHub Desktop.
Save raresteak/f62e90fe235c7cba9836d957d7ecd987 to your computer and use it in GitHub Desktop.
dnscat2 error msg
Getting these warnings after starting dnscat2 server:
/dnscat2/server/libs/dnser.rb:872: warning: Capturing the given block using Kernel#proc is deprecated; use &block instead
/dnscat2/server/tunnel_drivers/driver_dns.rb:316: warning: Capturing the given block using Kernel#proc is deprecated; use &block instead
Solution:
start the server and redirect std error to /dev/null, example:
ruby dnscat2 2>/dev/null
no more warnings
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment