Example #1
0
    def private_query(query):
        try:
            if (query.data.startswith("['value'")):
                moduleName = __ast.literal_eval(query.data)[1]
                category = __ast.literal_eval(query.data)[2]

                functions = '\n'.join(
                    ht.getFunctionsNamesFromModule(moduleName))

                bot.answer_callback_query(callback_query_id=query.id,
                                          show_alert=True,
                                          text=functions)

            bot.edit_message_reply_markup(query.message.chat.id,
                                          query.message.message_id)
        except Exception as e:
            bot.answer_callback_query(callback_query_id=query.id,
                                      show_alert=True,
                                      text=str(e))
Example #2
0
 def help(self):
     Logger.printMessage(message=ht.getFunctionsNamesFromModule('ht_rc4'),
                         debug_module=True)
 def help(self):
     Logger.printMessage(
         message=ht.getFunctionsNamesFromModule('ht_twitter'))
Example #4
0
 def help(self):
     Logger.printMessage(
         message=ht.getFunctionsNamesFromModule('ht_sqlinjection'))
Example #5
0
if __name__ == "__main__":
    value_selected = -2
    while not value_selected == -1:
        value_selected = menu(main_menu, exit_option=True)
        if value_selected == -1:
            print('|--------------------------|')
            print('|        Exiting :)        |')
            print('|--------------------------|')
        else:
            if value_selected == "Modules":

                module = menu(ht.getModulesNames(), 'Modules', back=True)

                if module:
                    functions_modules = menu(
                        ht.getFunctionsNamesFromModule(module),
                        'Module {m}'.format(m=module),
                        back=True)

                    function_params = ht.Utils.getFunctionsParams(
                        category=ht.getModuleCategory(module),
                        moduleName=module,
                        functionName=functions_modules)

                    full_params, force_params = prepareFunctionParams(
                        function_params)

                    full_params = menu(full_params,
                                       '{m} - {f}'.format(m=module,
                                                          f=functions_modules),
                                       force=force_params,