Wait a second checking blocked packet report
This commit is contained in:
@@ -68,6 +68,7 @@ def checkRegex(regex, should_work=True, upper=False):
|
|||||||
if not server.sendCheckData(secrets.token_bytes(200) + s + secrets.token_bytes(200)):
|
if not server.sendCheckData(secrets.token_bytes(200) + s + secrets.token_bytes(200)):
|
||||||
puts(f"The malicious request was successfully blocked ✔", color=colors.green)
|
puts(f"The malicious request was successfully blocked ✔", color=colors.green)
|
||||||
n_blocked += 1
|
n_blocked += 1
|
||||||
|
time.sleep(1)
|
||||||
if firegex.nf_get_regex(r["id"])["n_packets"] == n_blocked:
|
if firegex.nf_get_regex(r["id"])["n_packets"] == n_blocked:
|
||||||
puts(f"The packed was reported as blocked ✔", color=colors.green)
|
puts(f"The packed was reported as blocked ✔", color=colors.green)
|
||||||
else:
|
else:
|
||||||
@@ -180,4 +181,4 @@ for services in firegex.nf_get_services():
|
|||||||
exit_test(0)
|
exit_test(0)
|
||||||
|
|
||||||
puts(f"Test Failed: Service wasn't renamed correctly ✗", color=colors.red); exit_test(1)
|
puts(f"Test Failed: Service wasn't renamed correctly ✗", color=colors.red); exit_test(1)
|
||||||
exit_test(1)
|
exit_test(1)
|
||||||
|
|||||||
Reference in New Issue
Block a user