From 2305871d1e4059946833f2a844f33550968df47c Mon Sep 17 00:00:00 2001 From: milisbir Date: Wed, 7 Nov 2018 00:42:42 +0200 Subject: [PATCH] =?UTF-8?q?wpscan-g=C3=BCncellendi?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- talimatname/genel/w/wpscan/talimat | 43 ++++++++++++++--------- talimatname/genel/w/wpscan/wpscan.kur-kos | 3 ++ 2 files changed, 30 insertions(+), 16 deletions(-) diff --git a/talimatname/genel/w/wpscan/talimat b/talimatname/genel/w/wpscan/talimat index dbc332781..6a814ddbc 100644 --- a/talimatname/genel/w/wpscan/talimat +++ b/talimatname/genel/w/wpscan/talimat @@ -1,30 +1,41 @@ # Tanım: WordPress zafiyet tarayıcısı # URL: http://wpscan.org -# Paketçi: yakar_(aydin@komutan.org) -# Gerekler: ruby-bundler libxslt yaml curl +# Paketçi: yakar +# Gerekler: ruby-bundler libxslt yaml curl libxml2 # Grup: güvenlik isim=wpscan -surum=2.9.2 +surum=3.3.3 devir=1 -kaynak=(https://github.com/wpscanteam/wpscan/archive/${surum}.tar.gz https://github.com/wpscanteam/wpscan/commit/f6644eebf95baea3356290ecd6364f0a4a456406.patch) +kaynak=(https://github.com/wpscanteam/wpscan/archive/v${surum}.tar.gz::$isim-$surum.tar.gz) derle() { - cd $SRC/${isim}-${surum} - bundle config build.nokogiri --use-system-libraries - echo 2.3.3 > .ruby-version - patch -p1 < ../f6644eebf95baea3356290ecd6364f0a4a456406.patch + cd $SRC/${isim}-${surum} + bundle config build.nokogiri --use-system-libraries - install -d "${PKG}/opt/${isim}" - cp -ra --no-preserve=owner . "${PKG}/opt/${isim}" + install -d "${PKG}/opt/${isim}" + cp -ra --no-preserve=owner . "${PKG}/opt/${isim}" - install -d "${PKG}/usr/bin" - cat > "${PKG}/usr/bin/${isim}" << EOF + install -d "${PKG}/usr/bin" + cat > "${PKG}/usr/bin/${isim}" << EOF #!/bin/sh -BUNDLE_GEMFILE=/opt/${isim}/Gemfile bundle exec ruby /opt/${isim}/${isim}.rb "\$@" +BUNDLE_GEMFILE=/opt/${isim}/Gemfile bundle exec ruby /opt/${isim}/bin/${isim} "\$@" EOF - chmod 755 "${PKG}/usr/bin/${isim}" + chmod 755 "${PKG}/usr/bin/${isim}" - install -Dm 644 LICENSE -t "${PKG}/usr/share/licenses/${isim}" - install -Dm 644 CHANGELOG.md DISCLAIMER.txt README.md -t "${PKG}/usr/share/doc/${isim}" + install -Dm 644 LICENSE -t "${PKG}/usr/share/licenses/${isim}" + find "${PKG}" \( -name gem_make.out -or -name mkmf.log \) -delete + + # desktop + mkdir -p "$PKG/usr/share/applications/" + cat > $PKG/usr/share/applications/$isim.desktop << BASLA +[Desktop Entry] +Name=wpscan +Exec=sh -c "wpscan;${SHELL:-bash}" +Terminal=true +Icon=wpscan +Type=Application +Categories=Network;X-Komutan; +Version=1.0 +BASLA } diff --git a/talimatname/genel/w/wpscan/wpscan.kur-kos b/talimatname/genel/w/wpscan/wpscan.kur-kos index 22c573b36..cb357fec1 100644 --- a/talimatname/genel/w/wpscan/wpscan.kur-kos +++ b/talimatname/genel/w/wpscan/wpscan.kur-kos @@ -3,4 +3,7 @@ cd /opt/wpscan bundler install +#update +echo -n 'Updating wpscan database...' /usr/bin/wpscan --update >/dev/null 2>&1 +echo "done."