mirror of
https://github.com/rapid7/metasploit-payloads
synced 2025-01-20 20:37:27 +01:00
testing channel creation
just a simple test to make sure i understand streampool channel creation
This commit is contained in:
parent
60b5eff975
commit
b6d8909227
2
c/meterpreter/source/extensions/priv/priv.h
Normal file → Executable file
2
c/meterpreter/source/extensions/priv/priv.h
Normal file → Executable file
@ -48,4 +48,6 @@
|
||||
#define TLV_TYPE_ELEVATE_SERVICE_DLL MAKE_CUSTOM_TLV( TLV_META_TYPE_STRING, TLV_TYPE_EXTENSION_PRIV, TLV_EXTENSIONS + 202 )
|
||||
#define TLV_TYPE_ELEVATE_SERVICE_LENGTH MAKE_CUSTOM_TLV( TLV_META_TYPE_UINT, TLV_TYPE_EXTENSION_PRIV, TLV_EXTENSIONS + 203 )
|
||||
|
||||
#define TLV_TYPE_NTDS_TEST MAKE_CUSTOM_TLV( TLV_META_TYPE_STRING, TLV_TYPE_EXTENSION_PRIV, TLV_EXTENSIONS + 300)
|
||||
|
||||
#endif
|
||||
|
1
c/meterpreter/source/extensions/priv/server/precomp.h
Normal file → Executable file
1
c/meterpreter/source/extensions/priv/server/precomp.h
Normal file → Executable file
@ -6,6 +6,7 @@
|
||||
#include "./elevate/elevate.h"
|
||||
#include "passwd.h"
|
||||
#include "fs.h"
|
||||
#include "ntds.h"
|
||||
#include "../../../common//arch/win/remote_thread.h"
|
||||
|
||||
#include "../../../DelayLoadMetSrv/DelayLoadMetSrv.h"
|
||||
|
1
c/meterpreter/source/extensions/priv/server/priv.c
Normal file → Executable file
1
c/meterpreter/source/extensions/priv/server/priv.c
Normal file → Executable file
@ -23,6 +23,7 @@ Command customCommands[] =
|
||||
COMMAND_REQ( "priv_fs_set_file_mace_from_file", request_fs_set_file_mace_from_file ),
|
||||
COMMAND_REQ( "priv_fs_blank_file_mace", request_fs_blank_file_mace ),
|
||||
COMMAND_REQ( "priv_fs_blank_directory_mace", request_fs_blank_directory_mace ),
|
||||
COMMAND_REQ( "priv_ntds_test", ntds_test_channel),
|
||||
COMMAND_TERMINATOR
|
||||
};
|
||||
|
||||
|
@ -623,6 +623,7 @@ copy /y "$(TargetDir)$(TargetFileName)" "$(ProjectDir)..\..\output\$(PlatformSho
|
||||
</PostBuildEvent>
|
||||
</ItemDefinitionGroup>
|
||||
<ItemGroup>
|
||||
<ClCompile Include="..\..\source\extensions\priv\server\ntds.c" />
|
||||
<ClCompile Include="..\..\source\extensions\priv\server\priv.c">
|
||||
<PrecompiledHeader>Create</PrecompiledHeader>
|
||||
</ClCompile>
|
||||
@ -634,6 +635,7 @@ copy /y "$(TargetDir)$(TargetFileName)" "$(ProjectDir)..\..\output\$(PlatformSho
|
||||
<ClCompile Include="..\..\source\extensions\priv\server\fs.c" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ClInclude Include="..\..\source\extensions\priv\server\ntds.h" />
|
||||
<ClInclude Include="..\..\source\extensions\priv\server\precomp.h" />
|
||||
<ClInclude Include="..\..\source\extensions\priv\priv.h" />
|
||||
<ClInclude Include="..\..\source\extensions\priv\server\elevate\elevate.h" />
|
||||
@ -669,4 +671,4 @@ copy /y "$(TargetDir)$(TargetFileName)" "$(ProjectDir)..\..\output\$(PlatformSho
|
||||
<ImportGroup Label="ExtensionTargets">
|
||||
<Import Project="$(VCTargetsPath)\BuildCustomizations\masm.targets" />
|
||||
</ImportGroup>
|
||||
</Project>
|
||||
</Project>
|
Loading…
Reference in New Issue
Block a user