Git Product home page Git Product logo

plugindevhelper's Introduction

PluginDevHelper

Simple utility that allows you to automatically unload/reload an x64dbg plugin while developing with Visual Studio.

Installation

  1. Start PluginDevServer and keep it running in the background
  2. Install the PluginDevHelper plugin
  3. Nativate to you plugin's Properties -> Build Events in Visual Studio
  4. Pre-Link Event -> Command Line: if exist "$(ProjectDir)PluginDevBuildTool.exe" ("$(ProjectDir)PluginDevBuildTool.exe" unload "$(TargetPath)")
  5. Post-Build Event -> Command Line: if exist "$(ProjectDir)PluginDevBuildTool.exe" ("$(ProjectDir)PluginDevBuildTool.exe" reload "$(TargetPath)")
  6. Create a symbolic link (mklink or Link Shell Extension) to you plugin's output file in x64dbg's plugins directory
  7. Copy PluginDevBuildTool.exe next to your .vcxproj file

Expected behavior

When building the plugin with Visual Studio and the output file is loaded in an open x64dbg instance:

1>------ Build started: Project: XmmYmm, Configuration: Release Win32 ------
1>plugin.cpp
1>PluginDevBuildTool: Failed to obtain exclusive access, requesting to unload XmmYmm.dp32
1>PluginDevBuildTool: Exclusive access to XmmYmm.dp32 obtained!
1>   Creating library C:\Projects\XmmYmm\bin\x32\XmmYmm.lib and object C:\Projects\XmmYmm\bin\x32\XmmYmm.exp
1>Generating code
1>Finished generating code
1>XmmYmm.vcxproj -> C:\Projects\XmmYmm\bin\x32\XmmYmm.dp32
1>PluginDevBuildTool: Requested reload of XmmYmm.dp32
========== Build: 1 succeeded, 0 failed, 0 up-to-date, 0 skipped ==========

From x64dbg's perspective:

[PluginDevHelper] PluginDevHelper: plugunload "XmmYmm"
[PLUGIN] XmmYmm.dp32 unloaded
[PluginDevHelper] PluginDevHelper: plugload "XmmYmm"
[PLUGIN, XmmYmm] Expression function "xmm" registered!
[PLUGIN] XmmYmm v1 Loaded!

plugindevhelper's People

Contributors

0xnb avatar mrexodia avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

plugindevhelper's Issues

curRetry is always 0

static DWORD WINAPI WebSocketThread(LPVOID)
{
	using namespace std::chrono_literals;
	// this can happen when code becomes stale and we need to re-establish connection again
	int curRetry = 0;
	while (curRetry < MAX_RETRIES) {
		std::this_thread::sleep_for(500ms);
		// connection successful or stop signal received after retry
		if (ConnectToSocket() || bStopWebSocketThread) {
			return 0;
		}
	}
	return 0;
}

should add curRetry++

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.