Skip to content

Commit

Permalink
oops
Browse files Browse the repository at this point in the history
  • Loading branch information
zardus committed Feb 24, 2025
1 parent 65ed22b commit 1d58620
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions intercepting-communication/sniff-cookie/run
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ admin_pw = "".join(random.sample(string.ascii_letters*10, 8))
class ClientHost(Host):
def entrypoint(self):
# redirect stderr
os.dup2(os.close(os.open("/tmp/client-stderr", os.O_CREAT|os.O_EXCL|os.O_WRONLY)), 2)
os.dup2(os.open("/tmp/client-stderr", os.O_CREAT|os.O_EXCL|os.O_WRONLY), 2)

time.sleep(2)
s = requests.Session()
Expand All @@ -33,7 +33,7 @@ class ClientHost(Host):
class ServerHost(Host):
def entrypoint(self):
# redirect stderr
os.dup2(os.close(os.open("/tmp/server-stderr", os.O_CREAT|os.O_EXCL|os.O_WRONLY)), 2)
os.dup2(os.open("/tmp/server-stderr", os.O_CREAT|os.O_EXCL|os.O_WRONLY), 2)

app = flask.Flask("server")

Expand Down

0 comments on commit 1d58620

Please sign in to comment.