forked from p15670423/monkey
Fix ping scanner exceptions
This commit is contained in:
parent
44b6c3d243
commit
ab18005fd0
|
@ -1,10 +1,11 @@
|
||||||
import os
|
|
||||||
import sys
|
|
||||||
import subprocess
|
|
||||||
import logging
|
import logging
|
||||||
from . import HostScanner, HostFinger
|
import os
|
||||||
from model.host import VictimHost
|
|
||||||
import re
|
import re
|
||||||
|
import subprocess
|
||||||
|
import sys
|
||||||
|
|
||||||
|
from model.host import VictimHost
|
||||||
|
from . import HostScanner, HostFinger
|
||||||
|
|
||||||
__author__ = 'itamar'
|
__author__ = 'itamar'
|
||||||
|
|
||||||
|
@ -62,7 +63,7 @@ class PingScanner(HostScanner, HostFinger):
|
||||||
elif WINDOWS_TTL == ttl:
|
elif WINDOWS_TTL == ttl:
|
||||||
host.os['type'] = 'windows'
|
host.os['type'] = 'windows'
|
||||||
return True
|
return True
|
||||||
except Exception, exc:
|
except Exception as exc:
|
||||||
LOG.debug("Error parsing ping fingerprint: %s", exc)
|
LOG.debug("Error parsing ping fingerprint: %s", exc)
|
||||||
|
|
||||||
return False
|
return False
|
||||||
|
|
Loading…
Reference in New Issue