Created
July 31, 2025 11:24
-
-
Save djinn/134831d65a165f568897f79135a35e04 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
import base64, time, sys | |
encoded_resume = b""" | |
TmFtZTogU3VwcmVldCBTZXRoaQpTdW1tYXJ5OiBCdWlsZGVyIG9mIHNjYWxhYmxlIEFJICYgQ2xvdWQgcGxhdGZvcm1zLCBkZWxpdmVyaW5nIGluZnJhIGZvciAyJSBvZiBTRUEgR0RQLgogRXhwZXJpZW5jZToKICAoMSkgVlAsIEFJIFNvbHV0aW9ucywgRTJFTmV0d29ya3MKICAoMikgRGlyZWN0b3IsIENvdWNoYmFzZSBBUEFDCiAgKDMpIFNwZWNpYWxpc3QgTGVhZGVyICYgSGVhZCBTdGFydHVwIFNBLCBBV1MgQVNFQU4KICAoNCkgUHJpbmNpcGFsIFNBLiBBV1MKICAoNSkgSGVhZCBvZiBFbmdpbmVlcmluZywgU21hcnRrYXJtYQogICg2KSBTVlAgRW5naW5lZXJpbmcsIFJhbGFsaQogICg3KSBUZWNobmljYWwgQXJjaGl0ZWN0LCBUb2tvcGVkaWEKTG9uZy1UZXJtIElucGFjdDoKICAtIFJlZHVjZWQgQUkgaW5mcmEgc2V0dXAgdGltZSA2NSDihpAgMTUgZGF5cwogIC0gSW5jcmVhc2VkIHBlcmZvcm1hbmNlIDIw4oCTMjUlIHdpdGggR3Jhdml0b24yCiAgLSBEZWNyZWFzZWQgY2xvdWQgY29zdHMgYnkgNDAlClNraWxsczogQ2xvdWQtTmF0aXZlIFN0cmF0ZWd5LCBHZW5BSSwgRGlzdHJpYnV0ZWQgU3lzdGVtcywgR3Jvd3RoIExlYWRlcnNoaXAK | |
""" | |
banner = r""" | |
____ _ | |
/ ___|___ _ __ ___ _ __ ___ ___| |_ | |
| | / _ \| '_ ` _ \| '_ ` _ \ / _ \ __| | |
| |__| (_) | | | | | | | | | | | __/ |_ | |
\____\___/|_| |_| |_|_| |_| |_|\___|\__| | |
Supreet's Resume Hack | |
""" | |
def t(s, d=0.02): | |
for c in s: | |
sys.stdout.write(c) | |
sys.stdout.flush() | |
time.sleep(d) | |
print() | |
class Hack: | |
def __init__(self): | |
self.score = 0 | |
def console(self): | |
t("[*] Connecting to host...") | |
time.sleep(0.5) | |
t("[*] Access granted") | |
t("[*] Decrypt keys required\n") | |
def challenge(self, num, q, a, h): | |
print(f"\nChallenge {num}") | |
print(q) | |
ans = input("> ").strip().lower() | |
if ans == a: | |
t("Key retrieved") | |
self.score += 1 | |
else: | |
t("Failed. Hint: " + h) | |
def partial(self): | |
resume = base64.b64decode(encoded_resume).decode().splitlines() | |
lines = min(len(resume), self.score * 3) | |
print("\nPartial Decrypt:\n") | |
for l in resume[:lines]: | |
t(l, 0.01) | |
if self.score < 3: | |
t("\nFull resume locked") | |
def full(self): | |
t("\nDecrypting...\n", 0.02) | |
for i in range(25): | |
sys.stdout.write("[" + "#" * (i % 10) + "]\r") | |
sys.stdout.flush() | |
time.sleep(0.08) | |
print("") | |
resume = base64.b64decode(encoded_resume).decode() | |
t(resume, 0.01) | |
def run(self): | |
print(banner) | |
self.console() | |
self.challenge(1, "AI infra scaled 10x on 2000+ GPUs. Reduced setup time 65->15 days. Percent?", "77", "(65-15)/65*100") | |
self.partial() | |
self.challenge(2, "Which cloud provider's regions launched in Malaysia, Thailand?", "aws", "Largest hyperscaler") | |
self.partial() | |
self.challenge(3, "Which company's search powers 2% of Indonesia GDP?", "tokopedia", "Big Indonesian marketplace") | |
if self.score == 3: | |
self.full() | |
else: | |
t("\nResume locked") | |
if __name__ == "__main__": | |
Hack().run() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment