module PWN::Plugins::FileFu

def self.authors

def self.authors
rt@0dayinc.com>

def self.help

def self.help
dir(dir_path: 'optional path to dir defaults to .') {|entry| puts entry}
_file(
required - path to .tar.gz file',
required - destination folder to save extracted contents'

def self.recurse_dir(opts = {})

def self.recurse_dir(opts = {})
.nil?
:dir_path].to_s.scrub if File.directory?(opts[:dir_path].to_s.scrub)
: Invalid Directory #{dir_path}" if dir_path.nil?
e this:
_path => 'path to dir') {|entry| puts entry}
th}/**/*").each { |entry| yield Shellwords.escape(entry) }
 => e

def self.untar_gz_file(opts = {})

def self.untar_gz_file(opts = {})
[:tar_gz_file].to_s.scrub if File.exist?(opts[:tar_gz_file].to_s.scrub)
[:destination].to_s.scrub if Dir.exist?(File.dirname(tar_gz_file))
tar_gz_file} -C #{destination}`
 => e