bin bash SESS tmp uplink curl -c SESS -b SESS -L http depositfiles com

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
#!/bin/bash
SESS=/tmp/uplink
k=`curl -c $SESS -b $SESS -L http://depositfiles.com/ru/login.php --data 'go=1&login=$2&password=$3' 2>/dev/null`
page=`curl -c $SESS -b $SESS -L http://depositfiles.com/ru/ 2>/dev/null`
upurl=`echo "$page" | egrep -o 'enctype="multipart/form-data" action="[^"]+' | egrep -o 'http://.+'`
upidr=`echo "$page" | egrep -o 'name="UPLOAD_IDENTIFIER" value="[^"]+' | egrep -o 'value="[^"]+' | egrep -o '"[^"]+' | egrep -o '[^"]+'`
if [ "$upurl" ]; then
page=`curl -c $SESS -b $SESS -F "MAX_FILE_SIZE=2097152000" -F "UPLOAD_IDENTIFIER=$upidr" -F "go=1" -F "receivers=" -F "email=" -F "agree=1" -F files="@$1" "$upurl" 2>/dev/null`
dlink=`echo "$page" | egrep -o "parent.ud_download_url = '[^']+" | egrep -o "'[^']+" | egrep -o "[^']+"`
echo "$dlink"
fi
`rm -rf $SESS`