2018-06-09 00:06:58 +02:00
|
|
|
|
# Tanım: WordPress zafiyet tarayıcısı
|
|
|
|
|
# URL: http://wpscan.org
|
2018-11-06 23:42:42 +01:00
|
|
|
|
# Paketçi: yakar
|
|
|
|
|
# Gerekler: ruby-bundler libxslt yaml curl libxml2
|
2018-07-26 09:06:06 +02:00
|
|
|
|
# Grup: güvenlik
|
2018-06-09 00:06:58 +02:00
|
|
|
|
|
|
|
|
|
isim=wpscan
|
2018-11-06 23:42:42 +01:00
|
|
|
|
surum=3.3.3
|
2018-06-09 00:06:58 +02:00
|
|
|
|
devir=1
|
2018-11-06 23:42:42 +01:00
|
|
|
|
kaynak=(https://github.com/wpscanteam/wpscan/archive/v${surum}.tar.gz::$isim-$surum.tar.gz)
|
2018-06-09 00:06:58 +02:00
|
|
|
|
|
|
|
|
|
derle() {
|
2018-11-06 23:42:42 +01:00
|
|
|
|
cd $SRC/${isim}-${surum}
|
|
|
|
|
bundle config build.nokogiri --use-system-libraries
|
2018-06-09 00:06:58 +02:00
|
|
|
|
|
2018-11-06 23:42:42 +01:00
|
|
|
|
install -d "${PKG}/opt/${isim}"
|
|
|
|
|
cp -ra --no-preserve=owner . "${PKG}/opt/${isim}"
|
2018-06-09 00:06:58 +02:00
|
|
|
|
|
2018-11-06 23:42:42 +01:00
|
|
|
|
install -d "${PKG}/usr/bin"
|
|
|
|
|
cat > "${PKG}/usr/bin/${isim}" << EOF
|
2018-06-09 00:06:58 +02:00
|
|
|
|
#!/bin/sh
|
2018-11-06 23:42:42 +01:00
|
|
|
|
BUNDLE_GEMFILE=/opt/${isim}/Gemfile bundle exec ruby /opt/${isim}/bin/${isim} "\$@"
|
2018-06-09 00:06:58 +02:00
|
|
|
|
EOF
|
2018-11-06 23:42:42 +01:00
|
|
|
|
chmod 755 "${PKG}/usr/bin/${isim}"
|
2018-06-09 00:06:58 +02:00
|
|
|
|
|
2018-11-06 23:42:42 +01:00
|
|
|
|
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
|
2018-06-09 00:06:58 +02:00
|
|
|
|
}
|