!C99Shell v. 2.0 [PHP 7 Update] [25.02.2019]!

Software: nginx/1.23.4. PHP/5.6.40-65+ubuntu20.04.1+deb.sury.org+1 

uname -a: Linux foro-restaurado-2 5.15.0-1040-oracle #46-Ubuntu SMP Fri Jul 14 21:47:21 UTC 2023
aarch64
 

uid=33(www-data) gid=33(www-data) groups=33(www-data) 

Safe-mode: OFF (not secure)

/home/scripts/pba/phc-read-only/misc/downloaded_php/   drwxrwxr-x
Free 83.26 GB of 96.73 GB (86.07%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     download_php.pl (1.74 KB)      -rw-rw-r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
#!/usr/bin/perl

use WWW::Mechanize

#Set up Meachanize object and proxy
$mech = new WWW::Mechanize ();
$mech->proxy (['https', 'http'], 'http://www-proxy.cs.tcd.ie:8080');

#Go to first page of results for "php" on sourceforge
$mech->get ('http://sourceforge.net/search/?words=php&type_of_search=soft&pmode=0&limit=100&offset=0');

do
{
    # $current_url is the url of the current search results page, update this and find all download links
    $current_url = $mech->uri ();
    @links = $mech->find_all_links (text => 'Download Now!');
    
    # loop through all download links and download where there is a 'direct link'
    foreach $link (@links)
    {
        print ("Navigating to ");
        print ($link->url ());    
        print ("\n");
        $mech->get ($link->url ());
        if ($mech->find_link (text => 'direct link'))
        {
            $mech->follow_link (text => 'direct link');
            $mech->uri () =~ m/.*\/(.*)$/;
            $filename = $1;
            print ("Downloading $filename\n");
            $filename =~ m/(.*)\..*/;
            $dirname = $1;
            `mkdir downloaded_php\/downloads\/$dirname\/`;
            $mech->save_content ("downloaded_php\/downloads\/$dirname\/$filename");
            
            # Attempt to untar, if that fails, attempt to unzip.  Remove file if either op succeeds.
            `tar -C downloaded_php\/downloads\/$dirname\/ -xvf downloaded_php\/downloads\/$dirname\/$filename`;
            if (!$?)
            {
                `rm downloaded_php\/downloads\/$dirname\/$filename`;
            }
            else
            {
                `unzip downloaded_php\/downloads\/$dirname\/$filename -ddownloaded_php\/downloads\/$dirname`;
                if (!$?)
                {
                    `rm downloaded_php\/downloads\/$dirname\/$filename`;
                }
            }
        }
        $mech->get ($current_url);
    }

    #Follow link to next page
    $test = $mech->find_link (text_regex => qr/Next ./);
    if ($test)
    {
        $mech->follow_link (text_regex => qr/Next ./);
    }

}
while ($test);

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ Read-Only ]

:: Make Dir ::
 
[ Read-Only ]
:: Make File ::
 
[ Read-Only ]

:: Go Dir ::
 
:: Go File ::
 

--[ c99shell v. 2.0 [PHP 7 Update] [25.02.2019] maintained by HackingTool | HackingTool | Generation time: 0.0042 ]--