Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dtxmsg.bin not found #3

Open
AiXanadu opened this issue Jun 4, 2021 · 6 comments
Open

dtxmsg.bin not found #3

AiXanadu opened this issue Jun 4, 2021 · 6 comments

Comments

@AiXanadu
Copy link

AiXanadu commented Jun 4, 2021

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?

@dkw72n
Copy link
Owner

dkw72n commented Jun 9, 2021

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.

@AiXanadu
Copy link
Author

AiXanadu commented Jun 9, 2021

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?

@dkw72n
Copy link
Owner

dkw72n commented Jun 9, 2021

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

idb/dtxlib.py

Line 92 in 45ce3a9

def from_bytes(self, buffer: bytes):
and then run python app.py instrument sysmontap to generate a valid input file.

@AiXanadu
Copy link
Author

AiXanadu commented Jun 9, 2021

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.

@sandin
Copy link
Collaborator

sandin commented Oct 1, 2021

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

@AiXanadu
Copy link
Author

AiXanadu commented Oct 5, 2021

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

说的我无言以对~哈哈哈

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants