From owner-svn-ports-all@freebsd.org Fri Dec 28 14:58:28 2018 Return-Path: Delivered-To: svn-ports-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id F2438143B21A; Fri, 28 Dec 2018 14:58:27 +0000 (UTC) (envelope-from 0mp@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 875088DD1D; Fri, 28 Dec 2018 14:58:27 +0000 (UTC) (envelope-from 0mp@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 78D6F24705; Fri, 28 Dec 2018 14:58:27 +0000 (UTC) (envelope-from 0mp@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id wBSEwRsl001858; Fri, 28 Dec 2018 14:58:27 GMT (envelope-from 0mp@FreeBSD.org) Received: (from 0mp@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id wBSEwQOX001850; Fri, 28 Dec 2018 14:58:26 GMT (envelope-from 0mp@FreeBSD.org) Message-Id: <201812281458.wBSEwQOX001850@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: 0mp set sender to 0mp@FreeBSD.org using -f From: Mateusz Piotrowski <0mp@FreeBSD.org> Date: Fri, 28 Dec 2018 14:58:26 +0000 (UTC) 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 X-SVN-Group: ports-head X-SVN-Commit-Author: 0mp X-SVN-Commit-Paths: in head/security: . peda peda/files X-SVN-Commit-Revision: 488605 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Rspamd-Queue-Id: 875088DD1D X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org X-Spamd-Result: default: False [-2.98 / 15.00]; local_wl_from(0.00)[FreeBSD.org]; NEURAL_HAM_MEDIUM(-1.00)[-0.999,0]; NEURAL_HAM_SHORT(-0.98)[-0.978,0]; NEURAL_HAM_LONG(-1.00)[-0.999,0]; ASN(0.00)[asn:11403, ipnet:2610:1c1:1::/48, country:US] X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 28 Dec 2018 14:58:28 -0000 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 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