'Return boolean value that indicates if the user running w3af has
enough privileges to exec \'traceroute\''

def _has_permission(self):

    try:
        from scapy.all import traceroute
        from scapy.error import Scapy_Exception
    except socket.error:
        return False
    try:
        traceroute('127.0.0.1', maxttl=1)
    except socket.error:
        return False
    except Scapy_Exception:
        return False
    except:
        return False
    return True
