mirror of
https://github.com/nmap/nmap.git
synced 2026-10-21 03:11:48 +00:00
Add randomizer to configure script so that a random ASCII art from docs/leet-nmap-ascii-art*.txt is printed
This commit is contained in:
parent
818522f6c2
commit
b0303ac883
2 changed files with 23 additions and 5 deletions
21
configure
vendored
21
configure
vendored
|
|
@ -9392,7 +9392,24 @@ $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
|
|||
fi
|
||||
|
||||
# Krad ASCII ART#!#@$!@#$
|
||||
if test -f docs/leet-nmap-ascii-art.txt; then
|
||||
cat docs/leet-nmap-ascii-art.txt
|
||||
# Randomly store the name of one of the ASCII Art files in FILENAME
|
||||
FILENAME=`ls docs/leet-nmap-ascii-art*.txt 2>/dev/null | awk '
|
||||
BEGIN {
|
||||
srand();
|
||||
}
|
||||
|
||||
{
|
||||
lines[++d] = $0
|
||||
}
|
||||
|
||||
END {
|
||||
# This makes AWKs random numbers more random
|
||||
print lines[int(rand()*49139)%d+1];
|
||||
}
|
||||
'`
|
||||
# Print the file to screen, if any such file exists (i.e. $FILENAME is not empty)
|
||||
if test "$FILENAME"; then
|
||||
cat "$FILENAME"
|
||||
fi
|
||||
|
||||
echo "Configuration complete. Type make (or gmake on some *BSD machines) to compile."
|
||||
|
|
|
|||
|
|
@ -74,9 +74,6 @@ o GSOC 2014 student Jay will be looking at these items:
|
|||
topology view. http://seclists.org/nmap-dev/2012/q1/82 has a patch,
|
||||
however it doesn't handle the case of two or more consecutive
|
||||
timeouts.
|
||||
o Add randomizer to configure script so that a random ASCII art from
|
||||
docs/leet-nmap-ascii-art*.txt is printed. I think I'll start naming
|
||||
them leet-nmap-ascii-art-submittername.txt.
|
||||
o Provide an option to send a comment in scan packet data for target
|
||||
network. Examples: --comment "Scan conducted by Marc Reis from
|
||||
SecOps, extension 2147" or --comment "pH33r my l3eT
|
||||
|
|
@ -832,6 +829,10 @@ o random tip database
|
|||
|
||||
DONE:
|
||||
|
||||
o Add randomizer to configure script so that a random ASCII art from
|
||||
docs/leet-nmap-ascii-art*.txt is printed. I think I'll start naming
|
||||
them leet-nmap-ascii-art-submittername.txt.
|
||||
|
||||
o Add IPv6 subnet/pattern support like we offer for IPv4.
|
||||
o OK, we now have the subnet/pattern support, but not the two-stage
|
||||
model discussed below. So we added a separate task for that.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue