Skip to content

Commit

Permalink
fixes -- thanks, hanto!
Browse files Browse the repository at this point in the history
  • Loading branch information
zardus committed Sep 2, 2024
1 parent 85ba023 commit 13e78cf
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion web-security/level-10/server
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class TemporaryDB:
connection.commit()
return result

flag = open("/flag").read().strip() if os.getuid() == 0 else "pwn.college{fake_flag}"
flag = open("/flag").read().strip() if os.geteuid() == 0 else "pwn.college{fake_flag}"

db = TemporaryDB()
# https://www.sqlite.org/lang_createtable.html
Expand Down
2 changes: 1 addition & 1 deletion web-security/level-11/server
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class TemporaryDB:
connection.commit()
return result

flag = open("/flag").read().strip() if os.getuid() == 0 else "pwn.college{fake_flag}"
flag = open("/flag").read().strip() if os.geteuid() == 0 else "pwn.college{fake_flag}"

db = TemporaryDB()
# https://www.sqlite.org/lang_createtable.html
Expand Down
2 changes: 1 addition & 1 deletion web-security/level-12/server
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class TemporaryDB:
connection.commit()
return result

flag = open("/flag").read().strip() if os.getuid() == 0 else "pwn.college{fake_flag}"
flag = open("/flag").read().strip() if os.geteuid() == 0 else "pwn.college{fake_flag}"

db = TemporaryDB()
# https://www.sqlite.org/lang_createtable.html
Expand Down
2 changes: 1 addition & 1 deletion web-security/xss-rf-post/server
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class TemporaryDB:
connection.commit()
return result

flag = open("/flag").read().strip() if os.getuid() == 0 else "pwn.college{fake_flag}"
flag = open("/flag").read().strip() if os.geteuid() == 0 else "pwn.college{fake_flag}"

db = TemporaryDB()
# https://www.sqlite.org/lang_createtable.html
Expand Down

0 comments on commit 13e78cf

Please sign in to comment.