From 1c89bd80d99514d15f6b5c8211093cfd3d19e6e7 Mon Sep 17 00:00:00 2001 From: Auxilus Date: Wed, 2 May 2018 20:44:21 +0530 Subject: [PATCH] Update sub_info.rb --- modules/post/android/sub_info.rb | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/modules/post/android/sub_info.rb b/modules/post/android/sub_info.rb index ac87c4ea72..fa9200a699 100644 --- a/modules/post/android/sub_info.rb +++ b/modules/post/android/sub_info.rb @@ -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|