# frozen_string_literal: true require 'json' module PWN module Reports # This plugin generates the War Dialing results produced by pwn_www_uri_buster. module URIBuster # Supported Method Parameters:: # PWN::Reports::URIBuster.generate( # dir_path: dir_path, # results_hash: results_hash # ) public_class_method def self.generate(opts = {}) dir_path = opts[:dir_path].to_s if File.directory?(opts[:dir_path].to_s) raise "PWN Error: Invalid Directory #{dir_path}" if dir_path.nil? results_hash = opts[:results_hash] File.write( "#{dir_path}/pwn_www_uri_buster.json", JSON.pretty_generate(results_hash) ) html_report = %q{
# | Request Time | URI | HTTP Method | HTTP Response Code | HTTP Response |
---|