Skip to content

Instantly share code, notes, and snippets.

@hasherezade
Last active June 9, 2021 04:32
Show Gist options
  • Save hasherezade/2e0158a40accdc0f4265 to your computer and use it in GitHub Desktop.
Save hasherezade/2e0158a40accdc0f4265 to your computer and use it in GitHub Desktop.
PIN_runner
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\*\shell\PIN_run]
@="Run with PIN"
[HKEY_CLASSES_ROOT\*\shell\PIN_run\command]
@="\"C:\\Pin_Tools\run_me.bat\" \"%1\""
REGEDIT4
[-HKEY_CLASSES_ROOT\*\shell\PIN_run]
@echo off
echo PIN is trying to run the app:
echo %1%
set OLDDIR=%CD%
set PIN_DIR=C:\pin
set PINTOOL=C:\Pin_Tools\SectionsTracer.dll
set TARGET_APP=%1%
cd %PIN_DIR%
pin.exe -t %PINTOOL% -o %TARGET_APP%.tag -- %TARGET_APP%
chdir /d %OLDDIR%
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment