Linux ns8.secondary29.go.th 2.6.32-754.28.1.el6.x86_64 #1 SMP Wed Mar 11 18:38:45 UTC 2020 x86_64
Apache/2.2.15 (CentOS)
: 122.154.134.11 | : 122.154.134.9
Cant Read [ /etc/named.conf ]
5.6.40
apache
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 /
[ HOME SHELL ]
Name
Size
Permission
Action
awk
[ DIR ]
drwxr-xr-x
certmonger
[ DIR ]
drwxr-xr-x
emacs
[ DIR ]
drwxr-xr-x
gcc
[ DIR ]
drwxr-xr-x
getconf
[ DIR ]
drwxr-xr-x
git-core
[ DIR ]
drwxr-xr-x
gstreamer-0.10
[ DIR ]
drwxr-xr-x
ipsec
[ DIR ]
drwxr-xr-x
mc
[ DIR ]
drwxr-xr-x
microcode_ctl
[ DIR ]
drwxr-xr-x
oddjob
[ DIR ]
drwxr-xr-x
openldap
[ DIR ]
drwxr-xr-x
openscap
[ DIR ]
drwxr-xr-x
openssh
[ DIR ]
drwxr-xr-x
perf-core
[ DIR ]
drwxr-xr-x
plymouth
[ DIR ]
drwxr-xr-x
polkit-1
[ DIR ]
drwxr-xr-x
postfix
[ DIR ]
drwxr-xr-x
scripts
[ DIR ]
drwxr-xr-x
sssd
[ DIR ]
drwxr-xr-x
systemtap
[ DIR ]
drwxr-xr-x
utempter
[ DIR ]
drwxr-xr-x
webmin
[ DIR ]
drwxr-xr-x
abrt-action-generate-machine-i...
5.86
KB
-rwxr-xr-x
abrt-action-install-debuginfo-...
10.05
KB
-rwsr-xr-x
abrt-action-ureport
5.45
KB
-rwxr-xr-x
abrt-handle-event
24.01
KB
-rwxr-xr-x
abrt-hook-ccpp
41.62
KB
-rwxr-xr-x
abrt1-to-abrt2
4.02
KB
-rwxr-xr-x
copy_jdk_configs.lua
9.28
KB
-rw-r--r--
copy_jdk_configs_fixFiles.sh
5.81
KB
-rwxr-xr-x
fprintd
61.3
KB
-rwxr-xr-x
gam_server
93.82
KB
-rwxr-xr-x
gconf-defaults-mechanism
38.7
KB
-rwxr-xr-x
gconfd-2
72.83
KB
-rwxr-xr-x
gnupg-pcsc-wrapper
18.37
KB
-rwxr-xr-x
gpg-check-pattern
98.02
KB
-rwxr-xr-x
gpg-preset-passphrase
83.61
KB
-rwxr-xr-x
gpg-protect-tool
205.39
KB
-rwxr-xr-x
gpg2keys_curl
51.03
KB
-rwxr-xr-x
gpg2keys_finger
59.69
KB
-rwxr-xr-x
gpg2keys_hkp
59.48
KB
-rwxr-xr-x
gpg2keys_ldap
64.9
KB
-rwxr-xr-x
hal-storage-cleanup-all-mountp...
21.2
KB
-rwxr-xr-x
hal-storage-cleanup-mountpoint
21.61
KB
-rwxr-xr-x
hal-storage-closetray
22.38
KB
-rwxr-xr-x
hal-storage-eject
23.72
KB
-rwxr-xr-x
hal-storage-mount
35.37
KB
-rwxr-xr-x
hal-storage-unmount
22.73
KB
-rwxr-xr-x
hal-system-power-pm-is-support...
11.05
KB
-rwxr-xr-x
hal-system-power-pmu
9.71
KB
-rwxr-xr-x
hal-system-setserial
8.4
KB
-rwxr-xr-x
hald-addon-acpi
20.6
KB
-rwxr-xr-x
hald-addon-generic-backlight
21.83
KB
-rwxr-xr-x
hald-addon-hid-ups
23.57
KB
-rwxr-xr-x
hald-addon-imac-backlight
16.92
KB
-rwxr-xr-x
hald-addon-input
30.71
KB
-rwxr-xr-x
hald-addon-ipw-killswitch
22.24
KB
-rwxr-xr-x
hald-addon-leds
25.61
KB
-rwxr-xr-x
hald-addon-pmu
17.93
KB
-rwxr-xr-x
hald-addon-rfkill-killswitch
25.59
KB
-rwxr-xr-x
hald-generate-fdi-cache
25.97
KB
-rwxr-xr-x
hald-probe-hiddev
13.91
KB
-rwxr-xr-x
hald-probe-ieee1394-unit
15.98
KB
-rwxr-xr-x
hald-probe-input
13.75
KB
-rwxr-xr-x
hald-probe-net-bluetooth
16.75
KB
-rwxr-xr-x
hald-probe-pc-floppy
11.29
KB
-rwxr-xr-x
hald-probe-printer
15.95
KB
-rwxr-xr-x
hald-probe-serial
11.47
KB
-rwxr-xr-x
hald-probe-smbios
16.8
KB
-rwxr-xr-x
hald-probe-storage
46.17
KB
-rwxr-xr-x
hald-probe-video4linux
15.31
KB
-rwxr-xr-x
hald-probe-volume
45.73
KB
-rwxr-xr-x
hald-runner
22.76
KB
-rwxr-xr-x
man-cmp.sh
214
B
-rwxr-xr-x
mlx4-setup.sh
2.48
KB
-rwxr-xr-x
mysqlmanager
1.53
MB
-rwxr-xr-x
pt_chown
14.39
KB
-rws--x--x
sesh
30.27
KB
-rwxr-xr-x
sudo_noexec.so
5.8
KB
-rwxr-xr-x
sudoers.so
293.13
KB
-rwxr-xr-x
virt-what-cpuid-helper
7.48
KB
-rwxr-xr-x
Delete
Unzip
Zip
${this.title}
Close
Code Editor : copy_jdk_configs_fixFiles.sh
#!/bin/bash config=$1 target=$2 debug="false" rma="" if [ "x$debug" == "xtrue" ] ; then rma="-v" fi debug(){ if [ "x$debug" == "xtrue" ] ; then echo "$1" fi } #we should be pretty strict about removing once used (even "used" [with fail]) config file, as it may corrupt another installation clean(){ debug "cleanup: removing $config" rm -rf $config } if [ "x" == "x$config" ] ; then debug "no config file specified" exit 1 fi if [ ! -f "$config" ] ; then debug "$config file do not exists" # expected case, when no migration happened exit 0 fi if [ "x" == "x$target" ] ; then debug "no target dir specified" clean exit 2 fi if [ ! -d "$target" ] ; then debug "$target is not directory" clean exit 22 fi source=`cat $config` if [ "x" == "x$source" ] ; then debug "no information in $config" clean exit 3 fi if [ ! -d "$source" ] ; then debug "$source from $config is not directory" clean exit 33 fi listLinks(){ find $1 -type l -print0 | xargs -0 ls -ld | sed "s; \+-> \+;_->_;g" | sed "s;.* $1;$1;" } printIfExists(){ if [ -e $ffileCandidate ] ; then echo $1 else # stdout can be captured, therefore stderr debug "skipping not-existing link-target-dir $1" 1>&2 fi } createListOfLinksTargetsDirectories(){ pushd $source >/dev/null 2>&1 local links=`listLinks $1` for x in $links ; do echo "$x" | grep "jre-abrt" > /dev/null if [ $? -eq 0 ] ; then continue fi local ffileCandidate=$(echo $x | sed "s/.*_->_//") ; # ignoring relative paths as they may lead who know where later # there can be simlink relative to position, so push is not catching all if [ "$ffileCandidate" != "${ffileCandidate#/}" ] ; then if [ -d $ffileCandidate ] ; then # should we accept the links to directories themselves? printIfExists $ffileCandidate else printIfExists `dirname $ffileCandidate` fi fi done | sort | uniq popd >/dev/null 2>&1 } sourceLinks=`listLinks $source` targetLinks=`listLinks $target` sourceLinksDirsTarget=`createListOfLinksTargetsDirectories $source` targetLinksDirsTarget=`createListOfLinksTargetsDirectories $target` debug "source: $source" debug "target: $target" debug "sourceLinks: $sourceLinks" debug "targetLinks: $targetLinks" debug "sourceLinksDirsTarget: $sourceLinksDirsTarget" debug "targetLinksDirsTarget: $targetLinksDirsTarget" sourceSearchPath="$source $sourceLinksDirsTarget" targetSearchPath="$target $targetLinksDirsTarget" work(){ if [ "X$1" == "Xrpmnew" -o "X$1" == "Xrpmorig" ] ; then debug "Working with $1 (1)" else debug "unknown parameter: $1" return 1 fi local files=`find $targetSearchPath | grep "\\.$1$"` for file in $files ; do local sf1=`echo $file | sed "s/\\.$1$//"` local sf2=`echo $sf1 | sed "s/$targetName/$srcName/"` # was file modified in origianl installation? rpm -Vf $source | grep -q $sf2 if [ $? -gt 0 ] ; then if [ "X$1" == "Xrpmnew" ] ; then debug "$sf2 was NOT modified, removing possibly corrupted $sf1 and renaming from $file" mv $rma -f $file $sf1 if [ $? -eq 0 ] ; then echo "restored $file to $sf1" else echo "FAILED to restore $file to $sf1" fi fi if [ "X$1" == "Xrpmorig" ] ; then debug "$sf2 was NOT modified, removing possibly corrupted $file" rm $rma $file fi else debug "$sf2 was modified, keeping $file, and removing the duplicated original" # information is now backuped, in new directory anyway. Removing future rpmsave to allow rpm -e rm -f $rma $sf2 # or its corresponding backup rm -f $rma $sf2.$1 fi done } srcName=`basename $source` targetName=`basename $target` work rpmnew work rpmorig debug "Working with rpmorig (2)" # simply moving old rpmsaves to new dir # fix for config (replace) leftovers files=`find $sourceSearchPath | grep "\\.rpmorig$"` for file in $files ; do rpmsaveTarget=`echo $file | sed "s/$srcName/$targetName/"` debug "relocating $file to $rpmsaveTarget" if [ -e $rpmsaveTarget ] ; then rm $rma $file else mv $rma $file $rpmsaveTarget fi done debug "Working with rpmsave (1)" files=`find $sourceSearchPath | grep "\\.rpmsave$"` for file in $files ; do rpmsaveTarget=`echo $file | sed "s/$srcName/$targetName/"` debug "relocating $file to $rpmsaveTarget" if [ -e $rpmsaveTarget ] ; then rm $rma $file else mv $rma $file $rpmsaveTarget fi done #warning: file /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.131-11.b12.el7.x86_64-debug/jre/lib/applet: remove failed: No such file or directory #warning: file /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.131-11.b12.el7.x86_64-debug/jre/lib/amd64/client: remove failed: No such file or directory #warning: file /usr/lib/jvm/java-1.7.0-openjdk-1.7.0.171-2.6.13.2.el7.x86_64/jre/lib/amd64/xawt: remove failed: No such file or directory #those dirs might be mepty by installtion, filling to not be rmeoved later blackdirs="$source/jre/lib/applet $source/jre/lib/*/client $source/jre/lib/locale/*/LC_MESSAGE $source/jre/lib/*/xawt" for blackdir in $blackdirs; do if [ -e $blackdir ] ; then debug "nasty $blackdir exists, filling" touch $blackdir/C-J-C_placeholder else debug "nasty $blackdir DONT exists, ignoring" fi done debug "cleaning legacy leftowers" if [ "x$debug" == "xtrue" ] ; then find $sourceSearchPath -empty -type d -delete rmdir $rma $sourceSearchPath else find $sourceSearchPath -empty -type d -delete 2>/dev/null >/dev/null rmdir $rma $sourceSearchPath 2>/dev/null >/dev/null fi # and remove placeholders for blackdir in $blackdirs; do if [ -e $blackdir ] ; then debug "nasty $blackdir exists, cleaning placeholder" rm $blackdir/C-J-C_placeholder else debug "nasty $blackdir DONT exists, ignoring again" fi done clean
Close