shell bypass 403

UnknownSec Shell

: /scripts/ [ drwxr-xr-x ]

name : cpan_config
#!/usr/bin/perl

# cpanel - scripts/cpan_config                     Copyright 2022 cPanel, L.L.C.
#                                                           All rights reserved.
# copyright@cpanel.net                                         http://cpanel.net
# This code is subject to the cPanel license. Unauthorized copying is prohibited

BEGIN { unshift @INC, '/usr/local/cpanel'; }

use strict;
use warnings;    # DO NOT REMOVE. NEEDED FOR PATH LOOKUP

use Cpanel::CleanINC       ();
use Cpanel::cPCPAN         ();
use Cpanel::cPCPAN::Config ();

if ( $> != 0 ) {
    die "Unable to set system CPAN::Config. Permission denied.\n";
}

my $cpanbasedir = '/home';

my $cpan = { 'basedir' => $cpanbasedir };

my $cpan_config = Cpanel::cPCPAN::fetch_config($cpan);

my $path = $INC{'warnings.pm'};
$path =~ s/\/warnings\.pm$//;
if ( !-e $path . '/CPAN' ) {
    mkdir $path . '/CPAN';
}

my $cpan_config_file = $path . '/CPAN/Config.pm';

my $now = time;
if ( -e $cpan_config_file ) {
    rename $cpan_config_file, $cpan_config_file . '.' . $now or die "Unable to archive $cpan_config_file: $!";
    print "Existing $cpan_config_file archived as ${cpan_config_file}.${now}\n";
}

if ( open my $conf_fh, '>', $cpan_config_file ) {
    my $localtime = localtime($now);
    print {$conf_fh} <<"EOM";
# This CPAN::Config was automatically generated using /usr/local/cpanel/scripts/cpan_config
# at $localtime
#
# If this Config.pm replaced an existing version, then it would be located at:
#     ${cpan_config_file}.${now}


# This is CPAN.pm's systemwide configuration file. This file provides
# defaults for users, and the values can be changed in a per-user
# configuration file.

EOM
    print {$conf_fh} qq{\$CPAN::Config = \{\n};
    foreach my $key ( sort keys %{$cpan_config} ) {
        print {$conf_fh} "  '$key' => ", neatvalue( $cpan_config->{$key} ), ",\n";
    }
    print {$conf_fh} "};\n1;\n__END__\n";
    close $conf_fh;
}

# stolen from MakeMaker; not taking the original because it is buggy;
# bugreport will have to say: keys of hashes remain unquoted and can
# produce syntax errors
sub neatvalue {
    my ($value) = @_;
    return 'undef' unless defined $value;
    my $ref_type = ref $value;
    unless ($ref_type) {
        $value =~ s/\\/\\\\/g;
        return "q[$value]";
    }
    if ( $ref_type eq 'ARRAY' ) {
        my ( @m, @neat );
        push @m, '[';
        foreach my $elem (@$value) {
            push @neat, "q[$elem]";
        }
        push @m, join ', ', @neat;
        push @m, ']';
        return join '', @m;
    }
    return "$value" unless $ref_type eq 'HASH';
    my ( @m, $key, $val );
    while ( ( $key, $val ) = each %$value ) {
        last unless defined $key;    # cautious programming in case (undef,undef) is true
        push( @m, "q[$key]=>" . neatvalue($val) );
    }
    return '{ ' . join( ', ', @m ) . ' }';
}

© 2025 UnknownSec
Web Design for Beginners | Anyleson - Learning Platform
INR (₹)
India Rupee
$
United States Dollar
Web Design for Beginners

Web Design for Beginners

in Design
Created by Linda Anderson
+2
5 Users are following this upcoming course
Course Published
This course was published already and you can check the main course
Course
Web Design for Beginners
in Design
4.25
1:45 Hours
8 Jul 2021
₹11.80

What you will learn?

Create any website layout you can imagine

Support any device size with Responsive (mobile-friendly) Design

Add tasteful animations and effects with CSS3

Course description

You can launch a new career in web development today by learning HTML & CSS. You don't need a computer science degree or expensive software. All you need is a computer, a bit of time, a lot of determination, and a teacher you trust. I've taught HTML and CSS to countless coworkers and held training sessions for fortune 100 companies. I am that teacher you can trust. 


Don't limit yourself by creating websites with some cheesy “site-builder" tool. This course teaches you how to take 100% control over your webpages by using the same concepts that every professional website is created with.


This course does not assume any prior experience. We start at square one and learn together bit by bit. By the end of the course you will have created (by hand) a website that looks great on phones, tablets, laptops, and desktops alike.


In the summer of 2020 the course has received a new section where we push our website live up onto the web using the free GitHub Pages service; this means you'll be able to share a link to what you've created with your friends, family, colleagues and the world!

Requirements

No prerequisite knowledge required

No special software required

Comments (0)

Report course

Please describe about the report short and clearly.

Share

Share course with your friends