Sha256: 56034a6f994eff1a83e54f3c48cb2c6908361149280f026c3d94485b09badb8c

Contents?: true

Size: 455 Bytes

Versions: 3

Compression:

Stored size: 455 Bytes

Contents

#!/usr/bin/env ruby
$LOAD_PATH.unshift File.join(File.dirname(__FILE__), '..', 'lib')
require 'mithril'

nginx_path = "/home/julian/important/12W/elf-policy/webserver-samples/nginx-install/sbin/"
$parse = Elf::Parser.from_file (ARGV[0] || nginx_path + "nginx-ori")
#binding.pry
outfile=  ARGV[1] || nginx_path+"nginx"
Elf::Writer::Writer.to_file(outfile ,$parse)
`chmod +x #{outfile}`

#pp parse # .instance_variables
##TODO: Do enums as custom records.

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
elf-mithril-0.0.5 bin/mithril-rewrite
elf-mithril-0.0.4 bin/mithril-rewrite
elf-mithril-0.0.1 bin/mithril-rewrite