milis/talimatname/genel/s/sqlmap/talimat

55 lines
1.2 KiB
Plaintext
Raw Normal View History

2018-06-09 00:06:58 +02:00
# Tanım: SQL enjeksiyon kusurlarını sömürme sürecini otomatikleştirin
# URL: http://sqlmap.org
2018-11-06 05:56:48 +01:00
# Paketçi: milisarge yakar
2018-06-09 00:06:58 +02:00
# Gerekler: python
2018-07-30 10:04:40 +02:00
# Grup: sistem
2018-06-09 00:06:58 +02:00
isim=sqlmap
2018-11-06 05:56:48 +01:00
surum=1.2.11
2018-06-09 00:06:58 +02:00
devir=1
2018-11-06 05:56:48 +01:00
kaynak=(https://github.com/sqlmapproject/sqlmap/archive/$surum.tar.gz::$isim-$surum.tar.gz)
2018-06-09 00:06:58 +02:00
derle() {
2018-11-06 05:56:48 +01:00
cd $SRC/$isim-$surum
2018-06-09 00:06:58 +02:00
python2 -m compileall .
python2 -O -m compileall .
install -d "$PKG/etc"
install -d "$PKG/usr/bin"
install -d "$PKG/opt/$isim"
install -d "$PKG/usr/share/doc"
mv doc "$PKG/usr/share/doc/$isim"
mv sqlmap.conf "$PKG/etc/sqlmap.conf"
ln -sf /etc/sqlmap.conf "$PKG/opt/$isim/sqlmap.conf"
cp -R --no-preserve=ownership * "$PKG/opt/$isim"
cat > "$PKG/usr/bin/sqlmap" << EOF
#!/bin/sh
cd /opt/$isim
python2 sqlmap.py "\$@"
EOF
cat > "$PKG/usr/bin/sqlmapapi" << EOF
#!/bin/sh
cd /opt/$isim
python2 sqlmapapi.py "\$@"
EOF
chmod 755 "$PKG/usr/bin/sqlmap"
chmod 755 "$PKG/usr/bin/sqlmapapi"
2018-11-06 05:56:48 +01:00
# desktop
mkdir -p "$PKG/usr/share/applications/"
cat > $PKG/usr/share/applications/$isim.desktop << BASLA
[Desktop Entry]
Name=$isim
Exec=sh -c "$isim;${SHELL:-bash}"
Terminal=true
Icon=$isim
Type=Application
Categories=Network;X-Komutan;
Version=1.0
BASLA
2018-06-09 00:06:58 +02:00
}