Created
December 5, 2015 00:22
-
-
Save pgburt/c42992cce1b2e69e9163 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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