Rebuilding as DLL

master
John Hammond 2021-06-09 21:14:45 -07:00
parent 205df0236b
commit 5998868109
18 changed files with 28 additions and 18 deletions

Binary file not shown.

View File

@ -0,0 +1,9 @@
{
"ExpandedNodes": [
"",
"\\obj",
"\\obj\\Release",
"\\Properties"
],
"PreviewInSolutionExplorer": false
}

Binary file not shown.

View File

@ -24,7 +24,12 @@
<Prefer32Bit>false</Prefer32Bit>
</PropertyGroup>
<PropertyGroup>
<StartupObject>BadPotato</StartupObject>
<StartupObject>
</StartupObject>
<ProjectGuid>{3B0F8EEB-1280-46EA-A0C5-591C488FE8B2}</ProjectGuid>
</PropertyGroup>
<PropertyGroup>
<OutputType>Library</OutputType>
</PropertyGroup>
<ItemGroup>
<Reference Include="System" />

View File

@ -175,6 +175,8 @@ class BadPotato
{
error();
}
return new Dictionary<string, object>();
}

View File

@ -1,16 +1,7 @@
# BadPotato
# BadPotato DLL to side-load into pwncat
Windows 2012-2019
Reference: https://github.com/BeichenDream/BadPotato
Modified code to retain the impersonated SYSTEM token within a method of a DLL.
Windows 8-10
![](https://raw.githubusercontent.com/BeichenDream/BadPotato/master/screen.png)
## 引用
[https://github.com/vletoux/pingcastle](https://github.com/vletoux/pingcastle "pingcastle")
[https://itm4n.github.io/printspoofer-abusing-impersonate-privileges/](https://itm4n.github.io/printspoofer-abusing-impersonate-privileges/ "PrintSpoofer")
Retains pwncat's C2 ProtocolError exceptions by reflection.

BIN
bin/Release/BadPotato.dll Normal file

Binary file not shown.

Binary file not shown.

View File

@ -0,0 +1 @@
6dbecc83ff04be174d6b7897bd7534b144ddaba9

View File

@ -0,0 +1,2 @@
C:\Users\johnh\source\repos\BadPotato\obj\Debug\BadPotato.csproj.AssemblyReference.cache
C:\Users\johnh\source\repos\BadPotato\obj\Debug\BadPotato.csproj.CoreCompileInputs.cache

View File

@ -1,5 +1,5 @@
C:\Users\johnh\Source\Repos\BadPotato\bin\Release\BadPotato.exe.config
C:\Users\johnh\Source\Repos\BadPotato\bin\Release\BadPotato.exe
C:\Users\johnh\Source\Repos\BadPotato\obj\Release\BadPotato.csproj.CoreCompileInputs.cache
C:\Users\johnh\Source\Repos\BadPotato\obj\Release\BadPotato.exe
C:\Users\johnh\Source\Repos\BadPotato\obj\Release\BadPotato.csproj.AssemblyReference.cache
C:\Users\johnh\source\repos\BadPotato\bin\Release\BadPotato.dll.config
C:\Users\johnh\source\repos\BadPotato\bin\Release\BadPotato.dll
C:\Users\johnh\source\repos\BadPotato\obj\Release\BadPotato.dll

BIN
obj/Release/BadPotato.dll Normal file

Binary file not shown.

Binary file not shown.

Binary file not shown.

Before

Width:  |  Height:  |  Size: 94 KiB