Update sub_info.rb

GSoC/Meterpreter_Web_Console
Auxilus 2018-05-02 20:44:21 +05:30 committed by GitHub
parent c6df12dccb
commit 1c89bd80d9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 3 deletions

View File

@ -6,7 +6,6 @@
class MetasploitModule < Msf::Post
include Msf::Post::Common
include Msf::Post::File
include Msf::Post::Android::Priv
include Msf::Post::Android::System
@ -65,7 +64,7 @@ class MetasploitModule < Msf::Post
for code in 1..29 do
print_status("using code : #{code}")
block = su_exec("service call iphonesubinfo #{code}", datastore['SU_BINARY'])
value,tc = _val(block, code)
value,tc = get_val(block, code)
arr << [tc, value]
end
@ -84,7 +83,7 @@ class MetasploitModule < Msf::Post
print_line(tc_tbl.to_s)
end
def _val(data, code)
def get_val(data, code)
parsed = data.gsub(/Parcel/, '')
string = ''
100.times do |i|