From ca4e53ba272ab5ce1420a80852db7de5244a5d52 Mon Sep 17 00:00:00 2001 From: Anton Bolshakov Date: Wed, 12 Dec 2012 14:53:16 +0000 Subject: [PATCH] sipvicious: version bump, homedir path patch created --- net-analyzer/sipvicious/Manifest | 12 +- .../files/sipvicious-0.2.8-path.patch | 163 ++++++++++++++++++ .../sipvicious/files/sipvicious-gentoo.patch | 69 -------- .../sipvicious/sipvicious-0.2.6-r1.ebuild | 36 ---- .../sipvicious/sipvicious-0.2.8.ebuild | 36 ++++ .../base/package.accept_keywords/net-analyzer | 2 +- 6 files changed, 206 insertions(+), 112 deletions(-) create mode 100644 net-analyzer/sipvicious/files/sipvicious-0.2.8-path.patch delete mode 100644 net-analyzer/sipvicious/files/sipvicious-gentoo.patch delete mode 100644 net-analyzer/sipvicious/sipvicious-0.2.6-r1.ebuild create mode 100644 net-analyzer/sipvicious/sipvicious-0.2.8.ebuild diff --git a/net-analyzer/sipvicious/Manifest b/net-analyzer/sipvicious/Manifest index 5c3b0dddf..17a04e801 100644 --- a/net-analyzer/sipvicious/Manifest +++ b/net-analyzer/sipvicious/Manifest @@ -1,6 +1,6 @@ -AUX sipvicious-0.2.7-gentoo.patch 2713 RMD160 a85f01c5dc0b84a5e69449ce8f1589f1ab0359ae SHA1 09293829d29a5b5a0a7f6b28b0df32d0cb493534 SHA256 08cf5fcb6e5d13ed6cf61ffdfe02728cac17f1b0c24f1786ebb58e019d34ea3b -AUX sipvicious-gentoo.patch 2701 RMD160 7377d9a2d7008bc7239afeb64d33e1cf2d9d66ee SHA1 f98fbb9bc89daa7a7d761d2957091ce7072b2234 SHA256 797a3187ba5f151a3f1ded9b0f9ebb1adfbe421e4d826f83e2e42641398635e5 -DIST sipvicious-0.2.6.tar.gz 293952 RMD160 9d3cc109bbe90e390cb05b52466bfec033a4fc9e SHA1 f9698e39197a2d6743a78cdcda6de4dc545ec511 SHA256 1e25862cc9e81979e0d66e5fb298c8cfd17279e7dd683b1dd841dcf1dbc29cc8 -DIST sipvicious-0.2.7.tar.gz 281793 RMD160 c11717509ee0daa6f1e33d8d05171c34943097c9 SHA1 8ee2c70346466b3871b2171364881ebc6f8f1e3b SHA256 96fd41c1937f2e3af3ca2494906757aab8b012cc1abd9849339f5e5b0ac3a993 -EBUILD sipvicious-0.2.6-r1.ebuild 741 RMD160 0c12610eebbbca8a3e92bb648cb88fe02e2d4146 SHA1 10082ebbcbdf6ff1b6a3699c6b44899ced51edcf SHA256 37e131f57a9080ec021f74b4f700731a40ab8e562a029c58b4cf5d52cb02e3d6 -EBUILD sipvicious-0.2.7.ebuild 816 RMD160 98612faa996ca5bd2d54ec281c411511ca1f06f8 SHA1 1de1ede9c1b3d4ac56318f0b034bc1b5bb4a3558 SHA256 150123f0587df9809b0255532bf7c2f1b9c7e8f1edf385f68b3cde0826ad79fe +AUX sipvicious-0.2.7-gentoo.patch 2713 SHA256 08cf5fcb6e5d13ed6cf61ffdfe02728cac17f1b0c24f1786ebb58e019d34ea3b SHA512 0c711c33e55f247aa0280434a069e1c63290f7fae65d68302571cc3f2b7786e9f6bb8c7e8d650e91300820dd25c162a40f3e205b0e54b8cc4ce237065b49725f WHIRLPOOL 5e2e6f2241f2742168cb5d4c7680a8aa922e29595accda1ad2b3c5228a0b3132a4dc26ceb63ddfd1c9534a7bb98e033f9fb1b78f278d299de9f07863b387dc1c +AUX sipvicious-0.2.8-path.patch 8495 SHA256 47215a1002945a181b58fe9f7f68e55b2b352cacf38dd123155737be8d57bf47 SHA512 d32ad293a05a44bb88668ae80a1c4dcb030fbb017ed7c791c10df599e541f9fe2e1b70c7b3f3edc2f103a7be21b5f2a53e164c993a839d1b9a5527b247100a39 WHIRLPOOL 80bc4dfb47957fb4ae250290b3780630e7441415ee7eef5384b75ff7e0b70ab4a5dc5db9af53721b36f38789e61237e3dfcf78eff8059a9244ca8efe7fc496cc +DIST sipvicious-0.2.7.tar.gz 281793 SHA256 96fd41c1937f2e3af3ca2494906757aab8b012cc1abd9849339f5e5b0ac3a993 SHA512 4edf7a92bf07182d1a65f48c76474fde2083e764ff7c720a857fc5dafb056421c2bd82d09dd5b783b221cdd1a893e5c4e0d4f766e0cb71ce55909d04f229d464 WHIRLPOOL 832d31b4174cabf08b61989dbf55de628dcfa246f979c53b15b3c8e435491a36efa3677c0ff7c0f3aa0c321fd66bd0c5efc08c047e3e57d0c9a57143255d33ca +DIST sipvicious-0.2.8.tar.gz 80825 SHA256 b6b08bfa00413916ce2cba6f2f77c18e22b15ccb72e9eac00391836c2c1bd716 SHA512 b939cf579c40d477d562d77d3f271ac16eeef7a8d181ea783700f8b405d94df9d669f211d337386a6b8406ffa26c1de67b90b1edb2054b1c04f5422928c63473 WHIRLPOOL 09c4481bf976b7f90f00df16c5f69187202e363c0a2a40d56e9ab9e1ecd066ec05468c16940019c69bbbd3ef9b895a805116130a5960629b0165ca77eec7c85d +EBUILD sipvicious-0.2.7.ebuild 816 SHA256 150123f0587df9809b0255532bf7c2f1b9c7e8f1edf385f68b3cde0826ad79fe SHA512 db6a240729ce1f348cfd905ab605467c4d5a65ec203e2ee985ae64e0ec919e98cd463df6b1c91ab18d6c6f7740810a541cd1996a17aa01608daad87bcd22ea0e WHIRLPOOL 80b12b25ce2603e08033ca69ade2e4740e87cc36b7a275b6dae3a31ed62bb0d6676369d23b70f2bb99d6b92d00a361e0c4d31434009f4b26c41edbbd8e8b3a7f +EBUILD sipvicious-0.2.8.ebuild 856 SHA256 475fde4598e6f35752e1e3324b97085e54968b501e934bc59b25dc4bb6fee79f SHA512 1e09d29b23657f6fc08ff7e6c98cbab6c2e016fbc2e25d06d82f160abe1a2a39b75ee5b44203df1c9f89905f7a3236e02676aba40a427792f44ae2eeab8b43de WHIRLPOOL ca67c858e47468ed5254e2046c541e91075b7bf922c4496a3b634be6a31e95bea11e9dd7f1a8df90b3a40c3db3d3870d69d4e104ea5bb549fe4e3fcee4eb0952 diff --git a/net-analyzer/sipvicious/files/sipvicious-0.2.8-path.patch b/net-analyzer/sipvicious/files/sipvicious-0.2.8-path.patch new file mode 100644 index 000000000..044b35667 --- /dev/null +++ b/net-analyzer/sipvicious/files/sipvicious-0.2.8-path.patch @@ -0,0 +1,163 @@ +diff -urN sipvicious.orig/libs/svhelper.py sipvicious/libs/svhelper.py +--- sipvicious.orig/libs/svhelper.py 2012-12-10 20:38:17.000000000 +0800 ++++ sipvicious/libs/svhelper.py 2012-12-12 22:33:29.884627515 +0800 +@@ -772,7 +772,7 @@ + listresult = dict() + for sessiontype in sessiontypes: + if chosensessiontype in [None,sessiontype]: +- p = os.path.join('.sipvicious',sessiontype) ++ p = os.path.join(os.path.expanduser('~'),'.sipvicious',sessiontype) + if os.path.exists(p): + listresult[sessiontype] = os.listdir(p) + return listresult +@@ -784,7 +784,7 @@ + print "Type of scan: %s" % k + for r in listresult[k]: + sessionstatus = 'Incomplete' +- sessionpath=os.path.join('.sipvicious',k,r) ++ sessionpath=os.path.join(os.path.expanduser('~'),'.sipvicious',k,r) + dblen = '' + if count: + if k == 'svmap': +@@ -809,11 +809,11 @@ + sessionpath = list() + if chosensessiontype is None: + for sessiontype in sessiontypes: +- p = os.path.join('.sipvicious',sessiontype,chosensession) ++ p = os.path.join(os.path.expanduser('~'),'.sipvicious',sessiontype,chosensession) + if os.path.exists(p): + sessionpath.append(p) + else: +- p = os.path.join('.sipvicious',chosensessiontype,chosensession) ++ p = os.path.join(os.path.expanduser('~'),'.sipvicious',chosensessiontype,chosensession) + if os.path.exists(p): + sessionpath.append(p) + if len(sessionpath) == 0: +@@ -898,7 +898,7 @@ + if sessiontype is None: + log.debug('sessiontype is not specified') + for sessiontype in sessiontypes: +- p = os.path.join('.sipvicious',sessiontype,session) ++ p = os.path.join(os.path.expanduser('~'),'.sipvicious',sessiontype,session) + log.debug('trying %s' % p) + if os.path.exists(p): + log.debug('%s exists') +@@ -906,7 +906,7 @@ + sessionpath = p + break + else: +- p = os.path.join('.sipvicious',sessiontype,session) ++ p = os.path.join(os.path.expanduser('~'),'.sipvicious',sessiontype,session) + if os.path.exists(p): + sessionpath = p + if sessionpath is None: +diff -urN sipvicious.orig/svcrack.py sipvicious/svcrack.py +--- sipvicious.orig/svcrack.py 2012-12-10 20:38:17.000000000 +0800 ++++ sipvicious/svcrack.py 2012-12-12 22:37:26.677638967 +0800 +@@ -369,7 +369,7 @@ + logging.basicConfig(level=calcloglevel(options)) + logging.debug('started logging') + if options.resume is not None: +- exportpath = os.path.join('.sipvicious',__prog__,options.resume) ++ exportpath = os.path.join(os.path.expanduser('~'),'.sipvicious',__prog__,options.resume) + if os.path.exists(os.path.join(exportpath,'closed')): + logging.error("Cannot resume a session that is complete") + exit(1) +@@ -383,11 +383,11 @@ + options.resume = previousresume + options.verbose = previousverbose + elif options.save is not None: +- exportpath = os.path.join('.sipvicious',__prog__,options.save) ++ exportpath = os.path.join(os.path.expanduser('~'),'.sipvicious',__prog__,options.save) + logging.debug('Session path: %s' % exportpath) + + if options.resume is not None: +- exportpath = os.path.join('.sipvicious',__prog__,options.resume) ++ exportpath = os.path.join(os.path.expanduser('~'),'.sipvicious',__prog__,options.resume) + if not os.path.exists(exportpath): + logging.critical('A session with the name %s was not found'% options.resume) + exit(1) +@@ -398,7 +398,7 @@ + options.resume = previousresume + options.verbose = previousverbose + elif options.save is not None: +- exportpath = os.path.join('.sipvicious',__prog__,options.save) ++ exportpath = os.path.join(os.path.expanduser('~'),'.sipvicious',__prog__,options.save) + if len(args) != 1: + parser.error("provide one hostname") + else: +@@ -435,7 +435,7 @@ + crackargs = (rangelist,options.zeropadding,options.template,options.defaults,[options.username]) + if options.save is not None: + if options.resume is None: +- exportpath = os.path.join('.sipvicious',__prog__,options.save) ++ exportpath = os.path.join(os.path.expanduser('~'),'.sipvicious',__prog__,options.save) + if os.path.exists(exportpath): + logging.warn('we found a previous scan with the same name. Please choose a new session name') + exit(1) +diff -urN sipvicious.orig/svmap.py sipvicious/svmap.py +--- sipvicious.orig/svmap.py 2012-12-10 20:38:17.000000000 +0800 ++++ sipvicious/svmap.py 2012-12-12 22:44:17.333658837 +0800 +@@ -334,7 +334,7 @@ + ip4range, resumeFromIP, scanfromdb, dbexists, getTargetFromSRV + exportpath = None + if options.resume is not None: +- exportpath = os.path.join('.sipvicious',__prog__,options.resume) ++ exportpath = os.path.join(os.path.expanduser('~'),'.sipvicious',__prog__,options.resume) + if os.path.exists(os.path.join(exportpath,'closed')): + logging.error("Cannot resume a session that is complete") + exit(1) +@@ -348,12 +348,12 @@ + options.resume = previousresume + options.verbose = previousverbose + elif options.save is not None: +- exportpath = os.path.join('.sipvicious',__prog__,options.save) ++ exportpath = os.path.join(os.path.expanduser('~'),'.sipvicious',__prog__,options.save) + logging.basicConfig(level=calcloglevel(options)) + logging.debug('started logging') + scanrandomstore = None + if options.input is not None: +- db = os.path.join('.sipvicious',__prog__,options.input,'resultua') ++ db = os.path.join(os.path.expanduser('~'),'.sipvicious',__prog__,options.input,'resultua') + if dbexists(db): + scaniter = scanfromdb(db,options.method.split(',')) + else: +@@ -453,7 +453,7 @@ + scaniter = scanlist(iprange,portrange,options.method.split(',')) + if options.save is not None: + if options.resume is None: +- exportpath = os.path.join('.sipvicious',__prog__,options.save) ++ exportpath = os.path.join(os.path.expanduser('~'),'.sipvicious',__prog__,options.save) + if os.path.exists(exportpath): + logging.warn('we found a previous scan with the same name. Please choose a new session name') + exit(1) +diff -urN sipvicious.orig/svwar.py sipvicious/svwar.py +--- sipvicious.orig/svwar.py 2012-12-10 20:38:17.000000000 +0800 ++++ sipvicious/svwar.py 2012-12-12 22:43:12.557655690 +0800 +@@ -491,7 +491,7 @@ + logging.critical("The format string template is not correct. Please provide an appropiate one") + exit(1) + if options.resume is not None: +- exportpath = os.path.join('.sipvicious',__prog__,options.resume) ++ exportpath = os.path.join(os.path.expanduser('~'),'.sipvicious',__prog__,options.resume) + if os.path.exists(os.path.join(exportpath,'closed')): + logging.error("Cannot resume a session that is complete") + exit(1) +@@ -505,7 +505,7 @@ + options.resume = previousresume + options.verbose = previousverbose + elif options.save is not None: +- exportpath = os.path.join('.sipvicious',__prog__,options.save) ++ exportpath = os.path.join(os.path.expanduser('~'),'.sipvicious',__prog__,options.save) + if len(args) != 1: + parser.error("provide one hostname") + else: +@@ -539,7 +539,7 @@ + guessargs = (extensionstotry,options.zeropadding,options.template,options.defaults) + if options.save is not None: + if options.resume is None: +- exportpath = os.path.join('.sipvicious',__prog__,options.save) ++ exportpath = os.path.join(os.path.expanduser('~'),'.sipvicious',__prog__,options.save) + if os.path.exists(exportpath): + logging.warn('we found a previous scan with the same name. Please choose a new session name') + exit(1) diff --git a/net-analyzer/sipvicious/files/sipvicious-gentoo.patch b/net-analyzer/sipvicious/files/sipvicious-gentoo.patch deleted file mode 100644 index 88beba077..000000000 --- a/net-analyzer/sipvicious/files/sipvicious-gentoo.patch +++ /dev/null @@ -1,69 +0,0 @@ -diff -Naur sipvicious-0.2.4.orig/fphelper.py sipvicious-0.2.4/fphelper.py ---- sipvicious-0.2.4.orig/fphelper.py 2008-08-10 16:20:18.000000000 +0000 -+++ sipvicious-0.2.4/fphelper.py 2008-12-02 14:58:22.000000000 +0000 -@@ -70,7 +70,7 @@ - cPickle.dump(dynamicmatch,output) - output.close() - --def fpdynamicstore(servername,regex,fpfile="totag"): -+def fpdynamicstore(servername,regex,fpfile="/usr/lib/sipvicious/totag"): - import shelve,os,logging - log = logging.getLogger('fpdynamicstore') - if regex is not None: -@@ -82,7 +82,7 @@ - except OSError: - return - --def fpexists(fpname,fpfile="totag"): -+def fpexists(fpname,fpfile="/usr/lib/sipvicious/totag"): - import shelve,logging - log = logging.getLogger("fpexists") - try: -@@ -95,7 +95,7 @@ - dynamicmatch.close() - return r - --def fpdynamic(dyn,fpfile="totag"): -+def fpdynamic(dyn,fpfile="/usr/lib/sipvicious/totag"): - import shelve - import logging - log = logging.getLogger("fpdynamic") -@@ -147,7 +147,7 @@ - orderhash = '' - return totalhashed,orderhash,hashedheaders - --def fpstatic(buffer,fullfn='staticfull',headersfn='staticheaders'): -+def fpstatic(buffer,fullfn='/usr/lib/sipvicious/staticfull',headersfn='/usr/lib/sipvicious/staticheaders'): - totalhashed,orderhashed,hashedheaders = hashstatic(buffer) - import shelve - fulldb = shelve.open(fullfn,writeback=True) -@@ -184,7 +184,7 @@ - return True - - --def fpstore(servername,fullhash,headerhashes,fullfn='staticfull',headersfn='staticheaders'): -+def fpstore(servername,fullhash,headerhashes,fullfn='/usr/lib/sipvicious/staticfull',headersfn='/usr/lib/sipvicious/staticheaders'): - import shelve,logging - log = logging.getLogger("fpstore") - fulldb = shelve.open(fullfn) -@@ -298,7 +298,7 @@ - splitbuff = buff.split(SEP,2) - return(splitbuff[0]) - --def groupwherepossible(fpnames,groupdb='groupdb'): -+def groupwherepossible(fpnames,groupdb='/usr/lib/sipvicious/groupdb'): - import shelve, logging, re - log = logging.getLogger('grouphwerepossible') - log.debug("entered") -diff -Naur sipvicious-0.2.4.orig/helper.py sipvicious-0.2.4/helper.py ---- sipvicious-0.2.4.orig/helper.py 2008-08-10 16:20:18.000000000 +0000 -+++ sipvicious-0.2.4/helper.py 2008-12-02 14:51:06.000000000 +0000 -@@ -818,7 +818,7 @@ - prefix='| ', postfix=' |',wrapfunc=lambda x: wrap_onspace(x,width)) - return o - --def outputtoxml(title,labels,db,resdb=None,xsl='sv.xsl'): -+def outputtoxml(title,labels,db,resdb=None,xsl='/usr/lib/sipvicious/sv.xsl'): - from xml.sax.saxutils import escape - o = '\r\n' - o += '\r\n' % escape(xsl) diff --git a/net-analyzer/sipvicious/sipvicious-0.2.6-r1.ebuild b/net-analyzer/sipvicious/sipvicious-0.2.6-r1.ebuild deleted file mode 100644 index 0feb8757d..000000000 --- a/net-analyzer/sipvicious/sipvicious-0.2.6-r1.ebuild +++ /dev/null @@ -1,36 +0,0 @@ -# Copyright 1999-2010 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: $ - -EAPI="2" - -inherit eutils - -DESCRIPTION="A voip pentest tools suite" -HOMEPAGE="http://code.google.com/p/sipvicious/" -SRC_URI="http://sipvicious.googlecode.com/files/${P}.tar.gz" - -LICENSE="GPL-2" -SLOT="0" -KEYWORDS="~amd64 ~ppc ~x86" -IUSE="" - -DEPEND="" -RDEPEND="" - -S="${WORKDIR}"/${PN} - -src_prepare() { - epatch "${FILESDIR}"/"${PN}"-gentoo.patch -} - -src_install() { - dodir /usr/lib/sipvicious - dodoc Changelog README THANKS TODO - rm -f Changelog README THANKS TODO - cp -pPR * "${D}"usr/lib/sipvicious/ || die - chown -R root:0 "${D}" - for file in `ls sv*.py`; do - dosym /usr/lib/sipvicious/${file} /usr/bin/${file} - done -} diff --git a/net-analyzer/sipvicious/sipvicious-0.2.8.ebuild b/net-analyzer/sipvicious/sipvicious-0.2.8.ebuild new file mode 100644 index 000000000..dc7698489 --- /dev/null +++ b/net-analyzer/sipvicious/sipvicious-0.2.8.ebuild @@ -0,0 +1,36 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +EAPI="4" + +inherit eutils + +DESCRIPTION="A voip pentest tools suite" +HOMEPAGE="http://code.google.com/p/sipvicious/" +SRC_URI="http://sipvicious.googlecode.com/files/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~x86" +IUSE="pdf" + +DEPEND="" +RDEPEND="pdf? ( dev-python/reportlab )" + +src_prepare() { + epatch "${FILESDIR}"/"${P}"-path.patch + find ./ -name .svn | xargs rm -r +} + +src_install() { + dodir /usr/share/sipvicious + dodoc Changelog README.md THANKS TODO + rm -f Changelog README.md THANKS TODO + chmod 655 svcrash.py + cp -pPR * "${D}"usr/share/sipvicious/ || die + chown -R root:0 "${D}" + for file in svmap.py svwar.py svcrack.py svreport.py svcrash.py; do + dosym /usr/share/sipvicious/${file} /usr/bin/${file} + done +} diff --git a/profiles/pentoo/base/package.accept_keywords/net-analyzer b/profiles/pentoo/base/package.accept_keywords/net-analyzer index 5f1adf0db..6b6520b94 100644 --- a/profiles/pentoo/base/package.accept_keywords/net-analyzer +++ b/profiles/pentoo/base/package.accept_keywords/net-analyzer @@ -54,7 +54,7 @@ net-analyzer/nessus-plugins ~net-analyzer/rain-1.2.9_beta1 ~net-analyzer/rrdtool-1.4.7 ~net-analyzer/siphon-666-r1 -~net-analyzer/sipvicious-0.2.7 +~net-analyzer/sipvicious-0.2.8 ~net-analyzer/sqlninja-0.2.6_p1 ~net-analyzer/smtpmap-0.8.234_beta ~net-analyzer/sniffit-0.3.7