Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ConnorNelson committed Feb 24, 2025
1 parent 4b926a3 commit 1a4abec
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 4 deletions.
1 change: 1 addition & 0 deletions intercepting-communication/.init
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
chmod 6755 /challenge/run
touch /run/xtables.lock
rm /challenge/.init
3 changes: 0 additions & 3 deletions intercepting-communication/level-11/run
Original file line number Diff line number Diff line change
@@ -1,15 +1,12 @@
#!/usr/bin/exec-suid --real -- /usr/bin/python -I

import os
import random
import subprocess
import scapy.all as scapy
from dojjail import Host, Network

flag = open("/flag").read()

os.open("/run/xtables.lock", os.O_CREAT)

def drop_rst_packets(sport):
subprocess.run(["/usr/sbin/iptables",
"-A", "OUTPUT",
Expand Down
2 changes: 1 addition & 1 deletion intercepting-communication/level-14/run
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ class AuthenticatedServerHost(Host):
time.sleep(1)
connection.sendall(b"secret: ")
secret = bytes.fromhex(connection.recv(1024).decode())
if secret != self.secret:
if secret != bytes(self.secret):
connection.close()
continue

Expand Down

0 comments on commit 1a4abec

Please sign in to comment.