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

Fix OSClass parsing #10

Merged
merged 5 commits into from
Jun 4, 2019
Merged

Fix OSClass parsing #10

merged 5 commits into from
Jun 4, 2019

Conversation

botastic
Copy link
Contributor

As mentioned in #8 the osclass data is always empty. I checked the nmap DTD XML specifications, in which it is stated that osclass is a child of osmatch. Therefore I changed the xml.go accordingly and adapted the xml_test.go as well as the corresponding sample XML data. Additionally I extended the compareResults function in order ease debugging the new struct hierarchy.

As a last point I changed the TestToFile function to work os independent.

Best regards

Copy link
Owner

@Ullaakut Ullaakut left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks :)

@Ullaakut Ullaakut changed the title Relation between osclass and osmatch Fix OSClass parsing Jun 4, 2019
@Ullaakut Ullaakut merged commit 0636375 into Ullaakut:master Jun 4, 2019
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.

2 participants