Yeuoly 1 年之前
父節點
當前提交
08f4c4f0bf
共有 1 個文件被更改,包括 4 次插入1 次删除
  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)