Skip to content

Instantly share code, notes, and snippets.

@jenia
Created August 5, 2020 01:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jenia/7b46bedfbcc61553ec3a85a14b7a4787 to your computer and use it in GitHub Desktop.
Save jenia/7b46bedfbcc61553ec3a85a14b7a4787 to your computer and use it in GitHub Desktop.
I want to pass the flag's pointer
#!/usr/bin/python3
def f(flag):
flag = False
def g(flag):
print(flag)
def main():
flag = True
f(flag)
g(flag)
if __name__ == "__main__":
main()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment