Skip to content

Instantly share code, notes, and snippets.

@pgburt
Created December 5, 2015 00:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pgburt/c42992cce1b2e69e9163 to your computer and use it in GitHub Desktop.
Save pgburt/c42992cce1b2e69e9163 to your computer and use it in GitHub Desktop.
require_relative 'bundle/bundler/setup'
require 'json'
require 'iron_worker'
require 'erb'
# Load data
attack_file = File.new('./verbs.erb', 'r').read
payload = IronWorker.payload
# Build the .attack file using payload data
render = ERB.new(attack_file, 0, '>')
output = File.new('verbs.attack', 'w')
output.write(render.result)
output.close
# Execute the .attack file with guantlt
puts %x(
bin/gauntlt ./verbs.attack
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment