mirror of
https://github.com/rapid7/metasploit-payloads
synced 2025-01-02 11:36:22 +01:00
Move and rename common/common_logging.c
to logging/logging.c
This commit is contained in:
parent
66bbd5f078
commit
0896fb294a
@ -1,4 +1,4 @@
|
||||
#include "common.h"
|
||||
#include "../../common/common.h"
|
||||
|
||||
HANDLE lock = NULL;
|
||||
HANDLE hFile = NULL;
|
||||
@ -20,13 +20,13 @@ HANDLE init_logging(wchar_t* filePath) {
|
||||
}
|
||||
|
||||
void log_to_file(char* buffer) {
|
||||
if (hFile) {
|
||||
WaitForSingleObject(lock, INFINITE);
|
||||
if (hFile) {
|
||||
WaitForSingleObject(lock, INFINITE);
|
||||
|
||||
LPDWORD bytesWritten = 0;
|
||||
WriteFile(hFile, buffer, (DWORD)strlen(buffer), bytesWritten, NULL);
|
||||
ReleaseMutex(lock);
|
||||
}
|
||||
LPDWORD bytesWritten = 0;
|
||||
WriteFile(hFile, buffer, (DWORD)strlen(buffer), bytesWritten, NULL);
|
||||
ReleaseMutex(lock);
|
||||
}
|
||||
}
|
||||
|
||||
HANDLE get_logging_context() {
|
@ -358,7 +358,7 @@ copy /y "$(TargetDir)$(TargetFileName)" "$(ProjectDir)..\..\output\"</Command>
|
||||
<ClCompile Include="..\..\source\elevator\elevator.c" />
|
||||
<ClCompile Include="..\..\source\elevator\namedpipeservice.c" />
|
||||
<ClCompile Include="..\..\source\elevator\tokendup.c" />
|
||||
<ClCompile Include="..\..\source\common\common_logging.c" />
|
||||
<ClCompile Include="..\..\source\logging\logging.c" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ClInclude Include="..\..\source\elevator\elevator.h" />
|
||||
|
@ -451,7 +451,7 @@ copy /y "$(TargetDir)$(TargetFileName)" "$(ProjectDir)..\..\output\"</Command>
|
||||
<ItemGroup>
|
||||
<ClCompile Include="..\..\source\extensions\espia\espia.c" />
|
||||
<ClCompile Include="..\..\source\extensions\espia\screen.c" />
|
||||
<ClCompile Include="..\..\source\common\common_logging.c" />
|
||||
<ClCompile Include="..\..\source\logging\logging.c" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ClInclude Include="..\..\source\extensions\espia\espia.h" />
|
||||
|
@ -450,7 +450,7 @@ copy /y "$(TargetDir)$(TargetFileName)" "$(ProjectDir)..\..\output\"</Command>
|
||||
<ClCompile Include="..\..\source\extensions\extapi\wmi.c" />
|
||||
<ClCompile Include="..\..\source\extensions\extapi\wmi_interface.cpp" />
|
||||
<ClCompile Include="..\..\source\extensions\extapi\wshelpers.c" />
|
||||
<ClCompile Include="..\..\source\common\common_logging.c" />
|
||||
<ClCompile Include="..\..\source\logging\logging.c" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ClInclude Include="..\..\source\extensions\extapi\adsi.h" />
|
||||
|
@ -454,7 +454,7 @@ copy /y "$(TargetDir)$(TargetFileName)" "$(ProjectDir)..\..\output\"</Command>
|
||||
<ClCompile Include="..\..\source\extensions\incognito\list_tokens.c" />
|
||||
<ClCompile Include="..\..\source\extensions\incognito\token_info.c" />
|
||||
<ClCompile Include="..\..\source\extensions\incognito\user_management.c" />
|
||||
<ClCompile Include="..\..\source\common\common_logging.c" />
|
||||
<ClCompile Include="..\..\source\logging\logging.c" />
|
||||
</ItemGroup>
|
||||
<Choose>
|
||||
<When Condition="'$(Platform)'=='Win32'" />
|
||||
|
@ -613,7 +613,7 @@ copy /y "$(TargetDir)$(TargetFileName)" "$(ProjectDir)..\..\output\"</Command>
|
||||
<DisableSpecificWarnings Condition="'$(Configuration)|$(Platform)'=='r7_release|x64'">4756;%(DisableSpecificWarnings)</DisableSpecificWarnings>
|
||||
<DisableSpecificWarnings Condition="'$(Configuration)|$(Platform)'=='Release|x64'">4756;%(DisableSpecificWarnings)</DisableSpecificWarnings>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\source\common\common_logging.c" />
|
||||
<ClCompile Include="..\..\source\logging\logging.c" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ClInclude Include="..\..\source\extensions\kiwi\main.h" />
|
||||
|
@ -413,7 +413,7 @@ copy /y "$(TargetDir)$(TargetFileName)" "$(ProjectDir)..\..\output\"</Command>
|
||||
<ClCompile Include="..\..\source\extensions\lanattacks\dhcpserv.cpp" />
|
||||
<ClCompile Include="..\..\source\extensions\lanattacks\TFTPserv.cpp" />
|
||||
<ClCompile Include="..\..\source\extensions\lanattacks\lanattacks.c" />
|
||||
<ClCompile Include="..\..\source\common\common_logging.c" />
|
||||
<ClCompile Include="..\..\source\logging\logging.c" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ClInclude Include="..\..\source\extensions\lanattacks\dhcpserv.h" />
|
||||
|
@ -441,7 +441,7 @@ copy /y "$(TargetDir)$(TargetFileName)" "$(ProjectDir)..\..\output\"</Command>
|
||||
<ClCompile Include="..\..\source\extensions\peinjector\libpetool.c" />
|
||||
<ClCompile Include="..\..\source\extensions\peinjector\peinjector.c" />
|
||||
<ClCompile Include="..\..\source\extensions\peinjector\peinjector_bridge.c" />
|
||||
<ClCompile Include="..\..\source\common\common_logging.c" />
|
||||
<ClCompile Include="..\..\source\logging\logging.c" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ClInclude Include="..\..\source\extensions\peinjector\headers.h" />
|
||||
|
@ -445,7 +445,7 @@ copy /y "$(TargetDir)$(TargetFileName)" "$(ProjectDir)..\..\output\"</Command>
|
||||
<ClCompile Include="..\..\source\extensions\powershell\powershell_bindings.cpp" />
|
||||
<ClCompile Include="..\..\source\extensions\powershell\powershell_bridge.cpp" />
|
||||
<ClCompile Include="..\..\source\extensions\powershell\powershell_runner.cpp" />
|
||||
<ClCompile Include="..\..\source\common\common_logging.c" />
|
||||
<ClCompile Include="..\..\source\logging\logging.c" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ClInclude Include="..\..\source\extensions\powershell\powershell.h" />
|
||||
|
@ -545,7 +545,7 @@ copy /y "$(TargetDir)$(TargetFileName)" "$(ProjectDir)..\..\output\"</Command>
|
||||
<ClCompile Include="..\..\source\extensions\priv\priv.c" />
|
||||
<ClCompile Include="..\..\source\extensions\priv\service.c" />
|
||||
<ClCompile Include="..\..\source\extensions\priv\tokendup.c" />
|
||||
<ClCompile Include="..\..\source\common\common_logging.c" />
|
||||
<ClCompile Include="..\..\source\logging\logging.c" />
|
||||
</ItemGroup>
|
||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
|
||||
<ImportGroup Label="ExtensionTargets">
|
||||
|
@ -662,7 +662,7 @@ copy /y "$(TargetDir)$(TargetFileName)" "$(ProjectDir)..\..\output\"</Command>
|
||||
<ClCompile Include="..\..\source\extensions\python\python_commands.c" />
|
||||
<ClCompile Include="..\..\source\extensions\python\python_main.c" />
|
||||
<ClCompile Include="..\..\source\extensions\python\python_meterpreter_binding.c" />
|
||||
<ClCompile Include="..\..\source\common\common_logging.c" />
|
||||
<ClCompile Include="..\..\source\logging\logging.c" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ClInclude Include="..\..\source\extensions\python\Include\abstract.h" />
|
||||
|
@ -354,7 +354,7 @@ copy /y "$(TargetDir)$(TargetFileName)" "$(ProjectDir)..\..\output\$(TargetName)
|
||||
<ClCompile Include="..\..\source\extensions\sniffer\sniffer.c">
|
||||
<PrecompiledHeader>Create</PrecompiledHeader>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\source\common\common_logging.c" />
|
||||
<ClCompile Include="..\..\source\logging\logging.c" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ClInclude Include="..\..\source\extensions\sniffer\precomp.h" />
|
||||
|
@ -558,7 +558,7 @@ copy /y "$(TargetDir)$(TargetFileName)" "$(ProjectDir)..\..\output\"</Command>
|
||||
<ClCompile Include="..\..\source\extensions\stdapi\server\webcam\audio.c" />
|
||||
<ClCompile Include="..\..\source\extensions\stdapi\server\webcam\bmp2jpeg.c" />
|
||||
<ClCompile Include="..\..\source\extensions\stdapi\server\webcam\webcam.cpp" />
|
||||
<ClCompile Include="..\..\source\common\common_logging.c" />
|
||||
<ClCompile Include="..\..\source\logging\logging.c" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ResourceCompile Include="..\..\source\extensions\stdapi\server\resource\stdapi.rc" />
|
||||
|
@ -435,7 +435,7 @@ copy /y "$(TargetDir)$(TargetFileName)" "$(ProjectDir)..\..\output\"</Command>
|
||||
<ClCompile Include="..\..\source\extensions\unhook\apisetmap.c" />
|
||||
<ClCompile Include="..\..\source\extensions\unhook\refresh.c" />
|
||||
<ClCompile Include="..\..\source\extensions\unhook\unhook.c" />
|
||||
<ClCompile Include="..\..\source\common\common_logging.c" />
|
||||
<ClCompile Include="..\..\source\logging\logging.c" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ClInclude Include="..\..\source\extensions\unhook\apisetmap.h" />
|
||||
|
@ -431,7 +431,7 @@ copy /y "$(TargetDir)$(TargetFileName)" "$(ProjectDir)..\..\output\"</Command>
|
||||
<ItemGroup>
|
||||
<ClCompile Include="..\..\source\extensions\winpmem\winpmem.cpp" />
|
||||
<ClCompile Include="..\..\source\extensions\winpmem\winpmem_meterpreter.cpp" />
|
||||
<ClCompile Include="..\..\source\common\common_logging.c" />
|
||||
<ClCompile Include="..\..\source\logging\logging.c" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ClInclude Include="..\..\source\extensions\winpmem\elf.h" />
|
||||
|
@ -56,7 +56,7 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Common", "Common", "{EDE086
|
||||
..\source\common\common_core.h = ..\source\common\common_core.h
|
||||
..\source\common\common_exports.h = ..\source\common\common_exports.h
|
||||
..\source\common\common_list.h = ..\source\common\common_list.h
|
||||
..\source\common\common_logging.c = ..\source\common\common_logging.c
|
||||
..\source\logging\logging.c = ..\source\logging\logging.c
|
||||
..\source\common\common_logging.h = ..\source\common\common_logging.h
|
||||
..\source\common\common_metapi.h = ..\source\common\common_metapi.h
|
||||
..\source\common\common_pivot_tree.h = ..\source\common\common_pivot_tree.h
|
||||
|
@ -588,7 +588,7 @@ copy /y "$(TargetDir)$(TargetFileName)" "$(ProjectDir)..\..\output\"</Command>
|
||||
<ClCompile Include="..\..\source\metsrv\thread.c" />
|
||||
<ClCompile Include="..\..\source\metsrv\unicode.c" />
|
||||
<ClCompile Include="..\..\source\metsrv\zlib.c" />
|
||||
<ClCompile Include="..\..\source\common\common_logging.c" />
|
||||
<ClCompile Include="..\..\source\logging\logging.c" />
|
||||
</ItemGroup>
|
||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
|
||||
<ImportGroup Label="ExtensionTargets">
|
||||
|
@ -53,6 +53,6 @@
|
||||
<ClCompile Include="..\..\source\metsrv\pivot_packet_dispatch.c" />
|
||||
<ClCompile Include="..\..\source\metsrv\server_setup.c" />
|
||||
<ClCompile Include="..\..\source\metsrv\metapi.c" />
|
||||
<ClCompile Include="..\..\source\common\common_logging.c" />
|
||||
<ClCompile Include="..\..\source\logging\logging.c" />
|
||||
</ItemGroup>
|
||||
</Project>
|
Loading…
Reference in New Issue
Block a user