Date: Fri, 28 Dec 2018 14:58:26 +0000 (UTC) From: Mateusz Piotrowski <0mp@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r488605 - in head/security: . peda peda/files Message-ID: <201812281458.wBSEwQOX001850@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: 0mp Date: Fri Dec 28 14:58:25 2018 New Revision: 488605 URL: https://svnweb.freebsd.org/changeset/ports/488605 Log: New port: security/peda: Python-based GDB extension for exploit development and debugging PEDA (Python Exploit Development Assistance for GDB) is a plugin for GDB. It extends GDB with a colorful text-based UI making it easier to work with the debugger. Note that PEDA requires that GDB is compiled with Python support. Its key features are: - Enhance the display of GDB: colorize and display disassembly codes, registers, memory information during debugging. - Add commands to support debugging and exploit development. WWW: http://ropshell.com/peda/ Reviewed by: mat Approved by: mat (mentor) Differential Revision: https://reviews.freebsd.org/D18433 Added: head/security/peda/ head/security/peda/Makefile (contents, props changed) head/security/peda/distinfo (contents, props changed) head/security/peda/files/ head/security/peda/files/pkg-message.in (contents, props changed) head/security/peda/pkg-descr (contents, props changed) head/security/peda/pkg-plist (contents, props changed) Modified: head/security/Makefile Modified: head/security/Makefile ============================================================================== --- head/security/Makefile Fri Dec 28 14:57:34 2018 (r488604) +++ head/security/Makefile Fri Dec 28 14:58:25 2018 (r488605) @@ -832,6 +832,7 @@ SUBDIR += pecl-scrypt SUBDIR += pecl-ssh2 SUBDIR += pecl-ssh2-0 + SUBDIR += peda SUBDIR += pev SUBDIR += pgpdump SUBDIR += pgpgpg Added: head/security/peda/Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/security/peda/Makefile Fri Dec 28 14:58:25 2018 (r488605) @@ -0,0 +1,46 @@ +# $FreeBSD$ + +PORTNAME= peda +DISTVERSIONPREFIX= v +DISTVERSION= 1.1-19 +DISTVERSIONSUFFIX= -g7f673be +CATEGORIES= security python + +MAINTAINER= 0mp@FreeBSD.org +COMMENT= Python-based GDB extension for exploit development and debugging + +LICENSE= CC-BY-NC-SA-3.0 +LICENSE_FILE= ${WRKSRC}/LICENSE + +RUN_DEPENDS= gdb>7.0:devel/gdb \ + nasm:devel/nasm \ + ${PYTHON_PKGNAMEPREFIX}six>0:devel/py-six@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}future>0:devel/py-future@${PY_FLAVOR} + +USES= python:2.6+,run + +USE_GITHUB= yes +GH_ACCOUNT= longld + +NO_ARCH= yes +NO_BUILD= yes + +SUB_FILES= pkg-message +SUB_LIST= LIBEXECDIR=${LIBEXECDIR} UTILITY_NAME=${UTILITY_NAME} + +OPTIONS_DEFINE= DOCS + +UTILITY_NAME= ${PORTNAME}.py +LIBEXECDIR= ${PREFIX}/libexec/${PORTNAME} + +do-install: + ${MKDIR} ${STAGEDIR}${LIBEXECDIR} + ${INSTALL_DATA} ${WRKSRC}/${UTILITY_NAME} ${STAGEDIR}${LIBEXECDIR} + ${MKDIR} ${STAGEDIR}${LIBEXECDIR}/lib + cd ${WRKSRC}/lib && ${COPYTREE_SHARE} \* ${STAGEDIR}${LIBEXECDIR}/lib + +do-install-DOCS-on: + ${MKDIR} ${STAGEDIR}${DOCSDIR} + cd ${WRKSRC} && ${INSTALL_DATA} README README.md python23-compatibility.md ${STAGEDIR}${DOCSDIR} + +.include <bsd.port.mk> Added: head/security/peda/distinfo ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/security/peda/distinfo Fri Dec 28 14:58:25 2018 (r488605) @@ -0,0 +1,3 @@ +TIMESTAMP = 1544002114 +SHA256 (longld-peda-v1.1-19-g7f673be_GH0.tar.gz) = eaff6f6ad164e7d503e7259a98fdf6b5917bae7facd8b60fcd9778287e898a8a +SIZE (longld-peda-v1.1-19-g7f673be_GH0.tar.gz) = 65469 Added: head/security/peda/files/pkg-message.in ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/security/peda/files/pkg-message.in Fri Dec 28 14:58:25 2018 (r488605) @@ -0,0 +1,16 @@ +Now that PEDA is installed it can be used with gdb(1). + +Run the following command in the gdb prompt to load the plugin: + +``` +source %%LIBEXECDIR%%/%%UTILITY_NAME%% +``` + +In order to load PEDA automatically on gdb(1) launch add the line mentioned +above to ~/.gdbinit: + +``` +echo "source %%LIBEXECDIR%%/%%UTILITY_NAME%%" >> ~/.gdbinit +``` + +Keep in mind that PEDA requires at least GDB 7.0 to work. Added: head/security/peda/pkg-descr ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/security/peda/pkg-descr Fri Dec 28 14:58:25 2018 (r488605) @@ -0,0 +1,13 @@ +PEDA (Python Exploit Development Assistance for GDB) is a plugin for GDB. It +extends GDB with a colorful text-based UI making it easier to work with the +debugger. + +Note that PEDA requires that GDB is compiled with Python support. + +Its key features are: + +- Enhance the display of GDB: colorize and display disassembly codes, + registers, memory information during debugging. +- Add commands to support debugging and exploit development. + +WWW: http://ropshell.com/peda/ Added: head/security/peda/pkg-plist ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/security/peda/pkg-plist Fri Dec 28 14:58:25 2018 (r488605) @@ -0,0 +1,10 @@ +libexec/peda/lib/config.py +libexec/peda/lib/nasm.py +libexec/peda/lib/shellcode.py +libexec/peda/lib/six.py +libexec/peda/lib/skeleton.py +libexec/peda/lib/utils.py +libexec/peda/peda.py +%%PORTDOCS%%%%DOCSDIR%%/README +%%PORTDOCS%%%%DOCSDIR%%/README.md +%%PORTDOCS%%%%DOCSDIR%%/python23-compatibility.md
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201812281458.wBSEwQOX001850>