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

Software: Apache/2.2.22 (Debian). PHP/5.6.36 

uname -a: Linux h05.hvosting.ua 4.9.110-amd64 #3 SMP Sun Nov 4 16:27:09 UTC 2018 x86_64 

uid=1389(h33678) gid=1099(h33678) groups=1099(h33678),502(mgrsecure) 

Safe-mode: OFF (not secure)

/usr/sbin/   drwxr-xr-x
Free 1.51 GB of 7.22 GB (20.97%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     xconv.pl (3.89 KB)      -rwxr-xr-x
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
#!/usr/bin/perl
#/*
# * (c) Copyright 1998-2001 by Rob Braun
# * All rights reserved.  The file named COPYRIGHT specifies the terms
# * and conditions for redistribution.
# */

# $RCSid = "$Id: xconv.pl,v 1.3 2005/03/29 15:50:34 bbraun Exp $";

sub print_header;
sub print_defaults;


print_header;
print_defaults;

while( <STDIN> ) {

    $disable = 0;                    # Default to 'enable'

    chomp;

    # Check for disable before we check for comments
    if (m/^\#<off>\#/i) {
        s/^.*?\s//;
        $disable = 1;
    }

    # Remove comment lines
    if( grep /^#/, $_ ) {
        next;
    }

    @command = split ;

    if( !defined $command[0] ) {
        next;
    }

    if( grep /rpc/, $command[2] ) {
        print STDERR "Warning: Service $command[0] not added because\n";
        print STDERR "xinetd does not handle rpc services well\n";
        next;
    }

    print "service $command[0]\n";
    print "{\n";
    print "\tsocket_type = $command[1]\n";
    print "\tprotocol    = $command[2]\n";
    if( $command[0] =~ /^\d+$/ ) {
        print "\tport        = $command[0]\n";
        print "\ttype        = UNLISTED\n";
    }
    if( grep /no/, $command[3] ) {
        print "\twait        = no\n";
    } else {
        print "\twait        = yes\n";
    }
    @user = split /[:\.]/, $command[4];
    print "\tuser        = $user[0]\n";
    if( defined $user[1] ) {
        print "\tgroup       = $user[1]\n";
    }
    # Amanda is a special case, it needs this, see
    # http://www.amanda.org/docs/install.html and 
    # Bug report #167367
    if ( $command[6] =~ /(amandad|amindexd|amidxtaped)/ ) {
        print "\tgroups      = yes\n";
    }
    if( grep /internal/, $command[5] ) {
        print "\ttype        = INTERNAL\n";
        print "\tid          = $command[0]-$command[1]\n";
    } elsif ( $command[5] =~ /\/usr\/sbin\/tcpd/ ){
    # Tcp wrapping is already implemented in xinetd
        print "\tserver      = $command[6]\n";
        if ( defined $command[7] ) {
            print "\tserver_args = ";
            $i = 7;
            while( defined $command[$i] ) {
                print "$command[$i] ";
                $i++;
            }
            print "\n";
        }
    
    } else {
        print "\tserver      = $command[5]\n";
        print "\tserver_args = ";

        $i = 6;
        while( defined $command[$i] ) {
            print "$command[$i] ";
            $i++;
        }

        print "\n";
    }

    if ($disable) {
        print "\tdisable     = yes\n";
    }

    print "}\n";
    print "\n";
}

sub print_defaults
{
    print "# The defaults section sets some information for all services\n";
    print "defaults\n";
    print "{\n";
    print "\t#The maximum number of requests a particular service may handle\n";
    print "\t# at once.\n";
    print "\tinstances   = 25\n";
    print "\n";
    print "\t# The type of logging.  This logs to a file that is specified.\n";
    print "\t# Another option is: SYSLOG syslog_facility [syslog_level]\n";
    print "\tlog_type    = FILE /var/log/servicelog\n";
    print "\n";
    print "\t# What to log when the connection succeeds.\n";
    print "\t# PID logs the pid of the server processing the request.\n";
    print "\t# HOST logs the remote host's ip address.\n";
    print "\t# USERID logs the remote user (using RFC 1413)\n";
    print "\t# EXIT logs the exit status of the server.\n";
    print "\t# DURATION logs the duration of the session.\n";
    print "\tlog_on_success = HOST PID\n";
    print "\n";
    print "\t# What to log when the connection fails.  Same options as above\n";
    print "\tlog_on_failure = HOST\n";
    print "\n";
    print "\t# The maximum number of connections a specific IP address can\n";
    print "\t# have to a specific service.  \n";
    print "\tper_source  = 5\n";

    print "}\n";
    print "\n";
}

sub print_header
{
    print "# This file generated by xconv.pl, included with the xinetd\n";
    print "# package.  xconv.pl was written by Rob Braun (bbraun\@synack.net)\n";
    print "#\n";
    print "# The file is merely a translation of your inetd.conf file into\n";
    print "# the equivalent in xinetd.conf syntax.  xinetd has many \n";
    print "# features that may not be taken advantage of with this translation.\n";
    print "# Please refer to the xinetd.conf man page for more information \n";
    print "# on how to properly configure xinetd.\n";
    print "\n";
    print "\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.0 [PHP 7 Update] [25.02.2019] maintained by PinoyWH1Z | C99Shell Github | Generation time: 0.036 ]--