hatRiot / clusterd

application server attack toolkit
MIT License
685 stars 198 forks source link

Fix local_address function in utility.py #50

Closed Bubbl3H3d closed 7 years ago

Bubbl3H3d commented 7 years ago

In Line 95, I changed

"adapter = ifconfig[idx+1].split()[1][5:]" # to just "adapter = ifconfig[idx+1].split()[1]"

removing [5:] as it was stripping off the first two octets

In Line 97, I changed

adapter = ifconfig.split("\n")[1].split()[1][5:] # to just adapter = ifconfig.split("\n")[1].split()[1]