Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/python/321.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
如何为msfrpc-pluginforpython创建多个虚拟控制台?_Python_Ruby_Metasploit_Msf - Fatal编程技术网

如何为msfrpc-pluginforpython创建多个虚拟控制台?

如何为msfrpc-pluginforpython创建多个虚拟控制台?,python,ruby,metasploit,msf,Python,Ruby,Metasploit,Msf,我正在尝试使用用于python的msfrpc插件创建几个虚拟控制台。然而,每当我创建一个新的控制台时,我都会得到一个返回错误 import msfrpc client = msfrpc.Msfrpc({}) client.login('msf','123') res = client.call('console.create') console_id = res['id'] res2 = client.call('console.create') console_id2= res2['id

我正在尝试使用用于python的msfrpc插件创建几个虚拟控制台。然而,每当我创建一个新的控制台时,我都会得到一个返回错误

import msfrpc

client = msfrpc.Msfrpc({})
client.login('msf','123')

res = client.call('console.create')
console_id = res['id']

res2 = client.call('console.create')
console_id2= res2['id']
print res2
错误:

和res2={'error\u backtrace':
(“lib/msf/core/rpc/v10/rpc_console.rb:15:inrpc_create”, “lib/msf/core/rpc/v10/service.rb:152:进程中的块”中,
“lib/ruby/1.9.1/timeout.rb:68:intimeout”, “lib/msf/core/rpc/v10/service.rb:152:正在处理中,”
“lib/msf/core/rpc/v10/service.rb:90:inon_request_uri”, “lib/msf/core/rpc/v10/service.rb:72:开始时在块中,”
“lib/rex/proto/http/handler/proc.rb:38:incall”, “lib/rex/proto/http/handler/proc.rb:38:in on_request',
“lib/rex/proto/http/server.rb:365:indipatch_请求”, “lib/rex/proto/http/server.rb:299:in on_client_data”“,
“lib/rex/proto/http/server.rb:158:inblock in start'”, “lib/rex/io/stream_server.rb:48:in call”“,
“lib/rex/io/stream_server.rb:48:inon_client_data”, “lib/rex/io/stream_server.rb:192:监视器_客户端中的块中,
“lib/rex/io/stream_server.rb:190:ineach'”, “lib/rex/io/stream_server.rb:190:在监视器_客户端”中,
“lib/rex/io/stream_server.rb:73:start中的inblock”, “lib/rex/thread_factory.rb:22:调用中,”
“lib/rex/thread_factory.rb:22:spawn中的inblock”, “lib/msf/core/thread_manager.rb:100:in call”“,
“lib/msf/core/thread_manager.rb:100:spawn中的inblock”, 'error_message':'error number of arguments(2代表1)''error_class': “ArgumentError”、“error_string”:“参数数量错误(2个用于 1) “,”错误“:True}`

有什么解决办法吗?这是正确的方法还是有其他方法来解决这个问题?如何创建多个控制台