Skip to content

Instantly share code, notes, and snippets.

@pgburt

pgburt/hello.rb

Created Dec 5, 2015
Embed
What would you like to do?
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