Add escape, json, random & hashlib
This commit is contained in:
10
server.py
10
server.py
@@ -5,6 +5,10 @@ from multiprocessing import Pool, TimeoutError
|
|||||||
import time
|
import time
|
||||||
import requests
|
import requests
|
||||||
from bs4 import BeautifulSoup
|
from bs4 import BeautifulSoup
|
||||||
|
import math
|
||||||
|
import random
|
||||||
|
import hashlib
|
||||||
|
from html import escape
|
||||||
|
|
||||||
app = Flask(__name__)
|
app = Flask(__name__)
|
||||||
|
|
||||||
@@ -58,7 +62,11 @@ def execute_code(code, request_obj, environment):
|
|||||||
'environment': environment,
|
'environment': environment,
|
||||||
'requests': requests,
|
'requests': requests,
|
||||||
'BeautifulSoup': BeautifulSoup,
|
'BeautifulSoup': BeautifulSoup,
|
||||||
'json': json
|
'json': json,
|
||||||
|
'escape': escape,
|
||||||
|
'math': math,
|
||||||
|
'random': random,
|
||||||
|
'hashlib': hashlib
|
||||||
}
|
}
|
||||||
|
|
||||||
try:
|
try:
|
||||||
|
|||||||
Reference in New Issue
Block a user