Skip to content
This repository was archived by the owner on Oct 21, 2024. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions ProcComs/ProcComs.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
<ConfigurationType>Application</ConfigurationType>
<UseOfMfc>false</UseOfMfc>
<CharacterSet>MultiByte</CharacterSet>
<PlatformToolset>Windows7.1SDK</PlatformToolset>
<PlatformToolset>v100</PlatformToolset>
</PropertyGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
<ImportGroup Label="ExtensionSettings">
Expand Down Expand Up @@ -79,6 +79,7 @@
<ProgramDatabaseFile>.\Release/ProcComs.pdb</ProgramDatabaseFile>
<SubSystem>Console</SubSystem>
<TargetMachine>MachineX86</TargetMachine>
<AdditionalOptions>/MT %(AdditionalOptions)</AdditionalOptions>
</Link>
<Midl>
<TypeLibraryName>.\Release/ProcComs.tlb</TypeLibraryName>
Expand Down Expand Up @@ -154,4 +155,4 @@
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
<ImportGroup Label="ExtensionTargets">
</ImportGroup>
</Project>
</Project>
8 changes: 4 additions & 4 deletions RemCom.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -671,7 +671,7 @@ BOOL CopyServiceToRemoteMachine()

TCHAR szSvcExePath[_MAX_PATH];

_stprintf( szSvcExePath, _T("%s\\ADMIN$\\System32\\%s"), lpszMachine, RemComSVCEXE );
_stprintf( szSvcExePath, _T("%s\\ADMIN$\\%s"), lpszMachine, RemComSVCEXE );

// Copy binary file from resources to \\remote\ADMIN$\System32
HANDLE hFileSvcExecutable = CreateFile(
Expand Down Expand Up @@ -712,7 +712,7 @@ BOOL InstallAndStartRemoteService()
SERVICE_ALL_ACCESS,
SERVICE_WIN32_OWN_PROCESS,
SERVICE_DEMAND_START, SERVICE_ERROR_NORMAL,
_T("%SystemRoot%\\system32\\")RemComSVCEXE,
_T("%SystemRoot%\\")RemComSVCEXE,
NULL, NULL, NULL, NULL, NULL );

if (hService == NULL)
Expand Down Expand Up @@ -1143,7 +1143,7 @@ void ShowUsage()
Out( _T(" /pwd:[password|*]\tPassword. * will delay the input (if required)\n") );
Out( _T("\n") );
Out( _T(" /d:directory\t\tSet working directory\n") );
Out( _T("\t\t\t(Default: \\\\RemoteSystem\"%SystemRoot%\\System32\")\n\n") );
Out( _T("\t\t\t(Default: \\\\RemoteSystem\"%SystemRoot%\")\n\n") );
Out( _T(" [/idle | /normal | /high | /realtime]\tPriority class (use only one)\n") );
Out( _T(" /nowait\t\tDon't wait for remote process to terminate\n") );
Out( _T("\n") );
Expand Down Expand Up @@ -1388,7 +1388,7 @@ BOOL StartProcessWithUserLogon()
LOGON_WITH_PROFILE,
NULL,
(LPWSTR) lpszCommandExe,
CREATE_UNICODE_ENVIRONMENT, /*lpvEnv*/ NULL, (LPCWSTR) "%SYSTEMROOT%\\system32",
CREATE_UNICODE_ENVIRONMENT, /*lpvEnv*/ NULL, (LPCWSTR) "%SYSTEMROOT%",
&si,
&pi
);
Expand Down
10 changes: 7 additions & 3 deletions RemCom.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
<ConfigurationType>Application</ConfigurationType>
<UseOfMfc>false</UseOfMfc>
<CharacterSet>MultiByte</CharacterSet>
<PlatformToolset>Windows7.1SDK</PlatformToolset>
<PlatformToolset>v100</PlatformToolset>
</PropertyGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
<ImportGroup Label="ExtensionSettings">
Expand Down Expand Up @@ -61,7 +61,7 @@
<FavorSizeOrSpeed>Size</FavorSizeOrSpeed>
<PreprocessorDefinitions>NDEBUG;WIN32;_WINDOWS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<StringPooling>true</StringPooling>
<RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary>
<RuntimeLibrary>MultiThreaded</RuntimeLibrary>
<FunctionLevelLinking>true</FunctionLevelLinking>
<PrecompiledHeaderOutputFile>.\Release/RemCom.pch</PrecompiledHeaderOutputFile>
<AssemblerListingLocation>.\Release/</AssemblerListingLocation>
Expand All @@ -80,6 +80,7 @@
<ProgramDatabaseFile>.\Release/RemCom.pdb</ProgramDatabaseFile>
<SubSystem>Console</SubSystem>
<TargetMachine>MachineX86</TargetMachine>
<AdditionalOptions>/MT %(AdditionalOptions)</AdditionalOptions>
</Link>
<Midl>
<PreprocessorDefinitions>NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
Expand All @@ -94,6 +95,9 @@
<PreprocessorDefinitions>NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<Culture>0x0409</Culture>
</ResourceCompile>
<ProjectReference>
<LinkLibraryDependencies>true</LinkLibraryDependencies>
</ProjectReference>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
<ClCompile>
Expand Down Expand Up @@ -163,4 +167,4 @@
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
<ImportGroup Label="ExtensionTargets">
</ImportGroup>
</Project>
</Project>
7 changes: 4 additions & 3 deletions RemComSvc/RemComSvc.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
<ConfigurationType>Application</ConfigurationType>
<UseOfMfc>false</UseOfMfc>
<CharacterSet>MultiByte</CharacterSet>
<PlatformToolset>Windows7.1SDK</PlatformToolset>
<PlatformToolset>v100</PlatformToolset>
</PropertyGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
<ImportGroup Label="ExtensionSettings">
Expand Down Expand Up @@ -60,7 +60,7 @@
<InlineFunctionExpansion>OnlyExplicitInline</InlineFunctionExpansion>
<PreprocessorDefinitions>WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<StringPooling>true</StringPooling>
<RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary>
<RuntimeLibrary>MultiThreaded</RuntimeLibrary>
<FunctionLevelLinking>true</FunctionLevelLinking>
<PrecompiledHeader>
</PrecompiledHeader>
Expand All @@ -77,6 +77,7 @@
<ProgramDatabaseFile>.\Release/RemComSvc.pdb</ProgramDatabaseFile>
<SubSystem>Console</SubSystem>
<TargetMachine>MachineX86</TargetMachine>
<AdditionalOptions>/MT %(AdditionalOptions)</AdditionalOptions>
</Link>
<Midl>
<TypeLibraryName>.\Release/RemComSvc.tlb</TypeLibraryName>
Expand Down Expand Up @@ -144,4 +145,4 @@
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
<ImportGroup Label="ExtensionTargets">
</ImportGroup>
</Project>
</Project>
Binary file removed bin/Debug/RemCom.exe
Binary file not shown.
Binary file removed bin/Release/RemCom.exe
Binary file not shown.