def start(self): # mirror a website if we need to if self.mirror is not None: mirror.mirror_site(self, self.mirror) # compile the payloads, this makes execution of modules quicker self.compile_finished = False # start the loading banner Thread(target=tools.loading_banner, args=(self, )).start() # start to do the compiling asyncio.run(tools.compile_and_store_static(self)) asyncio.run(tools.compile_and_store_static_srdi(self)) # make sure we are in the rootdir os.chdir("/root/shad0w") # make sure the loading screen has finished while self.screen_finish != True: pass # show the banner banner.Banner() # start the http server thread # self.debug.log("starting http server thread") thttp = Thread(target=http_server.run_serv, args=(self, )) thttp.daemon = False thttp.start() # asyncio.run(http_server.run_serv(self)) # start the console asyncio.run(self.console.start())
def start(self): # show the banner banner.Banner() # start the http server thread self.debug.log("starting http server thread") thttp = Thread(target=http_server.run_serv, args=(self,)) thttp.daemon = False thttp.start() # start the console thread tconsole = Thread(target=self.console.start) tconsole.daemon = False tconsole.start()
def start(self): # show the banner banner.Banner() # mirror a website if we need to if self.mirror is not None: mirror.mirror_site(self, self.mirror) # start the http server thread # self.debug.log("starting http server thread") thttp = Thread(target=http_server.run_serv, args=(self, )) thttp.daemon = False thttp.start() # asyncio.run(http_server.run_serv(self)) # start the console thread asyncio.run(self.console.start())