Linux ih01.iridiumhosting.com 5.14.0-611.5.1.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Tue Nov 11 08:09:09 EST 2025 x86_64
LiteSpeed
Server IP : 67.227.241.211 & Your IP : 216.73.216.226
Domains :
Cant Read [ /etc/named.conf ]
User : dustinhy
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
opt /
MXB /
rear /
usr /
share /
rear /
lib /
Delete
Unzip
Name
Size
Permission
Date
Action
validated
[ DIR ]
drwxr-xr-x
2026-04-01 09:39
_framework-setup-and-functions.sh
111.2
KB
-rw-r--r--
2026-04-01 09:39
array-functions.sh
1.08
KB
-rw-r--r--
2026-04-01 09:39
authtoken-functions.sh
16.84
KB
-rw-r--r--
2026-04-01 09:39
bareos-functions.sh
10.3
KB
-rw-r--r--
2026-04-01 09:39
bootloader-functions.sh
43.74
KB
-rw-r--r--
2026-04-01 09:39
borg-functions.sh
6.9
KB
-rw-r--r--
2026-04-01 09:39
checkintegrity-workflow.sh
385
B
-rw-r--r--
2026-04-01 09:39
checklayout-workflow.sh
646
B
-rw-r--r--
2026-04-01 09:39
columns-functions.sh
2.95
KB
-rw-r--r--
2026-04-01 09:39
config-functions.sh
7.88
KB
-rw-r--r--
2026-04-01 09:39
cove-functions.sh
2.61
KB
-rw-r--r--
2026-04-01 09:39
drlm-functions.sh
2.6
KB
-rw-r--r--
2026-04-01 09:39
dump-workflow.sh
7.63
KB
-rw-r--r--
2026-04-01 09:39
filesystems-functions.sh
12.08
KB
-rw-r--r--
2026-04-01 09:39
finalizeonly-workflow.sh
1.22
KB
-rw-r--r--
2026-04-01 09:39
format-workflow.sh
3.79
KB
-rw-r--r--
2026-04-01 09:39
global-functions.sh
49.92
KB
-rw-r--r--
2026-04-01 09:39
help-workflow.sh
3.6
KB
-rw-r--r--
2026-04-01 09:39
hp_raid-functions.sh
871
B
-rw-r--r--
2026-04-01 09:39
layout-functions.sh
64.96
KB
-rw-r--r--
2026-04-01 09:39
layoutonly-workflow.sh
803
B
-rw-r--r--
2026-04-01 09:39
linux-functions.sh
14.6
KB
-rw-r--r--
2026-04-01 09:39
mail-functions.sh
1.39
KB
-rw-r--r--
2026-04-01 09:39
mkbackup-workflow.sh
585
B
-rw-r--r--
2026-04-01 09:39
mkbackuponly-workflow.sh
368
B
-rw-r--r--
2026-04-01 09:39
mkboot-workflow.sh
1.13
KB
-rw-r--r--
2026-04-01 09:39
mkopalpba-workflow.sh
890
B
-rw-r--r--
2026-04-01 09:39
mkrescue-functions.sh
5.72
KB
-rw-r--r--
2026-04-01 09:39
mkrescue-workflow.sh
461
B
-rw-r--r--
2026-04-01 09:39
mksystemstate-workflow.sh
539
B
-rw-r--r--
2026-04-01 09:39
mountonly-workflow.sh
1.7
KB
-rw-r--r--
2026-04-01 09:39
network-functions.sh
8.53
KB
-rw-r--r--
2026-04-01 09:39
opal-functions.sh
15.67
KB
-rw-r--r--
2026-04-01 09:39
opaladmin-workflow.sh
18.37
KB
-rw-r--r--
2026-04-01 09:39
output-functions.sh
3.17
KB
-rw-r--r--
2026-04-01 09:39
progresssubsystem.nosh
2.32
KB
-rw-r--r--
2026-04-01 09:39
rear-shell.bashrc
2.68
KB
-rw-r--r--
2026-04-01 09:39
recover-workflow.sh
1.59
KB
-rw-r--r--
2026-04-01 09:39
restoreonly-workflow.sh
832
B
-rw-r--r--
2026-04-01 09:39
rsync-functions.sh
4.56
KB
-rw-r--r--
2026-04-01 09:39
savelayout-workflow.sh
643
B
-rw-r--r--
2026-04-01 09:39
serial-functions.sh
3.98
KB
-rw-r--r--
2026-04-01 09:39
sesam-functions.sh
1.18
KB
-rw-r--r--
2026-04-01 09:39
shell-workflow.sh
648
B
-rw-r--r--
2026-04-01 09:39
tpmpwd-functions.sh
625
B
-rw-r--r--
2026-04-01 09:39
udev-workflow.sh
3.27
KB
-rw-r--r--
2026-04-01 09:39
uefi-functions.sh
9.69
KB
-rw-r--r--
2026-04-01 09:39
validate-workflow.sh
4.91
KB
-rw-r--r--
2026-04-01 09:39
write-protect-functions.sh
7.75
KB
-rw-r--r--
2026-04-01 09:39
Save
Rename
function uefi_read_data { # input arg is path/data local dt dt=$(cat "$1" | hexdump -e '8/1 "%c""\n"' | tr -dc '[:print:]') echo $(trim $dt) } function uefi_read_attributes { # input arg is path/attributes local attr="" grep -q EFI_VARIABLE_NON_VOLATILE "$1" && attr="${attr}NV," grep -q EFI_VARIABLE_BOOTSERVICE_ACCESS "$1" && attr="${attr}BS," grep -q EFI_VARIABLE_RUNTIME_ACCESS "$1" && attr="${attr}RT" attr="(${attr})" echo "$attr" } function efibootmgr_read_var { # input args are $1 (efi var) and $2 (file $TMP_DIR/efibootmgr_output) local var var=$(grep "$1" $2 | cut -d: -f 2- | cut -d* -f2-) echo "$var" } function uefi_extract_bootloader { # input arg path/data local dt dt=$(cat "$1" | tail -1 | tr -cd '[:print:]\n' | cut -d\\ -f2-) echo "\\$(trim ${dt})" } function trim { local var="$1" var="${var#"${var%%[![:space:]]*}"}" # remove leading whitespace characters var="${var%"${var##*[![:space:]]}"}" # remove trailing whitespace characters echo -n "$var" } function build_boot_efi { local outfile="$1" local embedded_config="" local gmkstandalone="" local gprobe="" local dirs=() # modules is the list of modules to load # If GRUB2_MODULES_UEFI_LOAD is nonempty, it determines what modules to load local modules=( ${GRUB2_MODULES_UEFI_LOAD:+"${GRUB2_MODULES_UEFI_LOAD[@]}"} ) # Configuration file is optional for image creation. shift if [[ -n "$1" ]] ; then # graft point syntax. $1 will appear as /boot/grub/grub.cfg in the image embedded_config="/boot/grub/grub.cfg=$1" shift # directories that should be accessible by GRUB2 (e.g. because they contain the kernel) dirs=( ${@:+"$@"} ) fi if has_binary grub-mkstandalone ; then gmkstandalone=grub-mkstandalone elif has_binary grub2-mkstandalone ; then # At least SUSE systems use 'grub2' prefixed names for GRUB2 programs: gmkstandalone=grub2-mkstandalone else # This build_boot_efi function is only called in 250_populate_efibootimg.sh # and 100_create_efiboot.sh and 940_grub2_rescue.sh # only if UEFI is used so that we simply error out here if we cannot make a bootable EFI image of GRUB2 # (normally a function should not exit but return to its caller with a non-zero return code): Error "Cannot make bootable EFI image of GRUB2 (neither grub-mkstandalone nor grub2-mkstandalone found)" fi # Determine what modules need to be loaded in order to access given directories # (if the list of modules is not overridden by GRUB2_MODULES_UEFI_LOAD) if (( ${#dirs[@]} )) && ! (( ${#modules[@]} )) ; then if has_binary grub-probe ; then gprobe=grub-probe elif has_binary grub2-probe ; then # At least SUSE systems use 'grub2' prefixed names for GRUB2 programs: gprobe=grub2-probe else LogPrint "Neither grub-probe nor grub2-probe found" # Since openSUSE Leap 15.1 things were moved from /usr/lib/grub2/ to /usr/share/grub2/ # cf. https://github.com/rear/rear/issues/2338#issuecomment-594432946 if test /usr/*/grub*/"$GRUB2_IMAGE_FORMAT"/partmap.lst ; then LogPrint "including all partition modules" modules=( $( cat /usr/*/grub*/"$GRUB2_IMAGE_FORMAT"/partmap.lst ) ) else Error "Can not determine partition modules, ${dirs[*]} would be likely inaccessible in GRUB2" fi fi if [ -n "$gprobe" ]; then # This is unfortunately only a crude approximation of the Grub internal probe_mods() function. # $gprobe --target=partmap "$p" | sed -e 's/^/part_/' does not always returns part_msdos # Therefore, we explicit do an echo 'part_msdos' (the sort -u will make sure it is listed only once) modules=( $( for p in "${dirs[@]}" ; do $gprobe --target=fs "$p" $gprobe --target=partmap "$p" | sed -e 's/^/part_/' echo 'part_msdos' $gprobe --target=abstraction "$p" done | sort -u ) ) fi fi # grub-mkstandalone needs a .../grub*/$GRUB2_IMAGE_FORMAT/moddep.lst file (cf. https://github.com/rear/rear/issues/1193) # At least on SUSE systems that is in different 'grub2' directories (cf. https://github.com/rear/rear/issues/2338) # e.g. on openSUSE Leap 15.0 it is in /usr/lib/grub2/x86_64-efi/moddep.lst # but on openSUSE Leap 15.1 that was moved to /usr/share/grub2/x86_64-efi/moddep.lst # and the one in /boot/grub2/x86_64-efi/moddep.lst is a copy of the one in /usr/*/grub2/x86_64-efi/moddep.lst # so we do not error out if we do not find a /x86_64-efi/moddep.lst file because it could be "anywhere else" in the future # but we inform the user here in advance about possible problems when there is no /x86_64-efi/moddep.lst file. # Careful: usr/sbin/rear sets nullglob so that /usr/*/grub*/$GRUB2_IMAGE_FORMAT/moddep.lst gets empty if nothing matches # and 'test -f' succeeds with empty argument so that we cannot use 'test -f /usr/*/grub*/$GRUB2_IMAGE_FORMAT/moddep.lst' # also 'test -n' succeeds with empty argument but (fortunately/intentionally?) plain 'test' fails with empty argument. # Another implicit condition that this 'test' works is that '/usr/*/grub*/$GRUB2_IMAGE_FORMAT/moddep.lst' matches at most one file # because otherwise e.g. "test /usr/*/grub*/$GRUB2_IMAGE_FORMAT/mod*" where two files moddep.lst and modinfo.sh match # would falsely fail with "bash: test: ... unary operator expected": test /usr/*/grub*/"$GRUB2_IMAGE_FORMAT"/moddep.lst || LogPrintError "$gmkstandalone may fail to make a bootable EFI image of GRUB2 (no /usr/*/grub*/$GRUB2_IMAGE_FORMAT/moddep.lst file)" (( ${#GRUB2_MODULES_UEFI[@]} )) && LogPrint "Installing only ${GRUB2_MODULES_UEFI[*]} modules into $outfile memdisk" (( ${#modules[@]} )) && LogPrint "GRUB2 modules to load: ${modules[*]}" if ! $gmkstandalone $v ${GRUB2_MODULES_UEFI:+"--install-modules=${GRUB2_MODULES_UEFI[*]}"} ${modules:+"--modules=${modules[*]}"} -O "$GRUB2_IMAGE_FORMAT" -o $outfile $embedded_config ; then Error "Failed to make bootable EFI image of GRUB2 (error during $gmkstandalone of $outfile)" fi } declare -F efi_run_efibootmgr >/dev/null || function efi_run_efibootmgr() { if ! has_binary efibootmgr; then return 1 fi local efibootmgr_output="$TMP_DIR/efibootmgr_v_output" if [ ! -s "$efibootmgr_output" ]; then if ! efibootmgr -v 2>/dev/null > "$efibootmgr_output"; then return 1 fi fi cat "$efibootmgr_output" } declare -F efi_get_current_boot >/dev/null || function efi_get_current_boot() { local boot_current boot_current=$(efi_run_efibootmgr | sed -n 's|^BootCurrent: ||p') || return 1 echo "$boot_current" } declare -F efi_get_device_path >/dev/null || function efi_get_device_path() { local bootnum="Boot$1" local dp dp="$(efi_run_efibootmgr | sed -n "s|^${bootnum}\* .*\\t||p")" || return 1 if [ -z "$dp" ]; then return 1 fi echo "$dp" } declare -F efi_get_bootloader_path >/dev/null || function efi_get_bootloader_path { local bootnum="$1" local dp dp=$(efi_get_device_path "$bootnum") || return 1 local path path=$(echo "$dp" | sed -n 's|HD(.*)/||; s|\\|/|g; p') || return 1 if [[ $path =~ ^File\((.*)\)$ ]]; then path="${BASH_REMATCH[1]}" fi if [ -z "$path" ]; then return 1 fi echo "$path" } declare -F efi_get_boot_partuuid >/dev/null || function efi_get_boot_partuuid { local bootnum="$1" local dp dp=$(efi_get_device_path "$bootnum") || return 1 local partuuid partuuid=$(echo "$dp" | sed -n 's/^HD([0-9]\+,GPT,\([0-9a-fA-F-]\+\),.*/\1/p') || return 1 if [ -z "$partuuid" ]; then return 1 fi echo "$partuuid" } declare -F efi_get_mountpoint >/dev/null || function efi_get_mountpoint { if ! has_binary findmnt; then return 1 fi local partuuid=$1 local mnt mnt=$(findmnt -S PARTUUID="$partuuid" -n -o TARGET) || return 1 if [ -z "$mnt" ]; then return 1 fi echo "$mnt" } declare -F efi_check_bootloader_path >/dev/null || function efi_check_bootloader_path { [ -f "$1" ] } declare -F efi_get_current_full_bootloader_path >/dev/null || function efi_get_current_full_bootloader_path { local current_boot if ! current_boot=$(efi_get_current_boot); then WarnPrint "WARN: EFI: Failed to get current boot" return 1 fi local partuuid if ! partuuid=$(efi_get_boot_partuuid "$current_boot"); then WarnPrint "WARN: EFI: Failed to get partuuid for the current boot '$current_boot'" return 1 fi local mnt if ! mnt=$(efi_get_mountpoint "$partuuid"); then WarnPrint "WARN: EFI: Failed to get mountpoint for partuuid '$partuuid'" return 1 fi local path if ! path=$(efi_get_bootloader_path "$current_boot"); then WarnPrint "WARN: EFI: Failed to get bootloader path for the current boot '$current_boot'" return 1 fi if [ "${path::1}" != '/' ]; then path="/$path" fi local full_path="$mnt$path" if ! efi_check_bootloader_path "$full_path"; then WarnPrint "WARN: EFI: Bootloader path '$full_path' does not exist" return 1 fi echo "$full_path" } declare -F efi_sb_enabled >/dev/null || function efi_sb_enabled { if ! has_binary mokutil; then return 1 fi local sb_state sb_state=$(mokutil --sb-state 2>&1) || return 1 grep -q "SecureBoot enabled" <<<"$sb_state" }