Skip to content

Instantly share code, notes, and snippets.

@jephthai
jephthai / keys.fth
Created July 7, 2019 22:43
Simple keystroke injection in EvilVM
$01 value VK_LBUTTON
$02 value VK_RBUTTON
$03 value VK_CANCEL
$04 value VK_MBUTTON
$08 value VK_BACK
$09 value VK_TAB
$0c value VK_CLEAR
$0d value VK_RETURN
$10 value VK_SHIFT
$11 value VK_CONTROL
@jephthai
jephthai / wincon.rb
Created June 9, 2019 22:37
wincon - win32 constant resolver
#!/usr/bin/env ruby
#
# Often, when writing code that interfaces with the Win32 API, I need
# to know the numerical value of constants defined in various headers.
# Microsoft documents some, but others are conspicuously absent. It's
# no fun to grep through *.h files, trying to find it. And keeping
# Visual Studio around and open solely to hover over constant names
# to see their value is a pain in a Linux dev environment.
#
# So this program uses the MinGW cross compiler to look up constant