mirror of
https://github.com/yswery/PHP-DNS-SERVER.git
synced 2026-04-25 17:25:53 +03:00
[GH-ISSUE #80] nmap udp scan crashes the server #30
Labels
No labels
bug
enhancement
enhancement
hacktoberfest
pull-request
question
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/PHP-DNS-SERVER#30
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @nkakouros on GitHub (Nov 20, 2018).
Original GitHub issue: https://github.com/yswery/PHP-DNS-SERVER/issues/80
Originally assigned to: @samuelwilliams on GitHub.
Steps to reproduce:
sudo php examples/example.phpsudo nmap -sU -p53 127.0.0.1This crashes the dns server with the following trace:
Running
tcpdump -i lo port 53 -vvvin parallel with nmap, shows the following captured packets being sent from nmap:Here is a screenshot of the packet in wireshark:

@samuelwilliams commented on GitHub (Nov 20, 2018):
This might be because the server just assumes that the DNS packet has a question, your packet has none. This should be an easy fix.
@samuelwilliams commented on GitHub (Nov 21, 2018):
@tterranigma give the latest commit a go
@nkakouros commented on GitHub (Nov 21, 2018):
It fails again with:
@samuelwilliams commented on GitHub (Nov 23, 2018):
@tterranigma give the latest commit a go - I'm having issues with my system so I can't run my linux boxes at the moment to test
@nkakouros commented on GitHub (Nov 23, 2018):
Yep! It worked!
Thank you for the time you devoted on this issue!
@samuelwilliams commented on GitHub (Nov 23, 2018):
Issue resolved in v1.1.3