This repository was archived by the owner on Jan 10, 2023. It is now read-only.
This repository was archived by the owner on Jan 10, 2023. It is now read-only.
Pull error connection #125
Open
Description
File "/home/fc_dev/python/Actions/attackTitan.py", line 29, in main
self.Console.pullShell("/sdcard/screen.png", "screen.png")
File "/home/fc_dev/python/Tools/shell.py", line 29, in pullShell
self.device.Pull(remote)
File "/home/fc_dev/python/adb/adb_commands.py", line 303, in Pull
self.filesync_handler.Pull(conn, device_filename, dest_file, progress_callback)
File "/home/fc_dev/python/adb/filesync_protocol.py", line 94, in Pull
for cmd_id, _, data in cnxn.ReadUntil((b'DATA',), b'DONE'):
File "/home/fc_dev/python/adb/filesync_protocol.py", line 243, in ReadUntil
cmd_id, header, data = self.Read(expected_ids + finish_ids)
File "/home/fc_dev/python/adb/filesync_protocol.py", line 215, in Read
self._Flush()
File "/home/fc_dev/python/adb/filesync_protocol.py", line 255, in _Flush
self.adb.Write(self.send_buffer[:self.send_idx])
AttributeError: 'NoneType' object has no attribute 'Write'
or other return error
File "main.py", line 5, in <module>
Titan.defaultAttackTitan()
File "/home/fc_dev/python/Actions/attackTitan.py", line 29, in Main
self.Console.pullShell("/sdcard/screen.png", "screen.png")
File "/home/fc_dev/python/Tools/shell.py", line 29, in pullShell
self.device.Pull(remote, local)
File "/home/fc_dev/python/adb/adb_commands.py", line 292, in Pull
filemode, _, _= self.Stat(device_filename)
File "/home/fc_dev/python/adb/adb_commands.py", line 326, in Stat
connection, device_filename)
File "/home/fc_dev/python/adb/filesync_protocol.py", line 64, in Stat
command, (mode, size, mtime) = cnxn.Read((b'STAT',), read_data=False)
File "/home/fc_dev/python/adb/filesync_protocol.py", line 215, in Read
self._Flush()
File "/home/fc_dev/python/adb/filesync_protocol.py", line 254, in _Flush
self.adb.Write(self.send_buffer[:self.send_idx])
File "/home/fc_dev/python/adb/adb_protocol.py", line 113, in Write
cmd, okay_data = self.ReadUntil(b'OKAY')
File "/home/fc_dev/python/adb/adb_protocol.py", line 135, in ReadUntil
self.remote_id, remote_id))
adb.adb_protocol.InvalidResponseError: Incorrect remote id, expected 52728 got 52729
my use pull script
adb.Pull("/sdcard/screen.png", "screen.png")
Weird i look the self.adb is not implemented method
i try to look for print(dir(self.adb))
the return
['__class__', '__delattr__', '__doc__', '__format__', '__getattribute__', '__hash__', '__init__', '__new__', '__reduce__', '__reduce_ex__', '__repr__', '__setattr__', '__sizeof__', '__str__', '__subclasshook__']
thank for looking
Metadata
Metadata
Assignees
Labels
No labels