milis/talimatname/genel/b/beef/talimat

48 lines
964 B
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# Tanım: The Browser Exploitation Framework that focuses on the web browser
# URL: http://beefproject.com/
# Paketçi: yakar (aydin@komutan.org)
# Gerekler: ruby23 ruby23-bundler sqlite python
isim=beef
surum=0.4.7.0
devir=1
kaynak=(beef_gemkur)
derle() {
if [ ! -d $DERLEME_KAYNAKDIZIN/$isim ];then
git clone http://github.com/beefproject/$isim.git $DERLEME_KAYNAKDIZIN/$isim
else
cd $DERLEME_KAYNAKDIZIN/$isim
git pull
cd -
fi
git clone "$DERLEME_KAYNAKDIZIN/$isim" "$PKG/usr/share/$isim"
cd "$PKG/usr/share/$isim"
mkdir -p "$PKG/usr/bin"
# beef_gemkur
cp $SRC/beef_gemkur $PKG/usr/bin
chmod +x "$PKG/usr/bin/beef_gemkur"
# beef
cat > "$PKG/usr/bin/$isim" << EOF
#!/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
cd /usr/share/$isim
exec ruby-2.3 $isim "\${@}"
EOF
chmod +x "$PKG/usr/bin/$isim"
rm "$PKG/usr/share/$isim/install"
}