WIP checkin
parent
d891e27cdd
commit
5bf308e720
|
@ -43,7 +43,9 @@ class Console::CommandDispatcher::Android
|
||||||
'send_sms' => ['send_sms'],
|
'send_sms' => ['send_sms'],
|
||||||
'wlan_geolocate' => ['wlan_geolocate'],
|
'wlan_geolocate' => ['wlan_geolocate'],
|
||||||
'interval_collect' => ['interval_collect'],
|
'interval_collect' => ['interval_collect'],
|
||||||
'activity_start' => ['activity_start']
|
'activity_start' => ['activity_start'],
|
||||||
|
'sqlite_read' => ['sqlite_read'],
|
||||||
|
'sqlite_write' => ['sqlite_write']
|
||||||
}
|
}
|
||||||
|
|
||||||
# Ensure any requirements of the command are met
|
# Ensure any requirements of the command are met
|
||||||
|
@ -546,6 +548,34 @@ class Console::CommandDispatcher::Android
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def cmd_sqlite_write(*args)
|
||||||
|
results = client.android.sqlite_write("SELECT 1")
|
||||||
|
p results
|
||||||
|
end
|
||||||
|
|
||||||
|
def cmd_sqlite_read(*args)
|
||||||
|
path = "sqlite_read_#{Time.new.strftime('%Y%m%d%H%M%S')}.txt"
|
||||||
|
|
||||||
|
read_opts = Rex::Parser::Arguments.new(
|
||||||
|
'-h' => [ false, 'Help Banner' ],
|
||||||
|
'-o' => [ false, 'Output path for contacts list']
|
||||||
|
)
|
||||||
|
|
||||||
|
read_opts.parse(args) do |opt, _idx, val|
|
||||||
|
case opt
|
||||||
|
when '-h'
|
||||||
|
print_line('Usage: sqlite_read [options]')
|
||||||
|
print_line(read_opts.usage)
|
||||||
|
return
|
||||||
|
when '-o'
|
||||||
|
path = val
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
results = client.android.sqlite_read("")
|
||||||
|
p results
|
||||||
|
end
|
||||||
|
|
||||||
#
|
#
|
||||||
# Name for this dispatcher
|
# Name for this dispatcher
|
||||||
#
|
#
|
||||||
|
|
Loading…
Reference in New Issue