mirror of
https://github.com/ivre/masscanned.git
synced 2025-10-02 06:38:21 +00:00
Tests: add Nmap test for RPC
This commit is contained in:
parent
37895f9528
commit
5a52dcace7
4 changed files with 52 additions and 0 deletions
|
@ -49,6 +49,7 @@ def setup_logs():
|
|||
|
||||
|
||||
def cleanup_net(iface):
|
||||
global ipfile
|
||||
subprocess.check_call(["ip", "link", "delete", iface])
|
||||
subprocess.check_call(
|
||||
[
|
||||
|
@ -66,6 +67,10 @@ def cleanup_net(iface):
|
|||
]
|
||||
)
|
||||
subprocess.check_call(["iptables", "-D", "INPUT", "-i", iface, "-j", "DROP"])
|
||||
try:
|
||||
os.unlink(ipfile.name)
|
||||
except NameError:
|
||||
pass
|
||||
|
||||
|
||||
def setup_net(iface):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue