Ultimate fourshared leecher!

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

#4shared-grabber

132 replies · 27,019 views · started 14 years ago · 1 min read

TL;DR · summary of 132 replies
  • ukitero needs to make the mobile version of the site and adjust the CSS width.
  • The issue with artist.php sometimes not showing downloadable results may be resolved by removing or disabling it, as it is an advanced feature unrelated to the 4shared grabber.
  • A new zip file has been shared that replaces via_google.php, which should show more search results for mp3 files.

Written automatically from the replies by a language model on our own server. It can be wrong; the posts below are the source.

35 participants
djshaon Junior · 19 posts #81

Hi bro . I made some changes on 4sleecher. And now it works both on mobile and pc. Here is the update file.

ENJOY.

softwarefreak Senior · 349 posts #82

djshaon wrote: Hi bro . I made some changes on 4sleecher. And now it works both on mobile and pc. Here is the update file.

ENJOY.

Thanks for your efforts, but it's not gonna work, untill 4shared finds the cookies of user logins in the browsers of the visitors

macneth is one way forward w/ a login button LOL

Added after 8 minutes:

Here is a via_google_v2 script for downloading latest mp3s w/ your site name

<?php
/*
4sleecher v1.0
(c)softwarefreak
contact@softwarefreak.in
*/
define("SF_IN_TEMP", FALSE);
require_once "func.inc.php";
if(isset($_GET['q']))
{
$q = trim($_GET['q']);
$q = clear_mess($q);

}

else

{
	$q = "";
}
$title = "Search results for - $q";
require_once "head.php";
//the file that was saved in the cache folder or the file to be saved
 $cache_filename = 'cache/'.md5($_SERVER['REQUEST_URI']);
//if,it exists,lets include it & save the resource
 if(load_cache(0, $cache_filename))
{
require_once $cache_filename;
}
else
{

if(isset($_GET['p']) && $_GET['p'] != "" && $_GET['p'] > 0)
{
	$p = (int)$_GET['p'];
}
else
{
$p = 0;
}
$start = $p*10;
$query = str_replace(" ", "+", $q);
$url = "http://www.google.com/cse?as_q=site:fisierulmeu.ro+download+$query+mp3&start=$start&filter=0";
$file = fetch_url($url);
//print_r($file);
$no_match = preg_match("/Your search(.*)did not match any documents/i", $file, $matches);
ob_start();

if($no_match)
{
	echo '<div class="links"><img src="delete.png" style="float:left;margin-right:5px;"/>No search results were found, please try with a different keyword...</div>';
	$spell = preg_match('/Did you mean:/', $file);
	if($spell)
	{
		$suggest = preg_match('/<b><i>(.*)<\/i><\/b>/i', $file, $suggestion);
		if($suggest)
		{
			$correct = strip_tags(trim(strtoupper($suggestion[1])));
	echo '<div class="sub"><img src="cp.png" style="float:left;margin-right:5px;"/>Did you mean? <a href="xml_api.php?q='.$correct.'"><font color="red">'.$correct.'</font></a></div>';
		}
	}
}
else
{
$pattern = '/<td nowrap align="right"><font size="-1">Results(.*)from/i';
$match = preg_match($pattern, $file, $m);
//print_r($m);
if($match)
{
$num = explode("<b>", $m[1]);
$total = str_ireplace("</b> of about", "", $num[2]);
$total = str_ireplace("of ", "", $total);
$page = str_ireplace("</b>", "", $num[3]);
$page = str_replace(",", "", $page);
$page = str_ireplace("from", "", $page);
$page = str_ireplace(" ", "", $page);
{
$chunk = explode('<a class="l" href="', $file);
$pages = count($chunk);
echo '<div class="header"><img src="next.png" style="float:left;margin-right:5px;"/>Search results for - '.strtoupper($q).' (files found - '.$page.')</div>';
include('simple_html_dom.php');
$html = str_get_html($file);

foreach($html->find('a[class=l]') as $e) 
{
	$e->plaintext = preg_replace('/\[?(www\.)?FisierulMeu\.ro\]?/i', '', $e->plaintext);
	$e->plaintext = str_ireplace('download ', '', $e->plaintext);
	$e->plaintext = str_ireplace(' ...', '', $e->plaintext);
	$e->plaintext = str_ireplace(' -', '', $e->plaintext);
	$e->href = str_ireplace('http://fisierulmeu.ro/', '', $e->href);
    echo "<div class='links'><a href='int.php?file=".base64_encode($e->href)."'><img src=\"ico/mp3.png\" style=\"float:left;margin-right:5px;\"/>".$e->plaintext;
echo "</div>";
}
$html->clear(); 
unset($html);
echo '<div class="header"><a href="?q='.$q.'&p='.($p-1).'"><button class="navbutton">Prev</button></a> <a href="?q='.$q.'&p='.($p+1).'"><button class="navbutton">Next</button></a></div>';
}
}
else
{
	echo '<div class="links"><img src="delete.png" style="float:left;margin-right:5px;"/>No search results were found, please try with a different keyword...</div>';
}
}
//grab the buffer, & save it to a file for caching
file_put_contents($cache_filename, ob_get_contents());  
ob_end_flush();
//flush the current buffer output
}
require_once 'all_about_music.php';
require_once 'last_search.php';
require_once 'extra.inc.php';
require_once "foot.php";
/*
4sleecher v1.0
(c)softwarefreak
contact@softwarefreak.in
*/
?>

& make another file int.php

<?php
/*
4sleecher v1.0
(c)softwarefreak
contact@softwarefreak.in
*/

require_once "func.inc.php";
$url = 'http://fisierulmeu.ro/'.base64_decode($_GET['file']);
$fetch = fetch_url($url);
$match = preg_match("|&soundFile=http://(.*?)'>|is", $fetch, $matches);
if($match)
{
$dl = $matches[1];
$dl = str_ireplace('www.fisierulmeu.ro', 'www.softwarefreak.in', $dl);
$dl = "http://".$dl;
?>
<html>
<body>
<?php
echo '
<center><h1 style="color: #808080;font-family: Tahoma, Arial, Verdana;font-weight: bold;">Music preview</h1>
        <script language="JavaScript" src="http://fisierulmeu.ro/player/audio-player.js"></script>
        <object type="application/x-shockwave-flash" data="http://fisierulmeu.ro/player/player.swf" id="audioplayer1" height="24" width="290">
        <param name="movie" value="http://fisierulmeu.ro/player/player.swf">
        <param name="FlashVars" value=\'playerID=1&bg=0xffffff&leftbg=0xDB5502&lefticon=0xFFFFFF&rightbg=0x86AA46&rightbghover=0x6C8D3A&righticon=0xF2F2F2&righticonhover=0xFFFFFF&text=0xDB5502&slider=0xDB5502&track=0xFFFFFF&border=0xDB5502&loader=0xDB5502&soundFile='.$dl.'\'>
        <param name="quality" value="high">
        <param name="menu" value="false">
        <param name="wmode" value="transparent">
        </object><br /><br />';
   
   echo "<a href='$dl' style='color: #808080;font-family: Tahoma, Arial, Verdana;font-weight: bold;font-size: 15px;'>Click here to download this file</a></center>";
    ?>
   </body>
</html>
    <?php
}
else
{
header("Location: 404.php");

exit;
}

?>

A DEMO: Search results for - akon

And here's another

open_index.php

<?php
error_reporting(0);
define("SF_IN_TEMP", FALSE);

if(isset ($_GET['q']))
{
 $q = strip_tags(trim(str_replace(' ', '+', $_GET['q'])));
 }
 else
 {
 $q = "akon";
 }
 $title = "Search results for - $q";
require_once 'head.php';
include_once('simple_html_dom.php');
$file = file_get_contents("http://openwebindex.com/mp3/$q/");
if(!empty($file))
{
$html = str_get_html($file);
$count = count($html->find('a[title]'));

echo '<div class="header"><img src="'.ROOT.'next.png" style="float:left;margin-right:5px;"/>Related files (found in public domains)</div>';
for ($i=1; $i < $count; $i++)
 { 

echo "<div class='links'><img src=\"".ROOT."ico/mp3.png\" style=\"float:left;margin-right:5px;\"/>".$html->find('a[title]', $i)."</div>";
}
}

$html->clear(); 
unset($html);

require_once 'all_about_music.php';
require_once 'last_search.php';
require_once "foot.php";
?>

DEMO: Search results for - akon

sharing is caring, ds is all I've for now..

I need some facebook likes, can you please help me 🤝 http://facebook.com/softwarefreakin I noticed social media is really powerful 🧙 Well DONE is better than well SAID

Macneth Junior · 15 posts #83

lol i cant fixed it by myself so i find a way my visitors still download the files hehe..btw thanks bro..

metulj Super moderator Principal · 1,726 posts #84

Macneth wrote: lol i cant fixed it by myself so i find a way my visitors still download the files hehe..btw thanks bro..

before you were begging, now you are bragging... but no share... good to know that

It's better to keep your mouth shut and give the impression that you're stupid, than to open it and remove all doubt. ⓣⓗⓔ ⓠⓤⓘⓔⓣⓔⓡ ⓨⓞⓤ ⓑⓔ©ⓞⓜⓔ, ⓣⓗⓔ ⓜⓞⓡⓔ ⓨⓞⓤ ⓐⓡⓔ ⓐⓑⓛⓔ ⓣⓞ ⓗⓔⓐⓡ ! ιη тнєσяу, тнє ρяα¢тι¢є ιѕ α яєѕυℓт σƒ тнє тнєσяу, вυт ιη ρяα¢тι¢є ιѕ тнє σρρσѕιтє.

キノgんイノ刀g 4 ア乇ムc乇 ノ丂 レノズ乇 キucズノ刀g 4 √ノ尺gノ刀ノイリ!

softwarefreak Senior · 349 posts #85

metulj wrote: before you were begging, now you are bragging... but no share... good to know that

It's coool, don't get angry, its just a html form code of 4shared login, with you user id & pass in hidden fields, so dat 4shared injects the cookies when they hit the button 🙂

I need some facebook likes, can you please help me 🤝 http://facebook.com/softwarefreakin I noticed social media is really powerful 🧙 Well DONE is better than well SAID

metulj Super moderator Principal · 1,726 posts #86

softwarefreak wrote: It's coool, don't get angry, its just a html form code of 4shared login, with you user id & pass in hidden fields, so dat 4shared injects the cookies when they hit the button :)

I'm not angry... it was just i was cleaned this topic today, and naturaly i've read replies..

It's better to keep your mouth shut and give the impression that you're stupid, than to open it and remove all doubt. ⓣⓗⓔ ⓠⓤⓘⓔⓣⓔⓡ ⓨⓞⓤ ⓑⓔ©ⓞⓜⓔ, ⓣⓗⓔ ⓜⓞⓡⓔ ⓨⓞⓤ ⓐⓡⓔ ⓐⓑⓛⓔ ⓣⓞ ⓗⓔⓐⓡ ! ιη тнєσяу, тнє ρяα¢тι¢є ιѕ α яєѕυℓт σƒ тнє тнєσяу, вυт ιη ρяα¢тι¢є ιѕ тнє σρρσѕιтє.

キノgんイノ刀g 4 ア乇ムc乇 ノ丂 レノズ乇 キucズノ刀g 4 √ノ尺gノ刀ノイリ!

ukitero Junior · 14 posts #87

tnx to 4sleecher .even though im not good in php. .softwarefreak script helps me to have a site. . 😀

softwarefreak Senior · 349 posts #89

Here is a quick fix 😀 in a professional way 😛 just open a fake account at *shared.com & put the details in the script below

<?php
//initiate.php
/*
4sleecher v1.0
(c)softwarefreak
contact@softwarefreak.in
*/
error_reporting(E_ALL);

define("SF_IN_TEMP", FALSE);
require_once "func.inc.php";
$url = 'http://www.4shared.com/'.$_GET['url'];
$fetch = fetch_url($url);
$download_url = get_download_url($fetch);
if($download_url != FALSE)
{
sleep(5);
$filename = trim(get_file_name($fetch));
$filesize = trim(get_file_size($fetch));
$title = $filename." - free download!";
if (isset($_COOKIE['login']) && $_COOKIE['login'] == true)
{
	$form = "<a href='/download.php?loc=".base64_encode($download_url)."' class='navbutton' style='padding:5px;display: block;width: 129px;height: 15px;font-size: 12px;' title='Click to download this file'>Download this file</a>";
}
else 
{
	setcookie('login', true, time() + 60 * 60 * 24 * 365, '/');
	
	$form = '<form name="theForm" target="_new" action="http://m.4shared.com/login.jsp" method="post">
<input type="hidden" name="login" value="softwarefreak@gmail.com"/>
<input type="hidden" name="password" value="password"/>
<input type="submit" class="formbutton" value="Download this file" onclick="document.getElementById(\'alert\').style.display=\'block\'" />
</form>';
}
require_once "head.php";
echo '<div class="links" style="display: none;" id="alert"><img src="/bulb.gif" style="float:left;margin-right:5px;" />Please refresh the page.</div>';
echo '<div class="header"><img src="/next.png" style="float:left;margin-right:5px;"/>'.$filename.' - free download</div>';
echo '<div class="links"><img src="/cp.png" style="float:left;margin-right:5px;"/> Filename: '.$filename.'</div>
<div class="links"><img src="/cp.png" style="float:left;margin-right:5px;"/> Filesize: '.$filesize.'</div>';
echo "<div class='header'>$form</div>";
$down_url = "http://softwarefreak.in/lol.php?loc=".base64_encode($download_url);
$adfly = @file_get_contents("http://api.adf.ly/api.php?key=ad9e2c647d18e0c12b64a03238a559b8&uid=1719990&advert_type=int&domain=adf.ly&url=$down_url");
//include_once "adsal.php";
//$toplist = array('http://surfwap.com/?site=softwarefreak.in', 'http://topwapi.com/?id=softwarefreakin', 'http://top.sendwap.com/?id=softwarefreakin', 'http://fixwap.net/en/?uid=118981');
//shuffle($toplist);
//$adsal = show_adsalvo_ads();
echo '<div class="links"><img src="/cp.png" style="float:left;margin-right:5px;"/>Download <a href="'.$adfly.'">'.$filename.'</a> from mirror site (blazing fast download speed) </div>';
echo '<div class="links">
<div class="addthis_toolbox addthis_default_style ">
<a class="addthis_button_preferred_1"></a>
<a class="addthis_button_preferred_2"></a>
<a class="addthis_button_preferred_3"></a>
<a class="addthis_button_preferred_4"></a>
<a class="addthis_button_compact"></a>
<a class="addthis_counter addthis_bubble_style"></a>
</div>
<script type="text/javascript" src="http://s7.addthis.com/js/250/addthis_widget.js#pubid=ra-4f38a88b64902144"></script>
</div>';
echo "<div class='sub'><b>PLEASE NOTE:</b><br />
".strtoupper($filename)." is free to download, click on \"Download this file\" button to save the file.<br />
This meta-search engine is no way intended for illegal downloading of files.<br />
The files are not hosted in this site, the download links are indexed from various file sharing websites.</div>";

}
else
{
	
require_once "head.php";
echo '<div class="links"><img src="/delete.png" style="float:left;margin-right:5px;"/>The server is busy, please try downloading after sometime or a different file.</div>';
}

require_once 'all_about_music.php';
require_once 'last_search.php';
require_once 'extra.inc.php';
require_once "foot.php";
/*
4sleecher v1.0
(c)softwarefreak
contact@softwarefreak.in
*/
?>

let me know if it's working for everybody 🔍 BTW, if you wana say thanks, hover your mouse over the google ads in my site 🏖️ LOL

I need some facebook likes, can you please help me 🤝 http://facebook.com/softwarefreakin I noticed social media is really powerful 🧙 Well DONE is better than well SAID

softwarefreak Senior · 349 posts #91

The Fox wrote: @Softwarefreak: Interesting but not work at all because when I login redirects to the folder of my account and not the file download link! LOL! 🔫

For the first time(if the script doesn't finds a coookie), of course it will get redirected to 4shared for the cookies 🙂

I need some facebook likes, can you please help me 🤝 http://facebook.com/softwarefreakin I noticed social media is really powerful 🧙 Well DONE is better than well SAID

Freddynic159 Junior · 43 posts #92

Ok! I understand, but I've seen in a page that uses the RapidLeech script which uses a 4shared account and need not be logged in to download the files, How is this possible? Use this page any Auto Login?

softwarefreak Senior · 349 posts #93

Hi, here is a new version of this script, but it has transformed to a mp3 search engine only

BTW, it uses a cookie file for getting the download links, I've supplied my cookie file inside the archive for demo, But I'd suggest u to make ur own by following this step

Download this chrome extension : https://chrome.google.com/webstore/detail/lopabhfecdfhgogdbojmaicoicjekelh It shows all the cookies in netscape http cookie file format

Install it

Clear all your cookies from the domain 4shared.com

Log in back to 4shared

Click on the extension u just installed

select all the text, copy & paste in file named cook.txt

edit this line

.4shared.com	TRUE	/	FALSE	1663161675	autoLogin	false

To

.4shared.com	TRUE	/	FALSE	1663161675	autoLogin	true

false >> true

Upload it to server, chmod to 777 & done

Demo: Musicoxplore | Free music download

I need some facebook likes, can you please help me 🤝 http://facebook.com/softwarefreakin I noticed social media is really powerful 🧙 Well DONE is better than well SAID

Attachments: 4sleecherv2.zip
hi_jakkk Developer · 52 posts #94

softwarefreak wrote: Hi, here is a new version of this script, but it has transformed to a mp3 search engine only

BTW, it uses a cookie file for getting the download links, I've supplied my cookie file inside the archive for demo, But I'd suggest u to make ur own by following this step

Download this chrome extension : https://chrome.google.com/webstore/detail/lopabhfecdfhgogdbojmaicoicjekelh It shows all the cookies in netscape http cookie file format

Install it

Clear all your cookies from the domain 4shared.com

Log in back to 4shared

Click on the extension u just installed

select all the text, copy & paste in file named cook.txt

edit this line

.4shared.com	TRUE	/	FALSE	1663161675	autoLogin	false

To

.4shared.com	TRUE	/	FALSE	1663161675	autoLogin	true

false >> true

Upload it to server, chmod to 777 & done

Demo: Musicoxplore | Free music download

Very well d0ne sir..:D Btw how many days or week it will works via your cookies?

Added after 58 minutes:

oh..error of dl.php We must need to put our cookies in able to fix that dload error?

softwarefreak Senior · 349 posts #95

oh..error of dl.php We must need to put our cookies in able to fix that dload error?

NO sir, there is already a cookie file inside which I'm using, U need to chmod it to 777 & make some edits in .htaccess, head.php, paste the demo url if you can

I need some facebook likes, can you please help me 🤝 http://facebook.com/softwarefreakin I noticed social media is really powerful 🧙 Well DONE is better than well SAID

hi_jakkk Developer · 52 posts #96

Warning: set_time_limit() has been disabled for security reasons in / home/u901209544/public_html/ engine/dl.php on line 2.

softwarefreak Senior · 349 posts #97

hi_jakkk wrote: Warning: set_time_limit() has been disabled for security reasons in / home/u901209544/public_html/ engine/dl.php on line 2.

Open dl.php & comment line 2

Just like this

//set_time_limit(0);

BTW, use eu5.org for free hosting its best I've found after using all the available free hosts

I need some facebook likes, can you please help me 🤝 http://facebook.com/softwarefreakin I noticed social media is really powerful 🧙 Well DONE is better than well SAID

ukitero Junior · 14 posts #98

my demo of this version ***** i got problem in dloading file in dl.php it shows blank page. .maybe it cause in com.nu hosting that not support curl. . Help me guyz.

Added after 7 minutes:

also getting this Fatal error: Call to undefined function curl_init() in /data/ multiserv/users/961305/ projects/2252486/www/ func.inc.php on line 55 maybe its in the host problem which not support curl. .

Macneth Junior · 15 posts #99

nicely done bro..im getting to use this if the last script you gave me will not work anymore.. By the way eu5 suspend me i dont know were using same script 🙂

softwarefreak Senior · 349 posts #100

Macneth wrote: nicely done bro..im getting to use this if the last script you gave me will not work anymore.. By the way eu5 suspend me i dont know were using same script :) bro, cuz u had more than 100 visitors online , its huge traffic for a freely hosted site 😛

I need some facebook likes, can you please help me 🤝 http://facebook.com/softwarefreakin I noticed social media is really powerful 🧙 Well DONE is better than well SAID

Write your reply now; next you create a free account (or sign in) and it is posted right away. 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