Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View wchen-r7's full-sized avatar

sinn3r wchen-r7

View GitHub Profile
##
# This module requires Metasploit: http://metasploit.com/download
# Current source: https://github.com/rapid7/metasploit-framework
##
require 'msf/core'
class Metasploit4 < Msf::Exploit::Remote
Rank = GreatRanking
<ruby>
def add_hosts
run_single("hosts -a -R 192.168.1.2-192.168.1.20")
Rex::Socket::RangeWalker.new("192.168.1.2-192.168.1.20").each do |ip|
id = framework.db.get_host(:address => ip).id
framework.db.hosts.update(id, :os_name => 'Microsoft Windows')
framework.db.hosts.update(id, :os_flavor => 'Windows 7')
framework.db.hosts.update(id, :os_sp => 'SP1')
##
# This module requires Metasploit: http://metasploit.com/download
# Current source: https://github.com/rapid7/metasploit-framework
##
require 'msf/core'
class Metasploit3 < Msf::Exploit::Remote
Rank = NormalRanking
##
# This module requires Metasploit: http://metasploit.com/download
# Current source: https://github.com/rapid7/metasploit-framework
##
require 'msf/core'
class Metasploit3 < Msf::Auxiliary
Rank = NormalRanking
$ ruby msfd
[*] Initializing msfd...
[*] Running msfd...
$ nc 127.0.0.1 55554
MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM
MMMMMMMMMMM MMMMMMMMMM
MMMN$ vMMMM
MMMNl MMMMM MMMMM JMMMM
MMMNl MMMMMMMN NMMMMMMM JMMMM
require 'msf/core'
class Metasploit3 < Msf::Auxiliary
include Msf::Exploit::Remote::HttpClient
def initialize(info = {})
super(update_info(info,
'Name' => 'HttpClient Example',
'Description' => %q{ Do a send_request_cgi() },
##
# This module requires Metasploit: http://metasploit.com/download
# Current source: https://github.com/rapid7/metasploit-framework
##
require 'msf/core'
class Metasploit3 < Msf::Auxiliary
include Msf::Auxiliary::Report
##
# This module requires Metasploit: http://metasploit.com/download
# Current source: https://github.com/rapid7/metasploit-framework
##
require 'msf/core'
class Metasploit3 < Msf::Auxiliary
include Msf::Exploit::Remote::HttpClient
[07/06/2015 18:57:39] [e(0)] core: thread exception: JobID(5)-Exploit: multi/browser/firefox_svg_plugin critical=false error: ThreadError deadlock; recursive locking
source:
/Users/wchen/rapid7/msf/lib/metasploit/framework/thread_factory_provider.rb:24:in `spawn'
/Users/wchen/rapid7/msf/lib/rex/thread_factory.rb:22:in `spawn'
/Users/wchen/rapid7/msf/lib/rex/job_container.rb:32:in `start'
/Users/wchen/rapid7/msf/lib/rex/job_container.rb:156:in `start_bg_job'
/Users/wchen/rapid7/msf/lib/msf/core/exploit_driver.rb:149:in `run'
/Users/wchen/rapid7/msf/lib/msf/base/simple/exploit.rb:136:in `exploit_simple'
/Users/wchen/rapid7/msf/lib/msf/base/simple/exploit.rb:161:in `exploit_simple'
/Users/wchen/rapid7/msf/lib/msf/core/exploit/browser_autopwnv2.rb:445:in `block in start_exploits'
[06/28/2015 15:35:26] [e(0)] core: Call Stack
/Users/wchen/.rvm/rubies/ruby-2.1.6/lib/ruby/2.1.0/monitor.rb:199:in `unlock'
/Users/wchen/.rvm/rubies/ruby-2.1.6/lib/ruby/2.1.0/monitor.rb:199:in `mon_exit'
/Users/wchen/.rvm/rubies/ruby-2.1.6/lib/ruby/2.1.0/monitor.rb:213:in `ensure in mon_synchronize'
/Users/wchen/.rvm/rubies/ruby-2.1.6/lib/ruby/2.1.0/monitor.rb:213:in `mon_synchronize'
/Users/wchen/.rvm/gems/ruby-2.1.6@metasploit-framework/gems/activerecord-4.0.13/lib/active_record/connection_adapters/abstract/connection_pool.rb:264:in `connection'
/Users/wchen/.rvm/gems/ruby-2.1.6@metasploit-framework/gems/activerecord-4.0.13/lib/active_record/connection_adapters/abstract/connection_pool.rb:294:in `with_connection'
/Users/wchen/rapid7/msf/lib/msf/core/db_manager/connection.rb:123:in `connection_established?'
/Users/wchen/rapid7/msf/lib/msf/core/db_manager/connection.rb:6:in `active'
/Users/wchen/rapid7/msf/lib/msf/core/db_manager/event.rb:9:in `report_event'