mirror of
https://github.com/rapid7/metasploit-payloads
synced 2025-03-18 15:14:10 +01:00

This commit adds two new scripts and modifies some of the powershell transport binding functionality. Code has been added that generates valid Metasploit URIs for use with stageless listeners. This means that it's possible to add HTTP/S transports on the fly and have a URL generated that will work with the current architecture of the process. Two new scripts will appear in each of the powershell sessions: * Add-WebTransport - adds http/s transports to the session. * Add-TcpTransport - adds TCP transports to the session. These two scripts are just abstractions on top of the built-in Meterpreter transport binding functionality, but it makes it a lot easier to interact with the feature and makes it more.. er.. Powershelly. The functions come with documnetation, so `Get-Help Add-WebTransport -Full` will show how it's used. From here, people can do some more fun stuff, such as adding init scripts to their stageless payloads that add support for more transports.
15 lines
324 B
C
15 lines
324 B
C
/*!
|
|
* @file powershell_runner.h
|
|
* @brief This file is generated, do not modify directly.
|
|
*/
|
|
|
|
#ifndef _METERPRETER_SOURCE_EXTENSION_POWERSHELL_RUNNER_H
|
|
#define _METERPRETER_SOURCE_EXTENSION_POWERSHELL_RUNNER_H
|
|
|
|
#define PSHRUNNER_DLL_LEN 58880
|
|
|
|
extern unsigned char PowerShellRunnerDll[PSHRUNNER_DLL_LEN];
|
|
|
|
#endif
|
|
|