• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[LINUX] Little Sitecloner-Script
#1
I just want to share a little script which I made.
You can use it to clone websites for offline use of websites or phishing-purposes.
I know that this is not a big thing, but it might be useful for some beginners

Code:
#!bin/sh

# wget Websitecloner-Script

echo Enter URL:
read URL
echo
echo Enter Download-Directory:   # if not existing it will be created
read DD
echo Do you want to clone the whole website or just the index.html? hole/index # type whole for the whole site and index for index.html
read WHOLE
if [ -d "$DD" ]
then
     cd $DD
else
     mkdir $DD
     cd $DD
fi
if $HOLE = whole
then
     wget -r --page-requisites --convert-links -U Mozilla -erobots=off -w 5 $URL
else
     wget --page-requisites --convert-links -U Mozilla -erobots=off -w 5 $URL
fi
echo
echo site cloned
  Reply


Forum Jump: