fix: remove --send-ip, raw sockets bypass tunnel routing
This commit is contained in:
1 parent
3d90fa67d7
commit
4eac4222cb
1 file changed
+2
-2
+2
-2
@@ -100,7 +100,7 @@ def scan_lan(subnet: str) -> list[dict]:
|
||||
try:
|
||||
result = subprocess.run(
|
||||
["nmap", "-sn", "-T5", "--min-parallelism", "100", "--max-parallelism", "256",
|
||||
"--send-ip", "-oX", "-", subnet],
|
||||
"-oX", "-", subnet],
|
||||
capture_output=True, text=True, timeout=60
|
||||
)
|
||||
return _parse_nmap_xml(result.stdout)
|
||||
@@ -120,7 +120,7 @@ def scan_lan_stream(subnet: str) -> Generator[dict, None, None]:
|
||||
cmd = [
|
||||
"nmap", "-sn", "-T5",
|
||||
"--min-parallelism", "100", "--max-parallelism", "256",
|
||||
"--send-ip", "-oX", "-", subnet
|
||||
"-oX", "-", subnet
|
||||
]
|
||||
try:
|
||||
proc = subprocess.Popen(cmd, stdout=subprocess.PIPE, stderr=subprocess.DEVNULL, text=True)
|
||||
|
||||
Reference in new issue
Block a user