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

Treat missing SNMP timestamp elements as 0 in auxiliary/scanner/snmp/snmp_enum #3088

Merged
merged 1 commit into from Mar 13, 2014

Conversation

jlee-r7
Copy link
Contributor

@jlee-r7 jlee-r7 commented Mar 11, 2014

Timestamps don't always have all the elements we expect. This treats
them as zeroes to ensure that we don't raise silly exceptions in that
case.

Timestamps don't always have all the elements we expect. This treats
them as zeroes to ensure that we don't raise silly exceptions in that
case.
@wvu wvu self-assigned this Mar 12, 2014
output_data["System date"] = sprintf("%d-%d-%d %02d:%02d:%02d.%d", year, month, day, hour, minutes, seconds, tenths)
end

#
#
if (sysDesc =~ /Windows/)
usersLine = ""
Copy link
Contributor

Choose a reason for hiding this comment

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

Looks like this is just an unused variable. Good catch!

@wvu
Copy link
Contributor

wvu commented Mar 12, 2014

Is there a Redmine ticket for this? Repro steps? :P

wvu added a commit that referenced this pull request Mar 13, 2014
@wvu wvu merged commit f51ee2d into rapid7:master Mar 13, 2014
@jlee-r7 jlee-r7 deleted the bug/snmp-nil-deref branch June 20, 2014 17:29
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

3 participants