Yeuoly 1 ano atrás
pai
commit
08f4c4f0bf
1 arquivos alterados com 4 adições e 1 exclusões
  1. 4 1
      internal/core/runner/python/prescript.py

+ 4 - 1
internal/core/runner/python/prescript.py

@@ -16,6 +16,9 @@ if __name__ == "__main__":
     module = sys.argv[1]
     code = open(module).read()
 
+    with open("/tmp/1.txt", "w") as f:
+        f.write(code)
+
     def sandbox(uid, gid):
         lib.DifySeccomp.argtypes = [ctypes.c_uint32, ctypes.c_uint32]
         lib.DifySeccomp.restype = None
@@ -37,4 +40,4 @@ if __name__ == "__main__":
     
     sys.excepthook = excepthook
 
-    exec(code)
+    exec(code)