Pull Request: Created ssh-os.nse script #1728

Richard Lam <[email protected]> Fri, 6 Sep 2019 16:16:48 -0700
Newsgroups gmane.comp.security.nmap.devel
Message-ID <CAN-E8bj-cRfx=NwBwXQHPKF4iDJyrO96-dn4Q5t8oY74ti0S+g@mail.gmail.com>
--===============4753707310005655095==
Content-Type: multipart/alternative; boundary="0000000000009527ed0591eaa250"

--0000000000009527ed0591eaa250
Content-Type: text/plain; charset="UTF-8"

Hello,

As the subject title infers.  I have submitted a script, titled
ssh-os.nse.  Welcome any feedback for improvement and/or criteria for
acceptance.  Thank you.

-----------------

Script identifies Ubuntu, FreeBSD, or Debian version based on response of
default SSH banner.

Identifies the following versions:

Ubuntu 4.10 to 19.04
FreeBSD 4.3 to 12.0-RELEASE
Debian 4.0 to 10.0

Originally this work was for the service-os script from the nse script
ideas page <https://secwiki.org/w/Nmap/Script_Ideas#service-os>, however,
Ubuntu, FreeBSD, and Debian can be identified by default SSH banner,
without cross referencing a response from another service. Consequently
submitting this as a separate script.

Banner information used to implement this script located:
https://github.com/richlamdev/ssh-default-banners

----------------

regards,

Richard Lam

--0000000000009527ed0591eaa250
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div>Hello,</div><div><br></div><div>As the subject title =
infers.=C2=A0 I have submitted a script, titled ssh-os.nse.=C2=A0 Welcome a=
ny feedback for improvement and/or criteria for acceptance.=C2=A0 Thank you=
.<br></div><div><br></div><div>-----------------<br></div><div><p>Script id=
entifies Ubuntu, FreeBSD, or Debian version based on response of default SS=
H banner.</p>
<p>Identifies the following versions:</p>
<p>Ubuntu 4.10 to 19.04<br>
FreeBSD 4.3 to 12.0-RELEASE<br>
Debian 4.0 to 10.0</p>
<p>Originally this work was for the service-os script from the nse <a href=
=3D"https://secwiki.org/w/Nmap/Script_Ideas#service-os" rel=3D"nofollow">sc=
ript ideas page</a>,
 however, Ubuntu, FreeBSD, and Debian can be identified by default SSH=20
banner, without cross referencing a response from another service. =20
Consequently submitting this as a separate script.</p>
<p>Banner information used to implement this script located:<br>
<a href=3D"https://github.com/richlamdev/ssh-default-banners">https://githu=
b.com/richlamdev/ssh-default-banners</a></p><p>----------------</p><p>regar=
ds,<br></p><p>Richard Lam<br></p></div></div>

--0000000000009527ed0591eaa250--

--===============4753707310005655095==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
Sent through the dev mailing list
https://nmap.org/mailman/listinfo/dev
Archived at http://seclists.org/nmap-dev/
--===============4753707310005655095==--