ENH: typo + head -1 has been deprecated for 10+ years.

pull/134/head
Daniel Black 2013-03-10 16:28:45 +11:00
parent 7cd6dab7f0
commit a0f088be25
2 changed files with 4 additions and 4 deletions

View File

@ -124,13 +124,13 @@ port = ???
userid = 0 userid = 0
# Option: myip # Option: myip
# Notes.: TThe target IP for the attack (your public IP). Should be provided # Notes.: The target IP for the attack (your public IP). Should be provided
# either in the jail config or in a .local file unless your PUBLIC IP # either in the jail config or in a .local file unless your PUBLIC IP
# is the first IP assigned to eth0 # is the first IP assigned to eth0
# Values: [ an IP address ] Default: Tries to find the IP address of eth0, # Values: [ an IP address ] Default: Tries to find the IP address of eth0,
# which in most cases will be a private IP, and therefore incorrect # which in most cases will be a private IP, and therefore incorrect
# #
myip = `ip -4 addr show dev eth0 | grep inet | head -1 | sed -r 's/.*inet ([0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}).*/\1/'` myip = `ip -4 addr show dev eth0 | grep inet | head -n 1 | sed -r 's/.*inet ([0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}).*/\1/'`
# Option: protocol # Option: protocol
# Notes.: The protocol over which the attack is happening # Notes.: The protocol over which the attack is happening

View File

@ -102,13 +102,13 @@ mnwlogin =
mnwpass = mnwpass =
# Option: myip # Option: myip
# Notes.: TThe target IP for the attack (your public IP). Should be overridden # Notes.: The target IP for the attack (your public IP). Should be overridden
# either in the jail config or in a .local file unless your PUBLIC IP # either in the jail config or in a .local file unless your PUBLIC IP
# is the first IP assigned to eth0 # is the first IP assigned to eth0
# Values: [ an IP address ] Default: Tries to find the IP address of eth0, # Values: [ an IP address ] Default: Tries to find the IP address of eth0,
# which in most cases will be a private IP, and therefore incorrect # which in most cases will be a private IP, and therefore incorrect
# #
myip = `ip -4 addr show dev eth0 | grep inet | head -1 | sed -r 's/.*inet ([0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}).*/\1/'` myip = `ip -4 addr show dev eth0 | grep inet | head -n 1 | sed -r 's/.*inet ([0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}).*/\1/'`
# Option: protocol # Option: protocol
# Notes.: The protocol over which the attack is happening # Notes.: The protocol over which the attack is happening