milis/talimatname/genel/b/beef/talimat

42 lines
974 B
Plaintext
Raw Normal View History

2017-10-27 20:46:27 +02:00
# Tanım: The Browser Exploitation Framework that focuses on the web browser
2017-06-27 12:34:43 +02:00
# URL: http://beefproject.com/
2017-12-22 23:19:06 +01:00
# Paketçi: yakar(aydin@komutan.org)
2017-10-27 20:46:27 +02:00
# Gerekler: ruby23 ruby23-bundler sqlite python
2017-12-22 23:19:06 +01:00
# Grup: güvenlik
2017-06-27 12:34:43 +02:00
2017-10-28 14:10:23 +02:00
isim=beef
surum=0.4.7.0
devir=1
kaynak=(beef_gemkur)
2017-06-27 12:34:43 +02:00
2017-10-27 23:59:41 +02:00
derle() {
2017-10-28 14:10:23 +02:00
if [ ! -d $DERLEME_KAYNAKDIZIN/$isim ];then
git clone http://github.com/beefproject/$isim.git $DERLEME_KAYNAKDIZIN/$isim
2017-06-27 12:34:43 +02:00
else
2017-10-28 14:10:23 +02:00
cd $DERLEME_KAYNAKDIZIN/$isim
2017-06-27 12:34:43 +02:00
git pull
cd -
fi
2017-10-28 14:10:23 +02:00
git clone "$DERLEME_KAYNAKDIZIN/$isim" "$PKG/usr/share/$isim"
cd "$PKG/usr/share/$isim"
2017-06-27 12:34:43 +02:00
mkdir -p "$PKG/usr/bin"
# beef_gemkur
cp $SRC/beef_gemkur $PKG/usr/bin
chmod +x "$PKG/usr/bin/beef_gemkur"
# beef
2017-10-28 14:10:23 +02:00
cat > "$PKG/usr/bin/$isim" << EOF
2017-06-27 12:34:43 +02:00
#!/bin/sh
#check if last gem (nokogiri) are installed?
if ! gem spec nokogiri > /dev/null 2>&1; then
/usr/bin/beef_gemkur
fi
# run beef
2017-10-28 14:10:23 +02:00
cd /usr/share/$isim
exec ruby-2.3 $isim "\${@}"
2017-06-27 12:34:43 +02:00
EOF
2017-10-28 14:10:23 +02:00
chmod +x "$PKG/usr/bin/$isim"
2017-06-27 12:34:43 +02:00
2017-10-28 14:10:23 +02:00
rm "$PKG/usr/share/$isim/install"
2017-06-27 12:34:43 +02:00
}