milis/talimatname/genel/s/sqlmap/talimat

42 lines
879 B
Plaintext
Raw Normal View History

2017-10-27 20:46:27 +02:00
# Tanım: SQL enjeksiyon kusurlarını sömürme sürecini otomatikleştirin
2016-07-30 20:59:18 +02:00
# URL: http://sqlmap.org
2017-10-27 20:46:27 +02:00
# Paketçi: milisarge
# Gerekler: python
2016-07-30 20:59:18 +02:00
2017-10-28 14:10:23 +02:00
isim=sqlmap
surum=git
devir=1
kaynak=()
2016-07-30 20:59:18 +02:00
2017-10-27 23:59:41 +02:00
derle() {
2016-07-30 20:59:18 +02:00
git clone https://github.com/sqlmapproject/sqlmap.git
2017-10-28 14:10:23 +02:00
cd $isim
2016-07-30 20:59:18 +02:00
python2 -m compileall .
python2 -O -m compileall .
install -d "$PKG/etc"
install -d "$PKG/usr/bin"
2017-10-28 14:10:23 +02:00
install -d "$PKG/opt/$isim"
2016-07-30 20:59:18 +02:00
install -d "$PKG/usr/share/doc"
2017-10-28 14:10:23 +02:00
mv doc "$PKG/usr/share/doc/$isim"
2016-07-30 20:59:18 +02:00
mv sqlmap.conf "$PKG/etc/sqlmap.conf"
2017-10-28 14:10:23 +02:00
ln -sf /etc/sqlmap.conf "$PKG/opt/$isim/sqlmap.conf"
cp -R --no-preserve=ownership * "$PKG/opt/$isim"
2016-07-30 20:59:18 +02:00
cat > "$PKG/usr/bin/sqlmap" << EOF
#!/bin/sh
2017-10-28 14:10:23 +02:00
cd /opt/$isim
2016-07-30 20:59:18 +02:00
python2 sqlmap.py "\$@"
EOF
cat > "$PKG/usr/bin/sqlmapapi" << EOF
#!/bin/sh
2017-10-28 14:10:23 +02:00
cd /opt/$isim
2016-07-30 20:59:18 +02:00
python2 sqlmapapi.py "\$@"
EOF
chmod 755 "$PKG/usr/bin/sqlmap"
chmod 755 "$PKG/usr/bin/sqlmapapi"
}