Ultimate fourshared leecher!

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    #76
    working now...thanks bro...but the edited via_google.php has not have preview
    Last edited by Macneth; 07.04.12, 06:49.

    Comment


      #77
      Here is a fixation to make the script work again :D
      Just open func.inc.php & update the following functions, & done!

      PHP Code:
      function get_file_name($file)
      {
          
      $pattern '|<span id="fileNameTextSpan">(.*?)</span>|is';
          
      $match preg_match($pattern$file$matches);
          if(
      $match)
          {
                      return 
      $matches[1];
          }
          else
          {
              return 
      "unknown";
          }
      }
      function 
      get_file_size($file)
      {
      $pattern '|<span title="Size: (.*?)"><b>|is';
      $match preg_match($pattern$file$matches);
      if(
      $match)
      {
          return 
      $matches[1];
      }
      else
      {
          return 
      "unknown";
      }
          
      }
      function 
      fetch_url($url)
      {
      $ua "Mozilla/5.0 (Windows NT 6.1) AppleWebKit/535.19 (KHTML, like Gecko) Chrome/18.0.1025.152 Safari/535.19";
      $curl_handle curl_init();
      curl_setopt($curl_handle,CURLOPT_URL,$url);
      //curl_setopt($curl_handle,CURLOPT_CONNECTTIMEOUT,5);
      curl_setopt($curl_handle,CURLOPT_USERAGENT$ua);
      //curl_setopt($curl_handle,CURLOPT_FRESH_CONNECT, TRUE);
      curl_setopt($curl_handle,CURLOPT_REFERER"http://www.google.com");
      curl_setopt($curl_handle,CURLOPT_HEADERFALSE);
      curl_setopt($curl_handle,CURLOPT_RETURNTRANSFERTRUE);
      $fetch curl_exec($curl_handle);
      curl_close($curl_handle);
      return 
      $fetch;
      }
      function 
      get_download_url($file)
      {
          
      $match preg_match('|count="false"(.*?)href="(.*?)"></g:plusone>|is'$file$matches);
      if(
      $match)
      {
          return 
      $matches[2];
      }
      else
      {
          return 
      FALSE;
          
      }

      & make a new file download.php, put the below code

      PHP Code:
      <?php
      if(isset($_GET['loc']))
      {
      sleep(5);
      $boom base64_decode($_GET['loc']);
      echo 
      "<a href='$boom'>Click here to download this file</a>";
      }
      ?>
      & in initiate.php, link w/ the file just like ds

      PHP Code:
      echo "<div class='header'><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></div>"
      Hope dat helps...
      Last edited by softwarefreak; 16.04.12, 00:33.
      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

      Comment


        #78
        its working again now thanks softwarefreak
        just demo MusicFinder - Free mp3, video, file search and download!

        Comment


          #79
          Originally posted by archer View Post
          its working again now thanks softwarefreak
          just demo MusicFinder - Free mp3, video, file search and download!
          Thanks to you too for the backlinks : )

          BTW, remove the function get_preview_url() from your via_google.php script, it's resulting to a fatal error
          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

          Comment


            #80
            Can someone upload a initiate.php ? When I edit the code with that I get internal server error 500

            Comment


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

              ENJOY.
              Attached Files
              Last edited by arnage; 21.04.12, 19:21.

              Comment


                #82
                Originally posted by djshaon View Post
                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 Code:
                <?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>&nbsp;<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_filenameob_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 Code:
                <?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("|&amp;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&amp;bg=0xffffff&amp;leftbg=0xDB5502&amp;lefticon=0xFFFFFF&amp;rightbg=0x86AA46&amp;rightbghover=0x6C8D3A&amp;righticon=0xF2F2F2&amp;righticonhover=0xFFFFFF&amp;text=0xDB5502&amp;slider=0xDB5502&amp;track=0xFFFFFF&amp;border=0xDB5502&amp;loader=0xDB5502&amp;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 Code:
                <?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..
                Last edited by softwarefreak; 22.04.12, 09:32.
                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

                Comment


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

                  Comment


                    #84
                    Originally posted by Macneth View Post
                    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ノ刀ノイリ!

                    Comment


                      #85
                      Originally posted by metulj View Post
                      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

                      Comment


                        #86
                        Originally posted by softwarefreak View Post
                        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ノ刀ノイリ!

                        Comment


                          #87
                          tnx to 4sleecher .even though im not good in php. .softwarefreak script helps me to have a site. . :D

                          Comment


                            #88
                            bt how. tell us

                            Comment


                              #89
                              Here is a quick fix :D in a professional way :P
                              just open a fake account at *shared.com & put the details in the script below
                              PHP Code:
                              <?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'truetime() + 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
                              Last edited by softwarefreak; 23.04.12, 13:48.
                              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

                              Comment


                                #90
                                @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!

                                Comment

                                Working...
                                X