milis/talimatname/genel/b/beef/talimat

49 lines
996 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
# Gerekler: ruby ruby-bundler sqlite python
# Grup: güvenlik
isim=beef
surum=0.4.7.0
devir=2
kaynak=
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"
# beef
mkdir -p "$PKG/usr/bin"
cat > "$PKG/usr/bin/$isim" << EOF
#!/bin/sh
cd /usr/share/$isim
exec ruby $isim "\${@}"
EOF
chmod +x "$PKG/usr/bin/$isim"
rm "$PKG/usr/share/$isim/install"
# desktop
mkdir -p "$PKG/usr/share/applications/"
cat > $PKG/usr/share/applications/$isim.desktop << BASLA
[Desktop Entry]
Name=Beef
Exec=gksu "sh -c "beef;${SHELL:-bash}""
Terminal=true
Icon=beef
Type=Application
Categories=Network;X-Komutan;
Version=1.0
BASLA
}