Reformat challenge code
This commit is contained in:
+1
-1
@@ -1,4 +1,4 @@
|
|||||||
#!/opt/pwn.college/python
|
#!/opt/pwn.college/python
|
||||||
|
|
||||||
with open("/flag") as f:
|
with open("/flag") as f:
|
||||||
print(f.read())
|
print(f.read())
|
||||||
|
|||||||
+1
-1
@@ -7,4 +7,4 @@ config = (pathlib.Path(__file__).parent / ".config").read_text().strip()
|
|||||||
print(f"Instance: {config}")
|
print(f"Instance: {config}")
|
||||||
|
|
||||||
with open("/flag") as f:
|
with open("/flag") as f:
|
||||||
print(f.read())
|
print(f.read())
|
||||||
|
|||||||
+1
-1
@@ -1,4 +1,4 @@
|
|||||||
#!/opt/pwn.college/python
|
#!/opt/pwn.college/python
|
||||||
|
|
||||||
with open("/flag") as f:
|
with open("/flag") as f:
|
||||||
print(f.read())
|
print(f.read())
|
||||||
|
|||||||
+1
-1
@@ -20,4 +20,4 @@ launch_path.write_text(template.render(planet=planet))
|
|||||||
|
|
||||||
launch_template_path.unlink()
|
launch_template_path.unlink()
|
||||||
planets_path.unlink()
|
planets_path.unlink()
|
||||||
init_path.unlink()
|
init_path.unlink()
|
||||||
|
|||||||
@@ -3,4 +3,4 @@
|
|||||||
import sys
|
import sys
|
||||||
|
|
||||||
print("3.... 2... 1...")
|
print("3.... 2... 1...")
|
||||||
print(sys.argv[1])
|
print(sys.argv[1])
|
||||||
|
|||||||
@@ -3,4 +3,4 @@
|
|||||||
import sys
|
import sys
|
||||||
|
|
||||||
print("5... 4... 3.... 2... 1...")
|
print("5... 4... 3.... 2... 1...")
|
||||||
print(sys.argv[1])
|
print(sys.argv[1])
|
||||||
|
|||||||
@@ -5,4 +5,4 @@ import subprocess
|
|||||||
subprocess.run(["/challenge/takeoff", "{{ planet }}"])
|
subprocess.run(["/challenge/takeoff", "{{ planet }}"])
|
||||||
|
|
||||||
with open("/flag") as f:
|
with open("/flag") as f:
|
||||||
print(f.read())
|
print(f.read())
|
||||||
|
|||||||
Reference in New Issue
Block a user