Skip to content

Commit

Permalink
Merge pull request #2 from mrfearless/master
Browse files Browse the repository at this point in the history
Add icons and version info for CreateProcessPatch, DbgChildHookDLL, N…
  • Loading branch information
therealdreg authored Apr 1, 2017
2 parents 8c476ff + 5532614 commit a78c9e7
Show file tree
Hide file tree
Showing 39 changed files with 705 additions and 0 deletions.
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,9 @@
<ItemGroup>
<MASM Include="payload.asm" />
</ItemGroup>
<ItemGroup>
<ResourceCompile Include="CreateProcessPatch.rc" />
</ItemGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
<ImportGroup Label="ExtensionTargets">
<Import Project="$(VCTargetsPath)\BuildCustomizations\masm.targets" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,4 +41,9 @@
<Filter>Source Files</Filter>
</MASM>
</ItemGroup>
<ItemGroup>
<ResourceCompile Include="CreateProcessPatch.rc">
<Filter>Resource Files</Filter>
</ResourceCompile>
</ItemGroup>
</Project>
Binary file added CreateProcessPatch/CreateProcessPatch/resource.h
Binary file not shown.
Binary file not shown.
3 changes: 3 additions & 0 deletions DbgChildHookDLL/DbgChildHookDLL/DbgChildHookDLL.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,9 @@
<PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Release|x64'">Create</PrecompiledHeader>
</ClCompile>
</ItemGroup>
<ItemGroup>
<ResourceCompile Include="DbgChildHookDLL.rc" />
</ItemGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
<ImportGroup Label="ExtensionTargets">
</ImportGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,9 @@
<Filter>Source Files</Filter>
</ClCompile>
</ItemGroup>
<ItemGroup>
<ResourceCompile Include="DbgChildHookDLL.rc">
<Filter>Resource Files</Filter>
</ResourceCompile>
</ItemGroup>
</Project>
Binary file added DbgChildHookDLL/DbgChildHookDLL/resource.h
Binary file not shown.
Binary file not shown.
Binary file not shown.
3 changes: 3 additions & 0 deletions NTDLLEntryPatch/NTDLLEntryPatch/NTDLLEntryPatch.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,9 @@
<PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Release|x64'">Create</PrecompiledHeader>
</ClCompile>
</ItemGroup>
<ItemGroup>
<ResourceCompile Include="NTDLLEntryPatch.rc" />
</ItemGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
<ImportGroup Label="ExtensionTargets">
</ImportGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,9 @@
<Filter>Source Files</Filter>
</ClCompile>
</ItemGroup>
<ItemGroup>
<ResourceCompile Include="NTDLLEntryPatch.rc">
<Filter>Resource Files</Filter>
</ResourceCompile>
</ItemGroup>
</Project>
Binary file added NTDLLEntryPatch/NTDLLEntryPatch/resource.h
Binary file not shown.
Binary file not shown.
Binary file not shown.
3 changes: 3 additions & 0 deletions NewProcessWatcher/NewProcessWatcher/NewProcessWatcher.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,9 @@
<PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Release|x64'">Create</PrecompiledHeader>
</ClCompile>
</ItemGroup>
<ItemGroup>
<ResourceCompile Include="NewProcessWatcher.rc" />
</ItemGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
<ImportGroup Label="ExtensionTargets">
</ImportGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,9 @@
<Filter>Source Files</Filter>
</ClCompile>
</ItemGroup>
<ItemGroup>
<ResourceCompile Include="NewProcessWatcher.rc">
<Filter>Resource Files</Filter>
</ResourceCompile>
</ItemGroup>
</Project>
Binary file added NewProcessWatcher/NewProcessWatcher/resource.h
Binary file not shown.
629 changes: 629 additions & 0 deletions x64dbgplugin/PluginTemplate/Icons.h

Large diffs are not rendered by default.

Binary file not shown.
Binary file added x64dbgplugin/PluginTemplate/icons/DbgChild3.ico
Binary file not shown.
Binary file added x64dbgplugin/PluginTemplate/icons/DbgChild3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added x64dbgplugin/PluginTemplate/icons/GotoHook.ico
Binary file not shown.
Binary file added x64dbgplugin/PluginTemplate/icons/GotoHook.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added x64dbgplugin/PluginTemplate/icons/Help.ico
Binary file not shown.
Binary file added x64dbgplugin/PluginTemplate/icons/Help.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added x64dbgplugin/PluginTemplate/icons/HookProcess.ico
Binary file not shown.
Binary file added x64dbgplugin/PluginTemplate/icons/HookProcess.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added x64dbgplugin/PluginTemplate/icons/gotoNTDLL.ico
Binary file not shown.
Binary file added x64dbgplugin/PluginTemplate/icons/gotoNTDLL.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added x64dbgplugin/PluginTemplate/icons/patchNTDLL.ico
Binary file not shown.
Binary file added x64dbgplugin/PluginTemplate/icons/patchNTDLL.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file added x64dbgplugin/PluginTemplate/icons/unpatchNTDLL.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
44 changes: 44 additions & 0 deletions x64dbgplugin/PluginTemplate/plugin.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#include "plugin.h"
#include "icons.h"

static duint processEntry;

Expand Down Expand Up @@ -208,6 +209,36 @@ bool pluginStop()
//Do GUI/Menu related things here.
void pluginSetup()
{

// Icons
ICONDATA dbgchild_menu_icon;
ICONDATA hookprocess_menu_icon;
ICONDATA patchntdll_menu_icon;
ICONDATA unpatchntdll_menu_icon;
ICONDATA newprocesswatcher_menu_icon;
ICONDATA gotohook_menu_icon;
ICONDATA gotontdll_menu_icon;
ICONDATA helpicon_menu_icon;

dbgchild_menu_icon.data = DbgChildIcon;
dbgchild_menu_icon.size = sizeof(DbgChildIcon);
hookprocess_menu_icon.data = HookProcessIcon;
hookprocess_menu_icon.size = sizeof(HookProcessIcon);
patchntdll_menu_icon.data = patchNTDLLIcon;
patchntdll_menu_icon.size = sizeof(patchNTDLLIcon);
unpatchntdll_menu_icon.data = unpatchNTDLLIcon;
unpatchntdll_menu_icon.size = sizeof(unpatchNTDLLIcon);
newprocesswatcher_menu_icon.data = NewProcessWatcherIcon;
newprocesswatcher_menu_icon.size = sizeof(NewProcessWatcherIcon);
gotohook_menu_icon.data = GotoHookIcon;
gotohook_menu_icon.size = sizeof(GotoHookIcon);
gotontdll_menu_icon.data = GotoNTDLLIcon;
gotontdll_menu_icon.size = sizeof(GotoNTDLLIcon);
helpicon_menu_icon.data = HelpIcon;
helpicon_menu_icon.size = sizeof(HelpIcon);


// Add menu item entries
_plugin_menuaddentry(hMenu, MENU_HOOK, "&Hook process creation");
_plugin_menuaddentry(hMenu, MENU_UNPATCH_NTDLL, "&Unpatch NTDLL entry");
_plugin_menuaddseparator(hMenu);
Expand All @@ -227,4 +258,17 @@ void pluginSetup()
_plugin_menuaddseparator(hMenu);

_plugin_menuaddentry(hMenu, MENU_INFO, "&Plugin info by Dreg");

// Add icons to menu item entries
_plugin_menuseticon(hMenu, &dbgchild_menu_icon);
_plugin_menuentryseticon(pluginHandle, MENU_HOOK, &hookprocess_menu_icon);
_plugin_menuentryseticon(pluginHandle, MENU_UNPATCH_NTDLL, &unpatchntdll_menu_icon);
_plugin_menuentryseticon(pluginHandle, MENU_PATCH_NTDLL, &patchntdll_menu_icon);
_plugin_menuentryseticon(pluginHandle, MENU_NEW_PROCESS_WATCHER, &newprocesswatcher_menu_icon);
_plugin_menuentryseticon(pluginHandle, MENU_NEW_PROCESS_WATCHER_OLD, &newprocesswatcher_menu_icon);
_plugin_menuentryseticon(pluginHandle, MENU_GO_TO_HOOK, &gotohook_menu_icon);
_plugin_menuentryseticon(pluginHandle, MENU_GO_TO_NTDLL, &gotontdll_menu_icon);
_plugin_menuentryseticon(pluginHandle, MENU_HELP, &helpicon_menu_icon);
_plugin_menuentryseticon(pluginHandle, MENU_INFO, &dbgchild_menu_icon);

}

0 comments on commit a78c9e7

Please sign in to comment.