Update Detectowor.py
Doing some cleanup
This commit is contained in:
@@ -1,11 +1,9 @@
|
|||||||
from sys import exit
|
|
||||||
from os import name as osname, path
|
from os import name as osname, path
|
||||||
|
|
||||||
__DEBUG_RUN = True
|
__DEBUG_RUN = True
|
||||||
__DEBUG_LIBRARY = False
|
__DEBUG_LIBRARY = False
|
||||||
__DEBUG_SCAN = False
|
__DEBUG_SCAN = False
|
||||||
|
|
||||||
|
|
||||||
class __DEBUG():
|
class __DEBUG():
|
||||||
def run(report1, report2=""):
|
def run(report1, report2=""):
|
||||||
if __DEBUG_RUN == True:
|
if __DEBUG_RUN == True:
|
||||||
@@ -67,8 +65,8 @@ def scan_summary():
|
|||||||
print("\nScan returned", len(threats_found), "threats")
|
print("\nScan returned", len(threats_found), "threats")
|
||||||
|
|
||||||
if len(threats_found) > 0:
|
if len(threats_found) > 0:
|
||||||
for i in threats_found:
|
for _ in threats_found:
|
||||||
print("FOUND:", i)
|
print("FOUND:", _)
|
||||||
else:
|
else:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
@@ -106,4 +104,4 @@ if __name__ == '__main__':
|
|||||||
try:
|
try:
|
||||||
run()
|
run()
|
||||||
except KeyboardInterrupt:
|
except KeyboardInterrupt:
|
||||||
exit()
|
raise SystemExit
|
||||||
Reference in New Issue
Block a user