Skip to content

Commit

Permalink
Update apisix-dashboard-rce-batch-detect.py
Browse files Browse the repository at this point in the history
  • Loading branch information
ybdt authored Jan 3, 2022
1 parent 58ea0ea commit 5997696
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,8 @@ def import_data(url, data):
bool_value = import_data(line, eval_config)
except Exception as e:
print(line + "-----" + "happen exception" + "\n")
sys.exit()

if bool_value:
print(line + "-----" + "attack success" + ", uri is: " + "/" + uri + "\n")
else:
Expand All @@ -129,4 +131,4 @@ def import_data(url, data):
print(line + "-----" + "attack success" + ", uri is: " + "/" + uri + "\n")
fw.write(line + "\n")
else:
print(line + "-----" + "attack error" + "\n")
print(line + "-----" + "attack error" + "\n")

0 comments on commit 5997696

Please sign in to comment.