def initial(self): self.banner() self.module_name = self.__class__.__name__ self.delay = 30 self.options['CURRENT_MODULE'] = str(self.module_name) # check speed of the modules self.options['CURRENT_SPEED'] = speed.parse_speed(self.options) # check report file here if not self.resume(): utils.print_line() return self.routine() self.additional_routine() # some noti here self.conclude()
def parsing_argument(args): # parsing agument options = config.parsing_config(args) # Start Django API if it's not if not args.client: if not utils.connection_check('127.0.0.1', 8000): utils.print_line() p = Process(target=start_server) p.start() # wait for Django API start time.sleep(3) utils.print_line() else: utils.print_info("Look like Django API already ran") options = auth.login(options) single_target(options)
def initial(self): self.banner() self.module_name = self.__class__.__name__ self.delay = 30 self.options['CURRENT_MODULE'] = str(self.module_name) # check if you want to ignore a module or not if speed.excluded(self.options): utils.print_info("Detect Ignore module: {0}".format( self.module_name)) return # check speed of the modules self.options['CURRENT_SPEED'] = speed.parse_speed(self.options) # check report file here if not self.resume(): utils.print_line() return slack_noti.slack_notification('status', self.options) self.routine() # some noti here self.conclude() slack_noti.slack_notification('done', self.options) self.additional_routine()
def conclude(self): utils.print_line() utils.print_elapsed(self.options) utils.print_line()