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

UDP ports --echo out properly #164

Closed
wants to merge 1 commit into from

Conversation

githubparser
Copy link

masscan expects U:, not +0x10000. this patch makes the --echo output readable as input for UDP ports.

before:

$ masscan -p22,U:123,U:161-162 --echo | grep ports
ports = 22,65659,65697-65698

after:

masscan -p22,U:123 --echo | grep ports
ports = 22,U:123,U:161-162

masscan expects U:<port>, not <port>+0x10000.

before:
masscan -p22,U:123,U:161-162 --echo | grep ports
// ports = 22,65659,65697-65698

after:
masscan -p22,U:123 --echo | grep ports
// ports = 22,U:123,U:161-162
@githubparser
Copy link
Author

This evidently breaks paused.conf output for things like --script ntp-monlist, where it's not recording a typical port range value, so I'm not sure whether that needs to be changed, or this patch..

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 this pull request may close these issues.

None yet

2 participants