def LHOST():
 return commands.getoutput('/sbin/ifconfig').split('\n')[1].split()[1]

def LHOST ( ) : return commands . getoutput ( '/sbin/ifconfig' ) . split ( '\n' ) [ 1 ] . split ( ) [ 1 ]
return the ip of eth0 .