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

{{RANDOM}} usage in hex field #42

Closed
sadortun opened this issue May 27, 2016 · 4 comments
Closed

{{RANDOM}} usage in hex field #42

sadortun opened this issue May 27, 2016 · 4 comments
Assignees

Comments

@sadortun
Copy link

Hi !

It would be nice to be able to specify bytes that should be replaced with a random value in the HEX field.

Example : 00 ab cd ef 10 RR RR cc

Each bytes with a R value could be replaced by a random byte size value.

@sadortun
Copy link
Author

In addition, it would be even more awesome if we could also have a UNIQUE field.

For example: 00 ab cd ef 10 UU UU cc would replace the contiguous U with a unique value. If all values are exhausted, you could wrap around.

@dannagle dannagle self-assigned this May 28, 2016
@dannagle
Copy link
Owner

This is an interesting idea, but I think it is a bit narrow. There are higher priority requests I would do before I'd try to do this one.

@sadortun
Copy link
Author

Thanks for your quick answer. I might be able to submit a PR next week. Can you point me out where would be the right place to do the decoding and replacement ?

@dannagle
Copy link
Owner

Take a look at the function QString Packet::macroSwap(QString data)

It is in file packet.cpp, line 623

dannagle added a commit that referenced this issue Aug 6, 2017
@dannagle dannagle closed this as completed Aug 8, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants