403Webshell
Server IP : 172.67.134.114  /  Your IP : 162.159.115.41
Web Server : Apache/2.4.37
System : Linux almalinux.duckdns.org 4.18.0-553.111.1.el8_10.x86_64 #1 SMP Sun Mar 8 20:06:07 EDT 2026 x86_64
User : ricodeal ( 1046)
PHP Version : 7.4.33
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /usr/libexec/fwupdate/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/libexec/fwupdate/cleanup
#!/bin/sh
set -e
if [ -e "/var/lib/fwupdate/done" ]; then
	exit 0
fi

efibootmgr -q

BOOTNUM=$(efibootmgr | grep "Linux.Firmware.Updater" | sed "s/\ .*//; s/*//; s/Boot//")
if [ -n "$BOOTNUM" ]; then
	for num in $BOOTNUM; do
		efibootmgr -q -b "$num" -B
	done
fi


for x in /boot/efi/EFI/almalinux/fw/fwupdate-* ; do
	if [ "${x}" != "/boot/efi/EFI/almalinux/fw/fwupdate-*" ]; then
		rm -f "${x}"
	fi
done
for x in /sys/firmware/efi/efivars/fwupdate-*-0abba7dc-e516-4167-bbf5-4d9d1c739416 ; do
	if [ "${x}" != "/sys/firmware/efi/efivars/fwupdate-*-0abba7dc-e516-4167-bbf5-4d9d1c739416" ]; then
		if lsattr "${x}" 2>/dev/null | cut -d\  -f1 | cut -d- -f5 | grep -q i ; then
			chattr -i "${x}"
		fi
		rm -f "${x}"
	fi
done

touch "/var/lib/fwupdate/done"

Youez - 2016 - github.com/yon3zu
LinuXploit