robertdavidgraham / masscan

TCP port scanner, spews SYN packets asynchronously, scanning entire Internet in under 5 minutes.
GNU Affero General Public License v3.0
23.26k stars 3.04k forks source link

Please add build hash to version #80

Closed PaulMcMillan closed 10 years ago

PaulMcMillan commented 10 years ago

It would be extremely helpful to have some way of identifying the different masscan binaries. The most obvious would be to have the makefile try to inject the git hash of the current commit into the output of -v.

robertdavidgraham commented 10 years ago

I don't know how to do this. I'm really a git nub, and have no clue how this whole thing works.

robertdavidgraham commented 10 years ago

C:\dev\masscan>bin\masscan --version

Masscan version 1.0.3 ( https://github.com/robertdavidgraham/masscan ) Compiled on: Jan 31 2014 19:11:18 Compiler: gcc 4.4.0 OS: Windows CPU: x86 (32 bits) GIT version: 1.0.1-64-g0d779d0

PaulMcMillan commented 10 years ago

awesome!