aboutsummaryrefslogtreecommitdiffstats
path: root/autoscan/autoscan.py
diff options
context:
space:
mode:
authorLaurent Ghigonis <laurent@p1sec.com>2013-07-26 17:54:48 +0200
committerLaurent Ghigonis <laurent@p1sec.com>2013-07-26 17:54:48 +0200
commit86da9677e3ec71e6c62a3d80cfff3e7cc3ba7d04 (patch)
treec4f26a99cc9e162856cbe3b87a0e55df71fa827b /autoscan/autoscan.py
parentautoscan: add newlines (diff)
downloadlaurent-tools-86da9677e3ec71e6c62a3d80cfff3e7cc3ba7d04.tar.xz
laurent-tools-86da9677e3ec71e6c62a3d80cfff3e7cc3ba7d04.zip
autoscan: fix nmap IP range
Diffstat (limited to 'autoscan/autoscan.py')
-rwxr-xr-xautoscan/autoscan.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/autoscan/autoscan.py b/autoscan/autoscan.py
index 7a98bfc..0cd8860 100755
--- a/autoscan/autoscan.py
+++ b/autoscan/autoscan.py
@@ -215,7 +215,7 @@ class Autoscan_iface(object):
self._util_traceroute(t))
def _test_explor_scan(self):
- target = re.sub('\.[0-9]+$', '', self.found_ip4) + "/24" # XXX v6
+ target = re.sub('\.[0-9]+$', '', self.found_ip4) + ".0/24" # XXX v6
out, err, code = self._exec(
['nmap', '-oA', self._storepath_get("explor_scan/localnet"), '-p', '21,22,23,445,80,443,8080,8081,8082,8083', target])
self._store("explor_scan/out", out)