milis/talimatname/genel/b/beef/talimat

48 lines
968 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-10-27 20:46:27 +02:00
# Paketçi: yakar (aydin@komutan.org)
# Gerekler: ruby23 ruby23-bundler sqlite python
2017-06-27 12:34:43 +02:00
name=beef
version=0.4.7.0
release=1
source=(beef_gemkur)
2017-10-27 23:59:41 +02:00
derle() {
2017-06-27 12:34:43 +02:00
if [ ! -d $DERLEME_KAYNAKDIZIN/$name ];then
git clone http://github.com/beefproject/$name.git $DERLEME_KAYNAKDIZIN/$name
else
cd $DERLEME_KAYNAKDIZIN/$name
git pull
cd -
fi
git clone "$DERLEME_KAYNAKDIZIN/$name" "$PKG/usr/share/$name"
cd "$PKG/usr/share/$name"
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/$name" << 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/$name
exec ruby-2.3 $name "\${@}"
2017-06-27 12:34:43 +02:00
EOF
chmod +x "$PKG/usr/bin/$name"
rm "$PKG/usr/share/$name/install"
}