forked from p15670423/monkey
linux's implementation of local_ips returns array of strs instead of unicodes
This fixes SambaCry Linux->Linux exploit among other things
This commit is contained in:
parent
14eec1ba99
commit
0c971da15c
|
@ -48,7 +48,7 @@ else:
|
||||||
|
|
||||||
def local_ips():
|
def local_ips():
|
||||||
ipv4_nets = get_host_subnets()
|
ipv4_nets = get_host_subnets()
|
||||||
valid_ips = [network['addr'] for network in ipv4_nets]
|
valid_ips = [network['addr'].encode('utf-8').strip() for network in ipv4_nets]
|
||||||
return valid_ips
|
return valid_ips
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue