diff --git a/server.py b/server.py index f323dc0..a27e3c2 100644 --- a/server.py +++ b/server.py @@ -9,6 +9,9 @@ import math import random import hashlib from html import escape +import base64, hmac +from urllib.parse import urlparse +import urllib.request, urllib.error app = Flask(__name__) @@ -66,7 +69,10 @@ def execute_code(code, request_obj, environment): 'escape': escape, 'math': math, 'random': random, - 'hashlib': hashlib + 'hashlib': hashlib, + 'urlparse': urlparse, + 'urllib.request': urllib.request, + 'urllib.error': urllib.error } try: