mirror of
https://github.com/ivre/masscanned.git
synced 2025-10-02 06:38:21 +00:00
Tests: use OUTDIR config value
This commit is contained in:
parent
ec8011a6e4
commit
e65ce63e70
1 changed files with 7 additions and 7 deletions
|
@ -96,14 +96,14 @@ if ZEEK_PASSIVERECON:
|
||||||
"redef tcp_content_deliver_all_orig = T; "
|
"redef tcp_content_deliver_all_orig = T; "
|
||||||
f"redef PassiveRecon::HONEYPOTS += {{ {IPV4_ADDR}, [{IPV6_ADDR}] }}",
|
f"redef PassiveRecon::HONEYPOTS += {{ {IPV4_ADDR}, [{IPV6_ADDR}] }}",
|
||||||
],
|
],
|
||||||
stdout=open("test/res/zeek_passiverecon.stdout", "w"),
|
stdout=open(os.path.join(OUTDIR, "zeek_passiverecon.stdout"), "w"),
|
||||||
stderr=open("test/res/zeek_passiverecon.stderr", "w"),
|
stderr=open(os.path.join(OUTDIR, "zeek_passiverecon.stderr"), "w"),
|
||||||
)
|
)
|
||||||
if P0F:
|
if P0F:
|
||||||
p0f = subprocess.Popen(
|
p0f = subprocess.Popen(
|
||||||
["p0f", "-i", IFACE, "-o", "test/res/p0f_log.txt"],
|
["p0f", "-i", IFACE, "-o", os.path.join(OUTDIR, "p0f_log.txt")],
|
||||||
stdout=open("test/res/p0f.stdout", "w"),
|
stdout=open(os.path.join(OUTDIR, "p0f.stdout"), "w"),
|
||||||
stderr=open("test/res/p0f.stderr", "w"),
|
stderr=open(os.path.join(OUTDIR, "p0f.stderr"), "w"),
|
||||||
)
|
)
|
||||||
# run masscanned
|
# run masscanned
|
||||||
masscanned = subprocess.Popen(
|
masscanned = subprocess.Popen(
|
||||||
|
@ -120,8 +120,8 @@ masscanned = subprocess.Popen(
|
||||||
# if args in CLI, they are passed to masscanned
|
# if args in CLI, they are passed to masscanned
|
||||||
+ sys.argv[1:],
|
+ sys.argv[1:],
|
||||||
env=dict(os.environ, RUST_BACKTRACE="1"),
|
env=dict(os.environ, RUST_BACKTRACE="1"),
|
||||||
stdout=open("test/res/masscanned.stdout", "w"),
|
stdout=open(os.path.join(OUTDIR, "masscanned.stdout"), "w"),
|
||||||
stderr=open("test/res/masscanned.stderr", "w"),
|
stderr=open(os.path.join(OUTDIR, "masscanned.stderr"), "w"),
|
||||||
)
|
)
|
||||||
sleep(1)
|
sleep(1)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue