OXIESEC PANEL
- Current Dir:
/
/
usr
/
src
/
linux-headers-4.15.0-213
/
tools
/
perf
/
trace
/
beauty
Server IP: 139.59.38.164
Upload:
Create Dir:
Name
Size
Modified
Perms
📁
..
-
05/09/2024 07:14:16 AM
rwxr-xr-x
📄
drm_ioctl.sh
551 bytes
01/28/2018 09:20:33 PM
rwxr-xr-x
📄
kcmp_type.sh
249 bytes
01/28/2018 09:20:33 PM
rwxr-xr-x
📄
kvm_ioctl.sh
435 bytes
01/28/2018 09:20:33 PM
rwxr-xr-x
📄
madvise_behavior.sh
326 bytes
01/28/2018 09:20:33 PM
rwxr-xr-x
📄
perf_ioctl.sh
361 bytes
01/28/2018 09:20:33 PM
rwxr-xr-x
📄
pkey_alloc_access_rights.sh
358 bytes
01/28/2018 09:20:33 PM
rwxr-xr-x
📄
prctl_option.sh
573 bytes
01/28/2018 09:20:33 PM
rwxr-xr-x
📄
sndrv_ctl_ioctl.sh
288 bytes
01/28/2018 09:20:33 PM
rwxr-xr-x
📄
sndrv_pcm_ioctl.sh
288 bytes
01/28/2018 09:20:33 PM
rwxr-xr-x
📄
vhost_virtio_ioctl.sh
722 bytes
01/28/2018 09:20:33 PM
rwxr-xr-x
Editing: prctl_option.sh
Close
#!/bin/sh header_dir=$1 printf "static const char *prctl_options[] = {\n" regex='^#define[[:space:]]+PR_([GS]ET\w+)[[:space:]]*([[:xdigit:]]+).*' egrep $regex ${header_dir}/prctl.h | grep -v PR_SET_PTRACER | \ sed -r "s/$regex/\2 \1/g" | \ sort -n | xargs printf "\t[%s] = \"%s\",\n" printf "};\n" printf "static const char *prctl_set_mm_options[] = {\n" regex='^#[[:space:]]+define[[:space:]]+PR_SET_MM_(\w+)[[:space:]]*([[:digit:]]+).*' egrep $regex ${header_dir}/prctl.h | \ sed -r "s/$regex/\2 \1/g" | \ sort -n | xargs printf "\t[%s] = \"%s\",\n" printf "};\n"