Skip to content

Instantly share code, notes, and snippets.

@trietptm
Forked from hasherezade/AddToShell.reg
Created March 28, 2016 16:18
Show Gist options
  • Save trietptm/e07f7f0117a8de6c76cd to your computer and use it in GitHub Desktop.
Save trietptm/e07f7f0117a8de6c76cd 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