Get current value of test case prior to submission. #619
-
I can't for the life of me, determine how this is done...consider the following block for fuzzing empd:
I need to get the current byte value of, 'request_len' for each test step / fuzz mutation request and convert it to an int, (i.e. int.from_bytes()) prior to sending the request. The issue I'm running into is deriving the current value of:
so that I can calculate its integer value and pass it as a size constraint to request_body:
How would I go about extracting out the current fuzz payload from the s_byte named request_len so that I can populate its integer value as a value to the size parameter? Thank you for any help in advance...much appreciated! |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments
-
It seems that it's not possible to get the mutated value of If I understand you correctly, maybe you can choose another way: mutate the |
Beta Was this translation helpful? Give feedback.
-
That worked! More specifically:
Thank you, @cq674350529 ! |
Beta Was this translation helpful? Give feedback.
-
fwiw, here's the epmd fuzzer in its entirety: https://gist.github.com/ninp0/f8d1e37b5c72fb127b92141698159532 Thanks again! |
Beta Was this translation helpful? Give feedback.
-
Cool, thanks for sharing! |
Beta Was this translation helpful? Give feedback.
It seems that it's not possible to get the mutated value of
request_len
in this initial stage.If I understand you correctly, maybe you can choose another way: mutate the
request_body
, then set therequest_len
based on the length ofrequest_body
. In this case, it's similar to thecontent-length
field used in HTTPPOST
request, wheres_size()
can be used.