Hackfut Security File Manager
Current Path:
/usr/share/perl5
usr
/
share
/
perl5
/
📁
..
📄
AnyDBM_File.pm
(2.53 KB)
📁
App
📁
Archive
📁
Attribute
📄
AutoLoader.pm
(14.65 KB)
📄
AutoSplit.pm
(19.18 KB)
📁
B
📄
Benchmark.pm
(27.86 KB)
📁
CGI
📄
CGI.pm
(255.35 KB)
📄
CORE.pod
(1.53 KB)
📁
CPAN
📄
CPAN.pm
(144.4 KB)
📁
CPANPLUS
📄
CPANPLUS.pm
(7.1 KB)
📁
Carp
📄
Carp.pm
(7.43 KB)
📁
Class
📁
Config
📄
DB.pm
(18.75 KB)
📁
DBM_Filter
📄
DBM_Filter.pm
(14.08 KB)
📁
Date
📁
Devel
📁
Digest
📄
Digest.pm
(10.17 KB)
📄
DirHandle.pm
(1.89 KB)
📄
Dumpvalue.pm
(16.5 KB)
📁
Encode
📄
English.pm
(4.38 KB)
📄
Env.pm
(5.05 KB)
📄
Expect.pm
(53.44 KB)
📄
Expect.pod
(42.71 KB)
📁
Exporter
📄
Exporter.pm
(18.16 KB)
📁
ExtUtils
📄
Fatal.pm
(40.01 KB)
📁
File
📄
FileCache.pm
(5.44 KB)
📄
FileHandle.pm
(6.62 KB)
📁
Filter
📄
FindBin.pm
(5.53 KB)
📁
Getopt
📁
I18N
📁
IO
📁
IPC
📁
JSON
📁
Locale
📁
Log
📁
Math
📁
Memoize
📄
Memoize.pm
(34.47 KB)
📁
Module
📄
NEXT.pm
(18.05 KB)
📁
Net
📁
Object
📁
Package
📁
Params
📁
Parse
📁
PerlIO
📄
PerlIO.pm
(10.86 KB)
📁
Pod
📄
Safe.pm
(23.76 KB)
📁
Search
📄
SelectSaver.pm
(1.05 KB)
📄
SelfLoader.pm
(16.93 KB)
📄
Shell.pm
(8.48 KB)
📄
Switch.pm
(27.84 KB)
📄
Symbol.pm
(4.68 KB)
📁
TAP
📁
Term
📁
Test
📄
Test.pm
(28.13 KB)
📁
Test2
📄
Test2.pm
(6.24 KB)
📁
Text
📁
Thread
📄
Thread.pm
(8.09 KB)
📁
Tie
📁
Time
📄
UNIVERSAL.pm
(6.38 KB)
📁
Unicode
📁
User
📄
abbrev.pl
(838 B)
📄
assert.pl
(1.27 KB)
📄
attributes.pm
(14.53 KB)
📁
autodie
📄
autodie.pm
(11.49 KB)
📄
autouse.pm
(4.14 KB)
📄
base.pm
(6.82 KB)
📄
bigfloat.pl
(7.2 KB)
📄
bigint.pl
(8.75 KB)
📄
bigint.pm
(17.43 KB)
📄
bignum.pm
(18.24 KB)
📄
bigrat.pl
(4.37 KB)
📄
bigrat.pm
(14.1 KB)
📄
blib.pm
(2.06 KB)
📄
bytes.pm
(2.33 KB)
📄
bytes_heavy.pl
(758 B)
📄
cacheout.pl
(1.1 KB)
📄
charnames.pm
(15.3 KB)
📄
complete.pl
(3.12 KB)
📄
constant.pm
(12.23 KB)
📄
ctime.pl
(1.95 KB)
📄
diagnostics.pm
(16.97 KB)
📄
dotsh.pl
(2.12 KB)
📄
dumpvar.pl
(14.92 KB)
📁
encoding
📄
exceptions.pl
(1.7 KB)
📄
fastcwd.pl
(1019 B)
📄
feature.pm
(4.97 KB)
📄
fields.pm
(9.28 KB)
📄
filetest.pm
(3.91 KB)
📄
find.pl
(1.16 KB)
📄
finddepth.pl
(1.1 KB)
📄
flush.pl
(642 B)
📄
getcwd.pl
(1.39 KB)
📄
getopt.pl
(1.29 KB)
📄
getopts.pl
(1.37 KB)
📄
hostname.pl
(727 B)
📄
if.pm
(1.14 KB)
📄
importenv.pl
(283 B)
📄
integer.pm
(3.19 KB)
📄
less.pm
(3.01 KB)
📄
locale.pm
(820 B)
📄
look.pl
(1.23 KB)
📄
newgetopt.pl
(2.16 KB)
📄
ok.pm
(967 B)
📄
open.pm
(7.56 KB)
📄
open2.pl
(185 B)
📄
open3.pl
(185 B)
📁
overload
📄
overload.pm
(46.92 KB)
📄
overloading.pm
(1.76 KB)
📄
parent.pm
(2.93 KB)
📄
perl5db.pl
(310.24 KB)
📁
pod
📄
pwd.pl
(1.44 KB)
📄
shellwords.pl
(276 B)
📄
sigtrap.pm
(7.43 KB)
📄
sort.pm
(5.95 KB)
📄
stat.pl
(590 B)
📄
strict.pm
(3.63 KB)
📄
subs.pm
(842 B)
📄
syslog.pl
(4.69 KB)
📄
tainted.pl
(164 B)
📄
termcap.pl
(4.02 KB)
📄
timelocal.pl
(690 B)
📁
unicore
📄
utf8.pm
(6.76 KB)
📄
utf8_heavy.pl
(7.81 KB)
📄
validate.pl
(3.64 KB)
📄
vars.pm
(2.3 KB)
📁
vendor_perl
📁
version
📄
vmsish.pm
(4.23 KB)
📁
warnings
📄
warnings.pm
(15.75 KB)
Editing: validate.pl
;# The validate routine takes a single multiline string consisting of ;# lines containing a filename plus a file test to try on it. (The ;# file test may also be a 'cd', causing subsequent relative filenames ;# to be interpreted relative to that directory.) After the file test ;# you may put '|| die' to make it a fatal error if the file test fails. ;# The default is '|| warn'. The file test may optionally have a ! prepended ;# to test for the opposite condition. If you do a cd and then list some ;# relative filenames, you may want to indent them slightly for readability. ;# If you supply your own "die" or "warn" message, you can use $file to ;# interpolate the filename. ;# Filetests may be bunched: -rwx tests for all of -r, -w and -x. ;# Only the first failed test of the bunch will produce a warning. ;# The routine returns the number of warnings issued. ;# Usage: ;# require "validate.pl"; ;# $warnings += do validate(' ;# /vmunix -e || die ;# /boot -e || die ;# /bin cd ;# csh -ex ;# csh !-ug ;# sh -ex ;# sh !-ug ;# /usr -d || warn "What happened to $file?\n" ;# '); sub validate { local($file,$test,$warnings,$oldwarnings); foreach $check (split(/\n/,$_[0])) { next if $check =~ /^#/; next if $check =~ /^$/; ($file,$test) = split(' ',$check,2); if ($test =~ s/^(!?-)(\w{2,}\b)/$1Z/) { $testlist = $2; @testlist = split(//,$testlist); } else { @testlist = ('Z'); } $oldwarnings = $warnings; foreach $one (@testlist) { $this = $test; $this =~ s/(-\w\b)/$1 \$file/g; $this =~ s/-Z/-$one/; $this .= ' || warn' unless $this =~ /\|\|/; $this =~ s/^(.*\S)\s*\|\|\s*(die|warn)$/$1 || do valmess('$2','$1')/; $this =~ s/\bcd\b/chdir (\$cwd = \$file)/g; eval $this; last if $warnings > $oldwarnings; } } $warnings; } sub valmess { local($disposition,$this) = @_; $file = $cwd . '/' . $file unless $file =~ m|^/|; if ($this =~ /^(!?)-(\w)\s+\$file\s*$/) { $neg = $1; $tmp = $2; $tmp eq 'r' && ($mess = "$file is not readable by uid $>."); $tmp eq 'w' && ($mess = "$file is not writable by uid $>."); $tmp eq 'x' && ($mess = "$file is not executable by uid $>."); $tmp eq 'o' && ($mess = "$file is not owned by uid $>."); $tmp eq 'R' && ($mess = "$file is not readable by you."); $tmp eq 'W' && ($mess = "$file is not writable by you."); $tmp eq 'X' && ($mess = "$file is not executable by you."); $tmp eq 'O' && ($mess = "$file is not owned by you."); $tmp eq 'e' && ($mess = "$file does not exist."); $tmp eq 'z' && ($mess = "$file does not have zero size."); $tmp eq 's' && ($mess = "$file does not have non-zero size."); $tmp eq 'f' && ($mess = "$file is not a plain file."); $tmp eq 'd' && ($mess = "$file is not a directory."); $tmp eq 'l' && ($mess = "$file is not a symbolic link."); $tmp eq 'p' && ($mess = "$file is not a named pipe (FIFO)."); $tmp eq 'S' && ($mess = "$file is not a socket."); $tmp eq 'b' && ($mess = "$file is not a block special file."); $tmp eq 'c' && ($mess = "$file is not a character special file."); $tmp eq 'u' && ($mess = "$file does not have the setuid bit set."); $tmp eq 'g' && ($mess = "$file does not have the setgid bit set."); $tmp eq 'k' && ($mess = "$file does not have the sticky bit set."); $tmp eq 'T' && ($mess = "$file is not a text file."); $tmp eq 'B' && ($mess = "$file is not a binary file."); if ($neg eq '!') { $mess =~ s/ is not / should not be / || $mess =~ s/ does not / should not / || $mess =~ s/ not / /; } print STDERR $mess,"\n"; } else { $this =~ s/\$file/'$file'/g; print STDERR "Can't do $this.\n"; } if ($disposition eq 'die') { exit 1; } ++$warnings; } 1;
Upload File
Create Folder