AnonSec Shell
Server IP : 85.193.89.191  /  Your IP : 3.145.65.157
Web Server : Apache
System : Linux 956367-cx40159.tmweb.ru 3.10.0-1160.105.1.el7.x86_64 #1 SMP Thu Dec 7 15:39:45 UTC 2023 x86_64
User : bitrix ( 600)
PHP Version : 8.1.27
Disable Function : NONE
MySQL : OFF  |  cURL : OFF  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /usr/libexec/os-probes/mounted/efi/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME ]     

Current File : /usr/libexec/os-probes/mounted/efi/20microsoft
#!/bin/sh
# Detects Microsoft bootloader on a EFI System Partition

. /usr/share/os-prober/common.sh

efi="$1"

found=
for microsoft in $(item_in_dir microsoft "$efi"); do
	for boot in $(item_in_dir boot "$efi/$microsoft"); do
		bcd=$(item_in_dir bcd "$efi/$microsoft/$boot")
		bootmgfw=$(item_in_dir bootmgfw.efi "$efi/$microsoft/$boot")
		if [ -n "$bcd" -a -n "$bootmgfw" ]; then
			long="Windows Boot Manager"
			short=Windows
			path="$microsoft/$boot/$bootmgfw"
			found=true
			break
		fi
	done
done


if [ -n "$found" ]; then
	label="$(count_next_label "$short")"
	result "${path}:${long}:${label}"
fi
exit 0

Anon7 - 2022
AnonSec Team