Skip to main content
5 events
when toggle format what by license comment
Mar 17 at 3:07 comment added maarten That said, you can convert a byte string to text, and ignore errors by doing: b"\x99\x11@\x00".decode(errors="ignore")
Mar 17 at 3:07 comment added maarten The python str type is for readable text, byte is for binary data. Your payload needs to meet certain specifications such as having a specific byte length, having some data at specific offset.
Mar 16 at 20:45 comment added Zishan Ansari thanks for the help but didnot work! i added struck.pack but now python return bytes not str when use struct,pack but cannot concatenate with the padding i am trying to
S Mar 15 at 17:04 review First answers
Mar 16 at 9:52
S Mar 15 at 17:04 history answered maarten CC BY-SA 4.0