Skip to content

Commit

Permalink
better output for registering services
Browse files Browse the repository at this point in the history
  • Loading branch information
Lukas-Dresel committed Oct 14, 2021
1 parent b3efa9f commit c0384f1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions database/provisioning/create_services.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ def register_service(db_api_url_base, db_secret, service_name, service_info):
script_type = os.path.basename(script)

if script_type in {'setflag', 'getflag', 'benign', 'exploit'}:
print (f"Uploading script {filename} [{script_type}]")
data = {"upload_id": upload_id, "filename": script, "type": script_type,
"state": service_info['state'], "service_id": service_id}
result = requests.post(db_api_url_base + "/script/new", data=data, params={'secret': db_secret})
Expand Down

0 comments on commit c0384f1

Please sign in to comment.