Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

3
  • 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 Commented Mar 16 at 20:45
  • 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.
    – maarten
    Commented Mar 17 at 3:07
  • That said, you can convert a byte string to text, and ignore errors by doing: b"\x99\x11@\x00".decode(errors="ignore")
    – maarten
    Commented Mar 17 at 3:07