{ "info": { "author": "ps1337 / @CaptnBanana", "author_email": "ps1337@mailbox.org", "bugtrack_url": null, "classifiers": [ "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python :: 2" ], "description": "# pwntools-r2\n\nLaunch `radare2` from `pwntools`. This has been tested to work in combination with `tmux` - **other combinations may or may not work**. This *might* also work with other setups without `tmux` but that's not supported currently.\n\n![alt text](https://github.com/ps1337/r/blob/master/pwntools-r2/pwntools-r2-demo.gif?raw=true)\n\n## Ok How To Use This?\n\n- Create a new pipenv: `pipenv --python 2.7`\n- Install this: `pipenv install pwntools-r2`\n- Enter the virtual environment: `pipenv shell`\n- Code your 1337 exploit:\n\n```\n#!/usr/bin/env python2\n\nfrom pwntools_r2 import *\n\nr2script = \"\"\"\n#r2.cmd('db sym.main')\n#r2.cmd('aaa')\n#r2.cmd('V!')\n\"\"\"\n\np = r2dbg('./a', r2script=r2script)\np.interactive()\n```\n\nBe sure to not forget `interactive()` at the end :)\n\nPlease note that the commands for `r2` have to be prefixed with a `#`. If you want to pass additional parameters, you can use the same in the function prototype of `gdb.debug` from `pwntools`.\n\n- Do stuff: `python2.7 ./exploit.py`\n\n\n## Troubleshooting\n\n- You can debug any errors with `context.log_level = 'DEBUG'` via your `pwntools` python script.\n- If no terminal can be found, try setting `context.terminal` accordingly - e.g. to `urxvtc`\n\n\n# Credits\n\nThis is based on [this](https://gist.github.com/bannsec/43cf0f1b05ec37eb7e92a2922967bc46) and [this](https://github.com/Enigmatrix/pwntools-dbg-r2/tree/master/r2dbg).\n\n\n", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/ps1337/pwntools_r2", "keywords": "", "license": "", "maintainer": "", "maintainer_email": "", "name": "pwntools-r2", "package_url": "https://pypi.org/project/pwntools-r2/", "platform": "", "project_url": "https://pypi.org/project/pwntools-r2/", "project_urls": { "Homepage": "https://github.com/ps1337/pwntools_r2" }, "release_url": "https://pypi.org/project/pwntools-r2/1.3.3.8/", "requires_dist": [ "r2pipe", "pwntools" ], "requires_python": "", "summary": "Debug exploits like a boss with Radare2 in pwntools", "version": "1.3.3.8" }, "last_serial": 5584886, "releases": { "1.3.3.8": [ { "comment_text": "", "digests": { "md5": "0fdb0f7b253769f73c08f5cbd7cb8403", "sha256": "f4129a774f830a5962ab8dcfceed96d0ee72493e1e7694973c2cc2427788c122" }, "downloads": -1, "filename": "pwntools_r2-1.3.3.8-py2-none-any.whl", "has_sig": false, "md5_digest": "0fdb0f7b253769f73c08f5cbd7cb8403", "packagetype": "bdist_wheel", "python_version": "py2", "requires_python": null, "size": 3696, "upload_time": "2019-07-25T18:10:13", "url": "https://files.pythonhosted.org/packages/16/2e/b2a45210740dfc5a7e539816ded7bae894c7a01023cd8a63ef5a38f4e014/pwntools_r2-1.3.3.8-py2-none-any.whl" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "0fdb0f7b253769f73c08f5cbd7cb8403", "sha256": "f4129a774f830a5962ab8dcfceed96d0ee72493e1e7694973c2cc2427788c122" }, "downloads": -1, "filename": "pwntools_r2-1.3.3.8-py2-none-any.whl", "has_sig": false, "md5_digest": "0fdb0f7b253769f73c08f5cbd7cb8403", "packagetype": "bdist_wheel", "python_version": "py2", "requires_python": null, "size": 3696, "upload_time": "2019-07-25T18:10:13", "url": "https://files.pythonhosted.org/packages/16/2e/b2a45210740dfc5a7e539816ded7bae894c7a01023cd8a63ef5a38f4e014/pwntools_r2-1.3.3.8-py2-none-any.whl" } ] }