__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
#!/bin/sh
# SPDX-License-Identifier: LGPL-2.1
if [ $# -ne 2 ] ; then
[ $# -eq 1 ] && hostarch=$1 || hostarch=`uname -m | sed -e s/i.86/x86/ -e s/x86_64/x86/`
asm_header_dir=tools/include/uapi/asm-generic
arch_header_dir=tools/arch/${hostarch}/include/uapi/asm
else
asm_header_dir=$1
arch_header_dir=$2
fi
common_mman=${asm_header_dir}/mman-common.h
arch_mman=${arch_header_dir}/mman.h
prefix="PROT"
printf "static const char *mmap_prot[] = {\n"
regex=`printf '^[[:space:]]*#[[:space:]]*define[[:space:]]+%s_([[:alnum:]_]+)[[:space:]]+(0x[[:xdigit:]]+)[[:space:]]*.*' ${prefix}`
( ! test -f ${arch_mman} \
|| grep -E -q '#[[:space:]]*include[[:space:]]+.*uapi/asm-generic/mman.*' ${arch_mman}) &&
(grep -E $regex ${common_mman} | \
grep -E -vw PROT_NONE | \
sed -r "s/$regex/\2 \1 \1 \1 \2/g" | \
xargs printf "\t[ilog2(%s) + 1] = \"%s\",\n#ifndef ${prefix}_%s\n#define ${prefix}_%s %s\n#endif\n")
test -f ${arch_mman} && grep -E -q $regex ${arch_mman} &&
(grep -E $regex ${arch_mman} | \
grep -E -vw PROT_NONE | \
sed -r "s/$regex/\2 \1 \1 \1 \2/g" | \
xargs printf "\t[ilog2(%s) + 1] = \"%s\",\n#ifndef ${prefix}_%s\n#define ${prefix}_%s %s\n#endif\n")
printf "};\n"
| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| tracepoints | Folder | 0755 |
|
|
| arch_errno_names.sh | File | 1.99 KB | 0755 |
|
| clone.sh | File | 513 B | 0755 |
|
| drm_ioctl.sh | File | 626 B | 0755 |
|
| fadvise.sh | File | 836 B | 0755 |
|
| fs_at_flags.sh | File | 1.07 KB | 0755 |
|
| fsconfig.sh | File | 413 B | 0755 |
|
| fsmount.sh | File | 863 B | 0755 |
|
| fspick.sh | File | 510 B | 0755 |
|
| kcmp_type.sh | File | 343 B | 0755 |
|
| kvm_ioctl.sh | File | 523 B | 0755 |
|
| madvise_behavior.sh | File | 426 B | 0755 |
|
| mmap_flags.sh | File | 1.77 KB | 0755 |
|
| mmap_prot.sh | File | 1.16 KB | 0755 |
|
| mount_flags.sh | File | 763 B | 0755 |
|
| move_mount_flags.sh | File | 523 B | 0755 |
|
| mremap_flags.sh | File | 573 B | 0755 |
|
| perf_ioctl.sh | File | 455 B | 0755 |
|
| pkey_alloc_access_rights.sh | File | 458 B | 0755 |
|
| prctl_option.sh | File | 744 B | 0755 |
|
| rename_flags.sh | File | 606 B | 0755 |
|
| sndrv_ctl_ioctl.sh | File | 419 B | 0755 |
|
| sndrv_pcm_ioctl.sh | File | 419 B | 0755 |
|
| sockaddr.sh | File | 928 B | 0755 |
|
| socket.sh | File | 874 B | 0755 |
|
| statx_mask.sh | File | 808 B | 0755 |
|
| sync_file_range.sh | File | 502 B | 0755 |
|
| usbdevfs_ioctl.sh | File | 1.05 KB | 0755 |
|
| vhost_virtio_ioctl.sh | File | 840 B | 0755 |
|
| x86_arch_prctl.sh | File | 911 B | 0755 |
|