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

I killed a session of dnscat2-powershell and got many errors #99

Open
donvitoz opened this issue Sep 8, 2016 · 1 comment
Open

I killed a session of dnscat2-powershell and got many errors #99

donvitoz opened this issue Sep 8, 2016 · 1 comment

Comments

@donvitoz
Copy link

donvitoz commented Sep 8, 2016

An error occurred (see window 1 for stacktrace): MSG received in invalid state!
An error occurred (see window 1 for stacktrace): MSG received in invalid state!
An error occurred (see window 1 for stacktrace): MSG received in invalid state!
An error occurred (see window 1 for stacktrace): MSG received in invalid state!

If you think this might be a bug, please report this trace:

<DnscatException: MSG received in invalid state!>

/root/dnscat2/server/controller/session.rb:207:in _handle_msg' /root/dnscat2/server/controller/session.rb:387:in_handle_incoming'
/root/dnscat2/server/controller/session.rb:405:in block in feed' /root/dnscat2/server/controller/encryptor.rb:244:indecrypt_and_encrypt'
/root/dnscat2/server/controller/session.rb:395:in feed' /root/dnscat2/server/controller/controller.rb:91:infeed'
/root/dnscat2/server/tunnel_drivers/tunnel_drivers.rb:25:in block in start' /root/dnscat2/server/tunnel_drivers/driver_dns.rb:316:inblock in initialize'
/root/dnscat2/server/libs/dnser.rb:872:in block (2 levels) in on_request' /root/dnscat2/server/libs/dnser.rb:843:inloop'
/root/dnscat2/server/libs/dnser.rb:843:in `block in on_request'
An error occurred (see window 1 for stacktrace): MSG received in invalid state!

@iagox86
Copy link
Owner

iagox86 commented Sep 9, 2016

Wow, dnscat2-powershell actually works!? It was written a few versions ago,
didn't realize it was still working. :)

It sounds like after the connection ended, something kept on sending MSG
packets, which are standard data packets. That could be recursive DNS
servers that haven't realized it's over yet, or it could be that the client
doesn't realize it shut down.

I suspect it's not a big deal, unless this broke something - it just sounds
like the client sent a terminator packet then kept sending MSG.

If this is actually a problem, more details or a repro would be helpful
(what exactly you did on the client and server, what you expected to
happen, and what actually happened).

Thanks!

On Thu, Sep 8, 2016 at 4:27 PM, donvitoz notifications@github.com wrote:

An error occurred (see window 1 for stacktrace): MSG received in invalid
state!
An error occurred (see window 1 for stacktrace): MSG received in invalid
state!
An error occurred (see window 1 for stacktrace): MSG received in invalid
state!
An error occurred (see window 1 for stacktrace): MSG received in invalid
state!

If you think this might be a bug, please report this trace:

/root/dnscat2/server/controller/session.rb:207:in _handle_msg'
/root/dnscat2/server/controller/session.rb:387:in_handle_incoming'
/root/dnscat2/server/controller/session.rb:405:in block in feed'
/root/dnscat2/server/controller/encryptor.rb:244:indecrypt_and_encrypt'
/root/dnscat2/server/controller/session.rb:395:in feed'
/root/dnscat2/server/controller/controller.rb:91:infeed'
/root/dnscat2/server/tunnel_drivers/tunnel_drivers.rb:25:in block in
start'
/root/dnscat2/server/tunnel_drivers/driver_dns.rb:316:inblock in
initialize'
/root/dnscat2/server/libs/dnser.rb:872:in block (2 levels) in on_request'
/root/dnscat2/server/libs/dnser.rb:843:inloop'
/root/dnscat2/server/libs/dnser.rb:843:in `block in on_request'
An error occurred (see window 1 for stacktrace): MSG received in invalid
state!


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
#99, or mute the thread
https://github.com/notifications/unsubscribe-auth/AAgITDCPAx07vF8sWuAXxYrI1lmoym6Zks5qoJnsgaJpZM4J4jg5
.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants