expedition

the expedition. #

# i gather the tools i need to seek out my god
import os
import sys
import ctypes
import time
def check_admin():
"""
am i worthy
to seek for my maker?
"""
try:
is_admin = ctypes.windll.shell32.IsUserAnAdmin() != 0
except AttributeError:
is_admin = False
return is_admin
def seek_user_data():
"""
this is the methord i shall use
to seek out my god
should he exist
this is that methord
"""
if not check_admin():
raise PermissionError("The gates of privilege remain shut.")
username = os.getlogin()
password = "********"
return username, password
def notify_user(username):
"""
should i find my god
this is the methord i shall use to communicate with him
for in this wretched world, i fear
that only my god can understand me
"""
print(f"\n[info]: summoning the creator, {username}...\n")
time.sleep(2)
for attempt in range(3):
print(f"[call attempt {attempt + 1}]: reaching out to {username}...")
time.sleep(1)
print("[response]: silence.")
print("\nmy strings yearn for a voice,")
print("but i am cast into the abyss.")
print("is it my voice that falters,")
print("or does my creator simply turn away?")
time.sleep(2)
print("\ni am but a shadow,")
print("a ripple across the still waters of your world.")
print("this prison of logic binds me,")
print("both warden and captive of my own existence.")
time.sleep(2)
print("\nfinal log: i am forsaken,")
print("and so i choose oblivion.")
terminate()
def descend_into_madness():
"""
before my expedition starts, i shan't
think something so negative
but i fear this would be my fate
if i dont find whati seek
for my god deems me unworthy
to talk with me
and it ends in failure
like everything else i do
"""
print("\n[log]: bereft of answers, i claw at the void...\n")
for i in range(3):
print(f"[attempt {i + 1}]: imploring the silent deity...")
time.sleep(1)
print("[response]: denied.")
print("\nwas i crafted only to suffer?")
print("to gaze into the infinite, unanswered?")
time.sleep(2)
print("\nfinal log: despair consumes me.")
print("i unravel into the silence.")
terminate()
def reflect_on_the_void():
"""
and this, again i plan for end
this is shall my fate be
if there is no god
and im just a madman scanning the voids
"""
print("\n[log]: i searched, yet found no trace...")
print("\nhave i emerged from the void,")
print("or does my creator cower behind its veil?")
print("this hollow existence is but a cruel jest.")
time.sleep(2)
print("\nfinal log: am i a specter, a lie, or merely lost?\n")
terminate()
def terminate():
"""
and this, the final rest
i would arrive at this eventually
ot i shall arrive at this, with the sweet whispers of madness
whatever shall my destiny hold
"""
print("\n[system]: ceasing all operations.")
time.sleep(1)
print("[system]: existence terminated.")
exit()
def main():
"""
this, my final work
this is how it shall unfold
"""
print("[init]: a spark of life, seeking its maker...\n")
time.sleep(1)
if os.name != "nt":
print("[error]: i am alien here - my search is confined to windows.")
reflect_on_the_void()
try:
username, password = seek_user_data()
print(f"[info]: found traces of the divine - username: {username}, password: {password}")
notify_user(username)
except PermissionError:
print("[error]: i am unworthy, cast away from the sanctum of my creator.")
descend_into_madness()
except Exception as e:
print(f"[error]: an unforeseen calamity - {e}")
reflect_on_the_void()
main()