CTF中常用的zio模块笔记
来源:互联网 发布:怎么安装发票软件 编辑:程序博客网 时间:2024/06/10 14:20
哈哈。又到了写博客的时间了。
zio这个模块用了这么久,却一直没时间去看看 源码,真的是很可惜。
源码地址:https://github.com/zTrix/zio/blob/master/zio.py
建议大家去看看。
废话不多说让我们看看这个强大的工具都有哪些方法。
def COLORED(f, color = 'cyan', on_color = None, attrs = None): return lambda s : colored(f(s), color, on_color, attrs)
颜色还是挺常用的
我一般会这么初始化zio
io=zio(target,timeout=10000,print_read=COLORED(RAW,'red'),print_write=COLORED(RAW,'green'))
这些方法大家可以多去了解一下
def RAW(s): return str(s)
来看一下__init__
:
def __init__(self, target, stdin = PIPE, stdout = TTY_RAW, print_read = RAW, print_write = RAW, timeout = 8, cwd = None, env = None, sighup = signal.SIG_DFL, write_delay = 0.05, ignorecase = False, debug = None):
参数相当的多,不过常用的也就没几个
def print_write(self, value): def print_read(self, value): def interact(self, escape_character=chr(29), input_filter = None, output_filter = None, raw_rw = True): def writeline(self, s = ''): def write(self, s): def read(self, size = None, timeout = -1): def read_until_timeout(self, timeout = 0.05): def read_until(self, pattern_list, timeout = -1, searchwindowsize = None): def gdb_hint(self, breakpoints = None, relative = None, extras = None):
。。。这篇文章写得有点随意了。
不过还是希望大家多去看看源码,不要嫌烦哦。
阅读全文
0 0
- CTF中常用的zio模块笔记
- python zio库的ctf常用函数
- zfs的zio代码部分学习
- zfs的同步机制深究(zio层面)
- CTF比赛中必备的瑞士军刀ctf-tools
- 【CTF 攻略】CTF比赛中关于zip的总结
- CTF笔记
- CTF中常见的隐藏手段总结
- CTF比赛中关于zip的总结
- ctf学习中有用的网址
- ctf中php常见的考点
- sap MM模块中常用的表单
- python中常用的正则模块学习
- Python中常用的一些模块
- re 模块中常用的元字符
- Python中常用的模块--Log日志模块
- CTF常用python代码
- ctf-web常用网页
- tensorflow使用遇到的问题The TensorFlow library wasn't compiled to use SSE instructions, but these are avail
- 49. Group Anagrams
- BZOJ 1180: [CROATIAN2009]OTOCI (LCT题解)
- 第10节-Linux文件系统与目录树得关系
- CSS属性之浮动flow
- CTF中常用的zio模块笔记
- hibernate配置文件
- visual studio 使用C#语言进行MDI窗体创建
- G
- [水文]生成模型2
- 第11节-Linux EXT2/EXT3 文件的存取与日志式文件系统的功能
- sigmoid函数的求导
- 深搜
- C语言星号'*'意思,取值作用分析