Closed OJ closed 9 years ago
Test PASSED. Refer to this link for build results (access rights to CI server needed): https://ci.metasploit.com//job/GPR-MeterpreterWin/168/ Test PASSED.
Test PASSED. Refer to this link for build results (access rights to CI server needed): https://ci.metasploit.com//job/GPR-MeterpreterWin/169/ Test PASSED.
Test PASSED. Refer to this link for build results (access rights to CI server needed): https://ci.metasploit.com//job/GPR-MeterpreterWin/170/ Test PASSED.
Should the tcp transport functions be moved into a new file? Seems odd that it is in the same place as the generic stuff for creating transports, etc, while wininet and winhttp are separate.
Yes, they probably should. Also, the wininet stuff should now be deleted given that we don't (and won't) use it any more.
Test PASSED. Refer to this link for build results (access rights to CI server needed): https://ci.metasploit.com//job/GPR-MeterpreterWin/171/ Test PASSED.
Had some conflicts with master once the WinHTTP proxy fixes made it in. Merged the changes and did some more testing.
Test PASSED. Refer to this link for build results (access rights to CI server needed): https://ci.metasploit.com//job/GPR-MeterpreterWin/172/ Test PASSED.
Test PASSED. Refer to this link for build results (access rights to CI server needed): https://ci.metasploit.com//job/GPR-MeterpreterWin/173/ Test PASSED.
Testing now to unblock #5046
posix seems to have broken with the last 3 commits. server_setup exits without a word. at 5f263db things worked fine.
Thanks Brent. Looking at it now!
no problem - will take a look again later this evening
Test PASSED. Refer to this link for build results (access rights to CI server needed): https://ci.metasploit.com//job/GPR-MeterpreterWin/174/ Test PASSED.
death to wchar - looks good otherwise!
I wasn't able to get transport/x64 stageless to work yet, but I'll merge this so far so we have some bins and can work from that.
Cool beans, I'll have a PR for #5046 shorly. I'm still waiting on GES to add jenkins jobs for the new merged repo, so I'll be giving you manual Linux bins directly again.
Jenkins issues - will have bins in the morning.
This PR contains a stack of changes that are based around refactoring transport to allow for transport hot-swapping. The goal is to allow the user to change transports on the fly. In order to support this, a number of changes had to happen:
During the course of making these changes, other things were done including:
Overview of changes
Remote
type has been changed so that it includes aTransport
instance which is a set of function pointers to various functions within the code base.Transport
instance contains a pointer to a transport-specific context. This context type will vary depending on the transport in question. For example, tcp transports will contain a file descriptor for the socket that communications is being done on, and will have a reference to SSL-related contexts. HTTP(S) payloads will instead of URI/URL, proxy information, etc.Verification
Staged Linux x86
Staged Windows x86
Staged Windows x64
Stageless Windows x86
Stageless Windows x64
Machind ID Command
machine_id
command correctly functions on Linux x86.machine_id
command correctly functions on Win x86.machine_id
command correctly functions on Win x64.Transport Command
There is still some work to be done here with regards to making the transport command support setting of proxy and cert hash verification when setting transport to http(s).
transport
command correctly functions on Win x86.transport
command correctly functions on Win x64.transport
command is not functional on Linux x86.The transport command requires a PR on the MSF side of the fence: https://github.com/rapid7/metasploit-framework/pull/5046
There is still work to do, but this at least gets things moving so that people can review things.
Sample runs
I'll add details of the runs to the MSF side so you can see how it works. There'll be overlap in testing with that module and this one.