Thursday 6 August 2015

Wget Recrusively with password encryption

This is a good script to download folders from a website.
Tweek the cut dirs to suit ur needs

[root]# cat svnget.sh

MyPASS=$(echo "ULLLjhsPpssjFGsmyMVpwtLwhdjdhjdhjLLDLDi9e##nsBBPPs=" |openssl enc -desx -base64 -d)

wget --user=sherif--password=${MyPASS} \
-e robots=off --cut-dirs=4 \
-nH \
--reject="index.html*"  --no-parent \
--recursive  $1

MyPASS=0
[root]#

No comments:

Post a Comment