ztrix / zio Goto Github PK
View Code? Open in Web Editor NEWunified io lib for pwning development written in python
License: Other
unified io lib for pwning development written in python
License: Other
support apps which connect network and then dup network_fd to stdin/stdout fd.
e.g. mailbox by cbmixx
Could you add python3 support?
膜拜蓝莲花菊苣> <
add hex mode, print_read = 'hex', print_write = 'hex'
support output turn on/off on the fly
from zio import *
io = zio(['ssh', '[email protected]'], stdin=TTY_RAW, stdout=TTY_RAW, timeout=5)
io.read_until('assword')
io.interact()
expected behavior: go through interact
what happened: timeout when read_until
I hope to add "BIN" and "UNBIN" into the "all" list
I am doing some CTF-style exercises about pwn
, and I wrote a script using zio
, and here is what I try to do:
Step 1. leak the real address of libc_start_main
in libc;
Step 2. leak some content of libc, such as version
and syscall
;
Suppose I already have a zio
object named io = zio((something))
To achieve this, I have to do io.write
twice(The program will read twice, of course), and they both end in \n
. However, the program does not get the second io.write()
. What I mean is that the buf is NULL and the result, stored in %rax
register, is ZERO, which means the program does not read successfully at all!
I could not figure out the reason and google did not help a lot. I have read the doc but it is not very detailed, and some functions like flush()
don't work.
The steps are like below:
io.write(1st shellcode)
--> success
io.read(real_addr_of_libc_start_main)
--> success
io.write(2nd shellcode)
--> program does not read 2nd shellcode successfully
io.read(some_content_in_libc)
-->
I really don't know why as this is the first time I use zio.Any help would be appreciated.
Thanks a lot.
Tgn
try running ...
zio zio vim
0ops!
like in telnetlib
rt
用zio时,发现io.interact之后程序无法用ctrl+c终止。
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.