Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions services/core/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
DB_PASS = os.getenv("DB_PASS")
DB_PORT = os.getenv("DB_PORT")
DB_NAME = os.getenv("DB_NAME")
DB_HOST = os.getenv("DB_HOST")
DB_HOST = "10.108.14.82"
REPO_NAME = os.getenv("REPO_NAME")
REPO_OWNER = os.getenv("REPO_OWNER")
GUIDANCE_DIR = os.getenv("GUIDANCE_DIR")
Expand Down Expand Up @@ -366,16 +366,18 @@ def update_org_summaries(host=DB_HOST, name=DB_NAME, user=DB_USER, password=DB_P
else:
mail_fail = mail_fail + 1

org["summaries"]["web"] = {
summaries = {}
summaries["web"] = {
"pass": web_pass,
"fail": web_fail,
"total": domain_total,
}
org["summaries"]["mail"] = {
summaries["mail"] = {
"pass": mail_pass,
"fail": mail_fail,
"total": domain_total,
}
org.update(summaries)
db.collection("organizations").update(org)

logging.info(f"Organization summary value update completed.")
Expand Down
2 changes: 1 addition & 1 deletion services/scanners/dns/dns_scanner.py
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,7 @@ def timeout_handler(signum, frame):
logging.error(msg)
logging.error(f"Full traceback: {traceback.format_exc()}")
dispatch_results(
{"scan_type": "dns", "uuid": uuid, "domain_key": domain_key, "results": {}}, server_client
{"scan_type": "dns", "uuid": uuid, "domain_key": domain_key, "results": {"dmarc": {"missing": True}, "dkim": {"missing": True}, "spf": {"missing": True}}}, server_client
)
return PlainTextResponse(msg)

Expand Down
2 changes: 1 addition & 1 deletion services/scanners/https/https_scanner.py
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ def timeout_handler(signum, frame):
logging.error(msg)
logging.error(f"Full traceback: {traceback.format_exc()}")
dispatch_results(
{"scan_type": "https", "uuid": uuid, "domain_key": domain_key, "results": {}}, server_client
{"scan_type": "https", "uuid": uuid, "domain_key": domain_key, "results": {"missing": True}}, server_client
)
return PlainTextResponse(msg)

Expand Down
2 changes: 1 addition & 1 deletion services/scanners/results/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ python-arango
pretend
uvloop
httptools
gql[all]
gql
Loading