-
Notifications
You must be signed in to change notification settings - Fork 199
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 all examples in apache_os.xml #407
Conversation
xml/apache_os.xml
Outdated
<param pos="0" name="os.vendor" value="rPath"/> | ||
<param pos="0" name="os.family" value="Linux"/> | ||
<param pos="0" name="os.product" value="Linux"/> | ||
</fingerprint> | ||
|
||
<fingerprint pattern="\(StartCom Linux\)"> | ||
<description>StartCom Linux</description> | ||
<!-- Replace with a useful (real world) example if one is found --> | ||
<example>Apache (StartCom Linux)</example> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I couldn't find an example for this, so I just hand-crafted a string to satisfy the regular expression. StartCom appears to be defunct.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I found a mirror that has ISOs for that distro! https://ftp.nluug.nl/pub/os/Linux/distr/startcom/
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
good call!
$ wget -q https://ftp.nluug.nl/pub/os/Linux/distr/startcom/AS-5.0.0/os/x86_64/StartCom/RPMS/httpd-2.2.3-31.SEL5_4.x86_64.rpm && \
rpm2cpio httpd-2.2.3-31.SEL5_4.x86_64.rpm | cpio -ivdm ./usr/sbin/httpd && \
strings usr/sbin/httpd | grep StartCom && \
rm httpd-2.2.3-31.SEL5_4.x86_64.rpm
./usr/sbin/httpd
6466 blocks
Apache/2.2.3 (StartCom)
Apache/2.2.3 (StartCom) (Release 31.SEL5_4)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
$ URL="https://ftp.nluug.nl/pub/os/Linux/distr/startcom/ML-5.0.5/os/x86_64/StartCom/RPMS/httpd-2.2.0-5.1.2.x86_64.rpm" FNAME="`basename $URL`" bash -c 'wget -q $URL && rpm2cpio $FNAME | cpio -ivdm ./usr/sbin/httpd && strings usr/sbin/httpd | grep StartCom && rm $FNAME'
./usr/sbin/httpd
14294 blocks
Apache/2.2.0 (StartCom Linux)
2ef3e55
to
ac91ee8
Compare
ac91ee8
to
5a66efe
Compare
Force-pushed to remove an outdated comment without having to mangle history too much. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for the contribution @dabdine!
Description
Addresses all warnings in
apache_os.xml
using real data from Censys.Motivation and Context
Eliminate warnings due to missing examples.
How Has This Been Tested?
bundle exec rake tests
Types of changes
Checklist: