Skip to content

Instantly share code, notes, and snippets.

View trosen-r7's full-sized avatar

Trevor Rosen trosen-r7

  • Rapid7
  • personal account: trevrosen
View GitHub Profile

Keybase proof

I hereby claim:

  • I am trosen-r7 on github.
  • I am trosenr7 (https://keybase.io/trosenr7) on keybase.
  • I have a public key whose fingerprint is 3EC1 494A 7DB3 4B08 7FF4 A0A0 255A DB7A 642D 3928

To claim this, I am signing this object:

@trosen-r7
trosen-r7 / gist:c24bf4d2c15e0ba1bf37
Last active August 29, 2015 14:11
Getting WebForm information from Metasploit given a Workspace name
require 'yaml'
require 'metasploit_data_models'
PATH_TO_DB_FILE = '/opt/metasploit/apps/pro/ui/config/database.yml'
connection_hash = YAML.load_file(PATH_TO_DB_FILE)
ActiveRecord::Base.establish_connection(connection_hash['production'])
workspace_name = ARGV[0]
msbuilder@ubuntu:~$ cat /var/chef/cookbooks/web-target/recipes/default.rb
include_recipe "apt"
# Depedencies
include_recipe "web-target::apache2"
include_recipe "web-target::mysql"
include_recipe "web-target::postgresql"
include_recipe "web-target::tomcat"
# Web apps