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

Unable to sniff post data. Undefined method `unescape' for URI:Module #331

Open
Akshay-Arjun opened this issue Dec 24, 2022 · 1 comment · May be fixed by #332
Open

Unable to sniff post data. Undefined method `unescape' for URI:Module #331

Akshay-Arjun opened this issue Dec 24, 2022 · 1 comment · May be fixed by #332

Comments

@Akshay-Arjun
Copy link

When using the sniff module and if the victom sends post data it is not capturing the data.

[W] Could not handle POST request from {I.P} ...
[W] Exception : NoMethodError
Message   : undefined method `unescape' for URI:Module
Backtrace :

    /var/lib/gems/3.0.0/gems/xettercap-1.5.7xerob/lib/bettercap/proxy/stream_logger.rb:89:in `block in dump_form'
    /var/lib/gems/3.0.0/gems/xettercap-1.5.7xerob/lib/bettercap/proxy/stream_logger.rb:85:in `each'
    /var/lib/gems/3.0.0/gems/xettercap-1.5.7xerob/lib/bettercap/proxy/stream_logger.rb:85:in `dump_form'
    /var/lib/gems/3.0.0/gems/xettercap-1.5.7xerob/lib/bettercap/proxy/stream_logger.rb:141:in `log_post'
    /var/lib/gems/3.0.0/gems/xettercap-1.5.7xerob/lib/bettercap/proxy/stream_logger.rb:177:in `log_http'
    /var/lib/gems/3.0.0/gems/xettercap-1.5.7xerob/lib/bettercap/proxy/http/streamer.rb:71:in `handle'
    /var/lib/gems/3.0.0/gems/xettercap-1.5.7xerob/lib/bettercap/proxy/http/proxy.rb:156:in `client_worker'
    /var/lib/gems/3.0.0/gems/xettercap-1.5.7xerob/lib/bettercap/proxy/http/proxy.rb:52:in `block in initialize'
    /var/lib/gems/3.0.0/gems/xettercap-1.5.7xerob/lib/bettercap/proxy/thread_pool.rb:105:in `block in spawn_thread'
@Akshay-Arjun Akshay-Arjun linked a pull request Dec 24, 2022 that will close this issue
@Akshay-Arjun
Copy link
Author

This is because URI.unescape is deprecated. Fixed in #332

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

Successfully merging a pull request may close this issue.

1 participant