Skip to content

Instantly share code, notes, and snippets.

@theSage21
Created April 3, 2020 09:04
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 theSage21/7fee669c517843fff9dd7049a6abf1e6 to your computer and use it in GitHub Desktop.
Save theSage21/7fee669c517843fff9dd7049a6abf1e6 to your computer and use it in GitHub Desktop.
def get_flag():
con = None
flag = None
while True:
try:
con = swat.CAS() if con is None else con
flag = con.CASTable() if flag is None else flag
except Exception:
con = flag = None
else:
return flag
def data_requested():
data = get_flag()
## auth.py
class AuthClass:
@property
def flag(self):
return None
def get_flag(self):
return None
Auth = AuthClass(user, password)
## fetch_data.py
from Auth import Auth
data = Auth.get_flag()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment