Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
nu11secur1ty
GitHub Repository: nu11secur1ty/Kali-Linux
Path: blob/master/fake_vhost_domain/remove_debeliq.sh
1301 views
1
#!/usr/bin/bash
2
# Author V.Varbanovski @nu11secur1ty
3
#
4
#
5
# Fix apache
6
cd /etc/apache2/sites-available
7
mv 000-default.conf.backup 000-default.conf
8
9
echo "Type your fake domain, which you want to remove for example: 'kurec.com'"
10
read fuck_off
11
12
rm -rf /var/www/$fuck_off
13
14
echo "Type your conf which you want to remove for example: kurec.com.conf"
15
read gad_mrusen
16
rm -rf /etc/apache2/sites-available/$gad_mrusen
17
systemctl restart apache2
18
echo "Choice the line number which you want to delete"
19
cat -n /etc/hosts
20
echo "Copy and paste this command in to your session with your line number
21
for example: sed -i '5d' /etc/hosts"
22
exit 0;
23
24