⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.144
Server IP:
157.245.143.252
Server:
Linux www 6.11.0-9-generic #9-Ubuntu SMP PREEMPT_DYNAMIC Mon Oct 14 13:19:59 UTC 2024 x86_64
Server Software:
nginx/1.26.0
PHP Version:
8.3.11
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
proc
/
self
/
root
/
snap
/
core24
/
988
/
usr
/
libexec
/
core
/
Edit File: get-mode
#!/bin/sh # Usage: # get-mode entry-name /path/to/modeenv # # get-mode will look for entry-name in modeenv files and return 0 if # found, 1 if not found. It will print the value to stdout. set -eu if [ "$#" -gt 2 ]; then echo "Too many arguments" 1>&2 exit 1 fi if [ "$#" -lt 1 ]; then echo "Expected a name as argument" 1>&2 exit 1 fi name="${1}" modeenv="${2:-/var/lib/snapd/modeenv}" while read -r line; do case "${line}" in "${name}"=*) echo "${line#*=}" exit 0 ;; *) ;; esac done <"${modeenv}" exit 1
Simpan