mirror of
https://github.com/drwetter/testssl.sh.git
synced 2024-12-29 04:49:44 +01:00
Merge pull request #2577 from drwetter/fix_f5_short_rfc1918
Fix F5 cookie in 10.x.x.x.
This commit is contained in:
commit
ddb84c27ce
@ -3284,7 +3284,7 @@ sub_f5_bigip_check() {
|
|||||||
[[ -z "$cookievalue" ]] && break
|
[[ -z "$cookievalue" ]] && break
|
||||||
cookievalue=${cookievalue/;/}
|
cookievalue=${cookievalue/;/}
|
||||||
debugme echo $cookiename : $cookievalue
|
debugme echo $cookiename : $cookievalue
|
||||||
if grep -Eq '[0-9]{9,10}\.[0-9]{3,5}\.0000' <<< "$cookievalue"; then
|
if grep -Eq '[0-9]{8,10}\.[0-9]{3,5}\.0000' <<< "$cookievalue"; then
|
||||||
ip="$(f5_ip_oldstyle "$cookievalue")"
|
ip="$(f5_ip_oldstyle "$cookievalue")"
|
||||||
port="$(f5_port_decode $cookievalue)"
|
port="$(f5_port_decode $cookievalue)"
|
||||||
out "${spaces}F5 cookie (default IPv4 pool member): "; pr_italic "$cookiename "; prln_svrty_medium "${ip}:${port}"
|
out "${spaces}F5 cookie (default IPv4 pool member): "; pr_italic "$cookiename "; prln_svrty_medium "${ip}:${port}"
|
||||||
|
Loading…
Reference in New Issue
Block a user