Open lhpqaq opened 6 months ago
Curious if this approach is going to be accepted? I'd also like to encrypt some data blocks post-mutation and just prior to sending. Will probably adopt this approach in the meantime - thanks @lhpqaq
Curious if this approach is going to be accepted? I'd also like to encrypt some data blocks post-mutation and just prior to sending. Will probably adopt this approach in the meantime - thanks @lhpqaq
My code might be a bit rudimentary, and the author may not choose to accept it.
Thanks for the PR! A few notes:
repeat.py
.Thanks for the PR! A few notes:
There is a way to do this with blocks: Create a block type that has an encode function. The encode function encodes data after mutation. For an example, see
repeat.py
.That said, I'm not entirely opposed to this approach.
One note on the PR: It seems like it might make sense not to have modified_data in the constructor. At least for the described use case, it seems like something you always set after construction.
Thanks. My understanding of boofuzz is not deep enough. I will continue to study it in the next few days.
Thanks for the PR! A few notes:
1. There is a way to do this with blocks: Create a block type that has an encode function. The encode function encodes data after mutation. For an example, see `repeat.py`.
Ahh nice! Hadn't realised we could call s_block("block2", encoder=encrypt_block2)
then encrypt_block2(block2)
gets called with the mutated block! Much simpler, thanks!
(I now see the iso8385.py example too!).
I made modifications to session.py to support obtaining and modifying the mutated version of the message before sending it. To encrypt the fields requiring encryption in the message, you can use the following method: