[new] 4shared.com download !

Started on the old forum in October 2012 · view the original in the archive · old links redirect here

3 replies · 2,174 views · started 14 years ago · 1 min read

3 participants
just_m3. Developer · 199 posts #1

New method to download from 4shared just check the attached script ! tnx.

<?php

//Set up constants used .
define('CALL_BACK','jQuery'); define('LOGIN','USER'); define('PASSWORD','DEMO');

// The link we download from !
$file='http://www.4shared.com/mp3/-QwopVGN/Connect-R_-_People__Radio_Edit.htm';

################# This line does everything (login 4shared) !! ##############
$url='http://www.4shared.com/login?callback='.urlencode(CALL_BACK).'&login='.urlencode(LOGIN).'&password='.urlencode(PASSWORD).'&doNotRedirect=false&fpRedirParam='.urlencode($file).'';

// Get cookie from header (they are already selected from array !)
$arr=get_headers($url, 1); 

// This one process cookie
function cookme($content){preg_match_all( '#=(?P<idses>.+?);#si', $content, $get ) ; return $get['idses'][0];}

//Check if curl extension is installed if not use file_get_contents.

 if ( in_array( "curl", get_loaded_extensions() ) ) {
   $crl = curl_init() ;
   curl_setopt ($crl, CURLOPT_URL,$file); 
   curl_setopt ($crl, CURLOPT_RETURNTRANSFER, 1); 

//------------------------------------------------------------------------------------
//-------------------------------------------------------------------------
//----------------------------------------------- 

Full demo script (the comments are in Romanian but i think that doesn't bother you as a programmer ! 😛

attached bellow:

This is ten percent luck, twenty percent skill Fifteen percent concentrated power of will Five percent pleasure, fifty percent pain 😂And a hundred percent reason to remember the name!

Attachments: Example.zip
ethanhunt Developer · 143 posts #2

Unable to understand..... anybody help me..... where is search box in script?

HUNT

just_m3. Developer · 199 posts #3

The title says 4shared.com download ! not grabber ! , the grabber you can make yourself , autologin helps you to download the file , i don't think this method was shared already so ->>> hit tnx !

This is ten percent luck, twenty percent skill Fifteen percent concentrated power of will Five percent pleasure, fifty percent pain 😂And a hundred percent reason to remember the name!

figol Newbie · 1 posts #4

thanxs brother 🙂

Sign in to reply.

Similar topics

Keyboard shortcuts

g f
Go to forums
g h
Go to your feed
g m
Go to messages
r
Reply (in a topic)
/
Search
j
Next post
k
Previous post
?
This list
Ctrl/⌘ + Enter
Send what you are writing
Ctrl/⌘ + B / I
Bold / italic while writing
Esc
Close