dnscat2 icon indicating copy to clipboard operation
dnscat2 copied to clipboard

RCODE_NAME_ERROR

Open sujitawake opened this issue 2 years ago • 1 comments

After I start the listener, now when I am attempting to establish the communication from the client, I am getting this constant error in the SERVER and CLIENT respectively:

Server console

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

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

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

dnscat2> Error caught (for more information, check window 'dns1'):
#<NoMethodError: undefined method `length' for nil:NilClass>
Error caught (for more information, check window 'dns1'):
#<NoMethodError: undefined method `length' for nil:NilClass>
Error caught (for more information, check window 'dns1'):
#<NoMethodError: undefined method `length' for nil:NilClass>
Error caught (for more information, check window 'dns1'):
#<NoMethodError: undefined method `length' for nil:NilClass>

Client Console

./dnscat --dns server=domain.com,port=53 --secret=8ae177f2180a2f3d9ca58a7da7264baa
Creating DNS driver:
 domain = (null)
 host   = 0.0.0.0
 port   = 53
 type   = TXT,CNAME,MX
 server = domain.com
[[ ERROR ]] :: DNS: RCODE_NAME_ERROR
...
...
[[ ERROR ]] :: DNS: RCODE_NAME_ERROR
[[ ERROR ]] :: The server hasn't returned a valid response in the last 20 attempts.. closing session.
[[ ERROR ]] :: DNS: RCODE_NAME_ERROR
[[ FATAL ]] :: There are no active sessions left! Goodbye!
[[ WARNING ]] :: Terminating

Any idea how shall I fix this?

sujitawake avatar Apr 08 '23 15:04 sujitawake

Use docker version of server, it solved the problem.

nguyenl95 avatar May 28 '23 10:05 nguyenl95