idb icon indicating copy to clipboard operation
idb copied to clipboard

dtxmsg.bin not found

Open AiXanadu opened this issue 3 years ago • 6 comments

290 | from utils import hexdump 291 | buf = open("dtxmsg.bin", "rb").read() + b'\x00' * 64 292 | sz = sizeof(DTXMessageHeader)

Here I see that you have loaded a dtxmsg.bin file, but I haven't found it in the project. How can I generate this file?

AiXanadu avatar Jun 04 '21 09:06 AiXanadu

it's the bytes sent on the wire, captured by mitm'ing the usbmuxd socket, and cropped into exactly one message for test purpose. see https://www.theiphonewiki.com/wiki/Usbmux for how it was done.

dkw72n avatar Jun 09 '21 03:06 dkw72n

it's the bytes sent on the wire, captured by mitm'ing the usbmuxd socket, and cropped into exactly one message for test purpose. see https://www.theiphonewiki.com/wiki/Usbmux for how it was done.

Do you mean that I have to find a way to build a binary file to run this program?

AiXanadu avatar Jun 09 '21 03:06 AiXanadu

This file is used as a lib and not meant to run by itself. Anyway, you can add the following code

def from_bytes(self, buffer: bytes):
    with open('dtxmsg.bin', 'wb') as fp:
        fp.write(buffer)
   ...

at https://github.com/dkw72n/idb/blob/45ce3a9663434aa87587576c6ca202ceb8679fe2/dtxlib.py#L92 and then run python app.py instrument sysmontap to generate a valid input file.

dkw72n avatar Jun 09 '21 04:06 dkw72n

I'm sorry, I don't quite understand you.

Can I ignore it and run it? If I can, how can I modify the code?

Because I don't understand python, some complex operations are difficult.

AiXanadu avatar Jun 09 '21 11:06 AiXanadu

两位国人为哈用英文交流?

sandin avatar Oct 01 '21 14:10 sandin

两位国人为哈用英文交流?

说的我无言以对~哈哈哈

AiXanadu avatar Oct 05 '21 01:10 AiXanadu