Comments (2)
Sure!
As I understand your comment, you use bytes internally, so you're asking me to ensure that bytes can be used without errors as well. If I've misunderstood, please let me know.
Additionally, I looked up misc.need_bytes
, but I found only util.packing._need_bytes
function.
I think it is a function that replaces str to bytes, whereas we need the opposite functionality for this issue.
Hence, I will use util.packing._need_text
or util.packing._decode
to solve this issue.
If the above is okay, I'll write PR for you!
from pwntools.
Thanks for the report. We usually deal with those by implicitly converting string arguments to bytes and only use bytes internally. There is misc.need_bytes
for this. Would you be willing to propose a pull request to fix this?
from pwntools.
Related Issues (20)
- Test windows-only features in CI
- SSHException("No authentication methods available") HOT 3
- DynELF._lookup returns GOT entry instead of PLT entry
- amd64 considered native architecture on i386
- `BitPolynom.__init__` does not allow bytes type
- `CorefileFinder.read` returns bytes instead of str type HOT 1
- `xor` function raises `TypeError: pop expected at least 1 argument, got 0` HOT 2
- Add the ability to specify custom shellcraft templates HOT 2
- Inconsistency detected by ld.so HOT 2
- can't find write-what-where gadgets HOT 2
- [docs bug] Beginning of documentation cuts off for some things (due to "}")
- [docs bug] Many "links to the source" in the docs just link to the file (and not the line)
- [Bug?] FileStructure.struntil one byte shorter for no apparent reason?
- [Windows] Using "Process" raises "AttributeError: module 'os' has no attribute 'getuid'" HOT 2
- context.cyclic_size doesn't update when using context.binary = ELF('./prog')
- Pwntools setup on Mac OS HOT 1
- ROP.call execve syscall ignores parameter HOT 5
- execve bug HOT 1
- libcdb print redundant information
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pwntools.