Class: Rex::Proto::ADB::Client
- Inherits:
-
Object
- Object
- Rex::Proto::ADB::Client
- Defined in:
- lib/rex/proto/adb/client.rb
Instance Method Summary collapse
- #connect ⇒ Object
- #exec_cmd(cmd) ⇒ Object
-
#initialize(sock, opts = {}) ⇒ Client
constructor
A new instance of Client.
- #read_message ⇒ Object
Constructor Details
#initialize(sock, opts = {}) ⇒ Client
Returns a new instance of Client.
10 11 12 13 14 |
# File 'lib/rex/proto/adb/client.rb', line 10 def initialize(sock, opts = {}) @sock = sock @opts = opts @local_id_counter = 0x0a end |
Instance Method Details
#connect ⇒ Object
16 17 18 |
# File 'lib/rex/proto/adb/client.rb', line 16 def connect ADB::Message::Connect.new.send_recv(@sock) end |