OXIESEC PANEL
- Current Dir:
/
/
usr
/
include
Server IP: 10.0.0.4
Upload:
Create Dir:
Name
Size
Modified
Perms
📁
..
-
09/26/2021 03:27:18 AM
rwxr-xr-x
📄
_G_config.h
932 bytes
01/24/2022 12:53:44 PM
rw-r--r--
📄
aio.h
7.28 KB
01/24/2022 12:53:44 PM
rw-r--r--
📄
aliases.h
1.98 KB
01/24/2022 12:53:44 PM
rw-r--r--
📄
alloca.h
1.17 KB
01/24/2022 12:53:44 PM
rw-r--r--
📄
ar.h
1.69 KB
01/24/2022 12:53:44 PM
rw-r--r--
📄
argp.h
24.82 KB
01/24/2022 12:53:44 PM
rw-r--r--
📄
argz.h
5.91 KB
01/24/2022 12:53:44 PM
rw-r--r--
📁
arpa
-
03/02/2022 06:10:39 AM
rwxr-xr-x
📁
asm-generic
-
11/20/2022 06:45:48 AM
rwxr-xr-x
📄
assert.h
4.53 KB
01/24/2022 12:53:44 PM
rw-r--r--
📁
btrfs
-
10/14/2020 08:20:04 AM
rwxr-xr-x
📄
byteswap.h
1.37 KB
01/24/2022 12:53:44 PM
rw-r--r--
📁
c++
-
09/19/2021 04:37:46 PM
rwxr-xr-x
📄
cifsidmap.h
6 KB
06/01/2022 04:19:46 PM
rw-r--r--
📄
complex.h
7 KB
01/24/2022 12:53:44 PM
rw-r--r--
📄
cpio.h
2.21 KB
01/24/2022 12:53:44 PM
rw-r--r--
📄
crypt.h
2.21 KB
01/24/2022 12:53:44 PM
rw-r--r--
📄
ctype.h
10.71 KB
01/24/2022 12:53:44 PM
rw-r--r--
📄
dirent.h
12.19 KB
01/24/2022 12:53:44 PM
rw-r--r--
📄
dlfcn.h
6.85 KB
01/24/2022 12:53:44 PM
rw-r--r--
📁
drm
-
11/20/2022 06:45:48 AM
rwxr-xr-x
📄
elf.h
166.04 KB
01/24/2022 12:53:44 PM
rw-r--r--
📄
endian.h
3.11 KB
01/24/2022 12:53:44 PM
rw-r--r--
📄
envz.h
2.8 KB
01/24/2022 12:53:44 PM
rw-r--r--
📄
err.h
2.16 KB
01/24/2022 12:53:44 PM
rw-r--r--
📄
errno.h
1.79 KB
01/24/2022 12:53:44 PM
rw-r--r--
📄
error.h
1.99 KB
01/24/2022 12:53:44 PM
rw-r--r--
📄
execinfo.h
1.49 KB
01/24/2022 12:53:44 PM
rw-r--r--
📄
expat.h
43.17 KB
11/18/2022 10:57:30 AM
rw-r--r--
📄
expat_external.h
5.4 KB
11/18/2022 10:57:30 AM
rw-r--r--
📄
fcntl.h
9.24 KB
01/24/2022 12:53:44 PM
rw-r--r--
📄
features.h
15.18 KB
01/24/2022 12:53:44 PM
rw-r--r--
📄
fenv.h
5.72 KB
01/24/2022 12:53:44 PM
rw-r--r--
📄
fmtmsg.h
3.16 KB
01/24/2022 12:53:44 PM
rw-r--r--
📄
fnmatch.h
2.24 KB
01/24/2022 12:53:44 PM
rw-r--r--
📄
fstab.h
3.04 KB
01/24/2022 12:53:44 PM
rw-r--r--
📄
fts.h
8.18 KB
01/24/2022 12:53:44 PM
rw-r--r--
📄
ftw.h
5.13 KB
01/24/2022 12:53:44 PM
rw-r--r--
📄
gawkapi.h
30.31 KB
02/11/2018 05:02:41 AM
rw-r--r--
📄
gconv.h
4.31 KB
01/24/2022 12:53:44 PM
rw-r--r--
📄
getopt.h
1.43 KB
01/24/2022 12:53:44 PM
rw-r--r--
📄
glob.h
6.46 KB
01/24/2022 12:53:44 PM
rw-r--r--
📄
gnu-versions.h
2.29 KB
01/24/2022 12:53:44 PM
rw-r--r--
📄
gnumake.h
2.84 KB
04/17/2018 12:12:28 PM
rw-r--r--
📄
grp.h
6.53 KB
01/24/2022 12:53:44 PM
rw-r--r--
📄
gshadow.h
4.42 KB
01/24/2022 12:53:44 PM
rw-r--r--
📄
iconv.h
1.81 KB
01/24/2022 12:53:44 PM
rw-r--r--
📄
ifaddrs.h
2.77 KB
01/24/2022 12:53:44 PM
rw-r--r--
📄
inttypes.h
11.61 KB
01/24/2022 12:53:44 PM
rw-r--r--
📄
langinfo.h
17.43 KB
01/24/2022 12:53:44 PM
rw-r--r--
📄
lastlog.h
126 bytes
01/24/2022 12:53:44 PM
rw-r--r--
📄
libgen.h
1.35 KB
01/24/2022 12:53:44 PM
rw-r--r--
📄
libintl.h
4.47 KB
01/24/2022 12:53:44 PM
rw-r--r--
📄
libio.h
918 bytes
01/24/2022 12:53:44 PM
rw-r--r--
📄
limits.h
5.29 KB
01/24/2022 12:53:44 PM
rw-r--r--
📄
link.h
7.04 KB
01/24/2022 12:53:44 PM
rw-r--r--
📁
linux
-
11/20/2022 06:45:48 AM
rwxr-xr-x
📄
locale.h
7.49 KB
01/24/2022 12:53:44 PM
rw-r--r--
📄
malloc.h
5.96 KB
01/24/2022 12:53:44 PM
rw-r--r--
📄
math.h
44.33 KB
01/24/2022 12:53:44 PM
rw-r--r--
📄
mcheck.h
2.38 KB
01/24/2022 12:53:44 PM
rw-r--r--
📄
memory.h
955 bytes
01/24/2022 12:53:44 PM
rw-r--r--
📁
misc
-
11/20/2022 06:45:48 AM
rwxr-xr-x
📄
mntent.h
3.28 KB
01/24/2022 12:53:44 PM
rw-r--r--
📄
monetary.h
1.76 KB
01/24/2022 12:53:44 PM
rw-r--r--
📄
mqueue.h
3.67 KB
01/24/2022 12:53:44 PM
rw-r--r--
📁
mtd
-
11/20/2022 06:45:48 AM
rwxr-xr-x
📁
net
-
03/02/2022 06:10:39 AM
rwxr-xr-x
📁
netash
-
03/02/2022 06:10:39 AM
rwxr-xr-x
📁
netatalk
-
03/02/2022 06:10:39 AM
rwxr-xr-x
📁
netax25
-
03/02/2022 06:10:39 AM
rwxr-xr-x
📄
netdb.h
27.39 KB
01/24/2022 12:53:44 PM
rw-r--r--
📁
neteconet
-
03/02/2022 06:10:39 AM
rwxr-xr-x
📁
netinet
-
03/02/2022 06:10:39 AM
rwxr-xr-x
📁
netipx
-
03/02/2022 06:10:39 AM
rwxr-xr-x
📁
netiucv
-
03/02/2022 06:10:39 AM
rwxr-xr-x
📁
netpacket
-
03/02/2022 06:10:39 AM
rwxr-xr-x
📁
netrom
-
03/02/2022 06:10:39 AM
rwxr-xr-x
📁
netrose
-
03/02/2022 06:10:39 AM
rwxr-xr-x
📁
nfs
-
03/02/2022 06:10:39 AM
rwxr-xr-x
📄
nl_types.h
1.71 KB
01/24/2022 12:53:44 PM
rw-r--r--
📄
nss.h
1.83 KB
01/24/2022 12:53:44 PM
rw-r--r--
📄
obstack.h
20.81 KB
01/24/2022 12:53:44 PM
rw-r--r--
📄
paths.h
2.91 KB
01/24/2022 12:53:44 PM
rw-r--r--
📄
poll.h
22 bytes
01/24/2022 12:53:44 PM
rw-r--r--
📄
printf.h
6.64 KB
01/24/2022 12:53:44 PM
rw-r--r--
📄
proc_service.h
3.39 KB
01/24/2022 12:53:44 PM
rw-r--r--
📁
protocols
-
03/02/2022 06:10:39 AM
rwxr-xr-x
📄
pthread.h
40.3 KB
01/24/2022 12:53:44 PM
rw-r--r--
📄
pty.h
1.53 KB
01/24/2022 12:53:44 PM
rw-r--r--
📄
pwd.h
5.89 KB
01/24/2022 12:53:44 PM
rw-r--r--
📁
python3.6
-
07/15/2022 06:13:48 AM
rwxr-xr-x
📁
python3.6m
-
07/15/2022 06:13:48 AM
rwxr-xr-x
📁
rdma
-
11/20/2022 06:45:48 AM
rwxr-xr-x
📄
re_comp.h
962 bytes
01/24/2022 12:53:44 PM
rw-r--r--
📄
regex.h
21.53 KB
01/24/2022 12:53:44 PM
rw-r--r--
📄
regexp.h
1.41 KB
01/24/2022 12:53:44 PM
rw-r--r--
📁
reglib
-
10/14/2020 08:39:19 AM
rwxr-xr-x
📄
resolv.h
11.73 KB
01/24/2022 12:53:44 PM
rw-r--r--
📁
rpc
-
03/02/2022 06:10:39 AM
rwxr-xr-x
📁
rpcsvc
-
03/02/2022 06:10:39 AM
rwxr-xr-x
📄
sched.h
4.62 KB
01/24/2022 12:53:44 PM
rw-r--r--
📁
scsi
-
11/20/2022 06:45:48 AM
rwxr-xr-x
📄
search.h
5.1 KB
01/24/2022 12:53:44 PM
rw-r--r--
📄
semaphore.h
2.34 KB
01/24/2022 12:53:44 PM
rw-r--r--
📄
setjmp.h
3.58 KB
01/24/2022 12:53:44 PM
rw-r--r--
📄
sgtty.h
1.31 KB
01/24/2022 12:53:44 PM
rw-r--r--
📄
shadow.h
5.08 KB
01/24/2022 12:53:44 PM
rw-r--r--
📄
signal.h
11.96 KB
01/24/2022 12:53:44 PM
rw-r--r--
📁
sound
-
11/20/2022 06:45:48 AM
rwxr-xr-x
📄
spawn.h
6.53 KB
01/24/2022 12:53:44 PM
rw-r--r--
📄
stab.h
264 bytes
01/24/2022 12:53:44 PM
rw-r--r--
📄
stdc-predef.h
2.31 KB
01/24/2022 12:53:44 PM
rw-r--r--
📄
stdint.h
8.42 KB
01/24/2022 12:53:44 PM
rw-r--r--
📄
stdio.h
28.97 KB
01/24/2022 12:53:44 PM
rw-r--r--
📄
stdio_ext.h
2.73 KB
01/24/2022 12:53:44 PM
rw-r--r--
📄
stdlib.h
34.95 KB
01/24/2022 12:53:44 PM
rw-r--r--
📄
string.h
17.13 KB
01/24/2022 12:53:44 PM
rw-r--r--
📄
strings.h
4.64 KB
01/24/2022 12:53:44 PM
rw-r--r--
📄
stropts.h
2.98 KB
01/24/2022 12:53:44 PM
rw-r--r--
📄
sudo_plugin.h
7.89 KB
01/19/2021 02:36:00 PM
rw-r--r--
📄
syscall.h
25 bytes
01/24/2022 12:53:44 PM
rw-r--r--
📄
sysexits.h
5.11 KB
01/24/2022 12:53:44 PM
rw-r--r--
📄
syslog.h
24 bytes
01/24/2022 12:53:44 PM
rw-r--r--
📄
tar.h
3.7 KB
01/24/2022 12:53:44 PM
rw-r--r--
📄
termio.h
214 bytes
01/24/2022 12:53:44 PM
rw-r--r--
📄
termios.h
3.51 KB
01/24/2022 12:53:44 PM
rw-r--r--
📄
tgmath.h
30.75 KB
01/24/2022 12:53:44 PM
rw-r--r--
📄
thread_db.h
15.65 KB
01/24/2022 12:53:44 PM
rw-r--r--
📄
time.h
10.12 KB
01/24/2022 12:53:44 PM
rw-r--r--
📄
ttyent.h
2.44 KB
01/24/2022 12:53:44 PM
rw-r--r--
📄
uchar.h
2.26 KB
01/24/2022 12:53:44 PM
rw-r--r--
📄
ucontext.h
1.89 KB
01/24/2022 12:53:44 PM
rw-r--r--
📄
ulimit.h
1.55 KB
01/24/2022 12:53:44 PM
rw-r--r--
📄
unistd.h
41.78 KB
01/24/2022 12:53:44 PM
rw-r--r--
📄
ustat.h
23 bytes
01/24/2022 12:53:44 PM
rw-r--r--
📄
utime.h
1.47 KB
01/24/2022 12:53:44 PM
rw-r--r--
📄
utmp.h
3.15 KB
01/24/2022 12:53:44 PM
rw-r--r--
📄
utmpx.h
4 KB
01/24/2022 12:53:44 PM
rw-r--r--
📄
values.h
1.91 KB
01/24/2022 12:53:44 PM
rw-r--r--
📁
video
-
11/20/2022 06:45:48 AM
rwxr-xr-x
📄
wait.h
22 bytes
01/24/2022 12:53:44 PM
rw-r--r--
📄
wchar.h
30.38 KB
01/24/2022 12:53:44 PM
rw-r--r--
📄
wctype.h
5.42 KB
01/24/2022 12:53:44 PM
rw-r--r--
📄
wordexp.h
2.44 KB
01/24/2022 12:53:44 PM
rw-r--r--
📁
x86_64-linux-gnu
-
11/24/2022 06:55:49 AM
rwxr-xr-x
📁
xen
-
11/20/2022 06:45:48 AM
rwxr-xr-x
📁
xfs
-
04/18/2018 06:44:31 AM
rwxr-xr-x
Editing: sudo_plugin.h
Close
/* * Copyright (c) 2009-2017 Todd C. Miller <Todd.Miller@courtesan.com> * * Permission to use, copy, modify, and distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in all copies. * * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ #ifndef SUDO_PLUGIN_H #define SUDO_PLUGIN_H /* API version major/minor */ #define SUDO_API_VERSION_MAJOR 1 #define SUDO_API_VERSION_MINOR 12 #define SUDO_API_MKVERSION(x, y) (((x) << 16) | (y)) #define SUDO_API_VERSION SUDO_API_MKVERSION(SUDO_API_VERSION_MAJOR, SUDO_API_VERSION_MINOR) /* Getters and setters for plugin API versions */ #define SUDO_API_VERSION_GET_MAJOR(v) ((v) >> 16) #define SUDO_API_VERSION_GET_MINOR(v) ((v) & 0xffffU) #define SUDO_API_VERSION_SET_MAJOR(vp, n) do { \ *(vp) = (*(vp) & 0x0000ffffU) | ((n) << 16); \ } while(0) #define SUDO_API_VERSION_SET_MINOR(vp, n) do { \ *(vp) = (*(vp) & 0xffff0000U) | (n); \ } while(0) /* Conversation function types and defines */ struct sudo_conv_message { #define SUDO_CONV_PROMPT_ECHO_OFF 0x0001 /* do not echo user input */ #define SUDO_CONV_PROMPT_ECHO_ON 0x0002 /* echo user input */ #define SUDO_CONV_ERROR_MSG 0x0003 /* error message */ #define SUDO_CONV_INFO_MSG 0x0004 /* informational message */ #define SUDO_CONV_PROMPT_MASK 0x0005 /* mask user input */ #define SUDO_CONV_PROMPT_ECHO_OK 0x1000 /* flag: allow echo if no tty */ int msg_type; int timeout; const char *msg; }; /* * Maximum length of a reply (not including the trailing NUL) when * conversing with the user. In practical terms, this is the longest * password sudo will support. This means that a buffer of size * SUDO_CONV_REPL_MAX+1 is guaranteed to be able to hold any reply * from the conversation function. It is also useful as a max value * for memset_s() when clearing passwords returned by the conversation * function. */ #define SUDO_CONV_REPL_MAX 255 struct sudo_conv_reply { char *reply; }; /* Conversation callback API version major/minor */ #define SUDO_CONV_CALLBACK_VERSION_MAJOR 1 #define SUDO_CONV_CALLBACK_VERSION_MINOR 0 #define SUDO_CONV_CALLBACK_VERSION SUDO_API_MKVERSION(SUDO_CONV_CALLBACK_VERSION_MAJOR, SUDO_CONV_CALLBACK_VERSION_MINOR) /* * Callback struct to be passed to the conversation function. * Can be used to perform operations on suspend/resume such * as dropping/acquiring locks. */ typedef int (*sudo_conv_callback_fn_t)(int signo, void *closure); struct sudo_conv_callback { unsigned int version; void *closure; sudo_conv_callback_fn_t on_suspend; sudo_conv_callback_fn_t on_resume; }; typedef int (*sudo_conv_t)(int num_msgs, const struct sudo_conv_message msgs[], struct sudo_conv_reply replies[], struct sudo_conv_callback *callback); typedef int (*sudo_printf_t)(int msg_type, const char *fmt, ...); /* * Hooks allow a plugin to hook into specific sudo and/or libc functions. */ /* Hook functions typedefs. */ typedef int (*sudo_hook_fn_t)(); typedef int (*sudo_hook_fn_setenv_t)(const char *name, const char *value, int overwrite, void *closure); typedef int (*sudo_hook_fn_putenv_t)(char *string, void *closure); typedef int (*sudo_hook_fn_getenv_t)(const char *name, char **value, void *closure); typedef int (*sudo_hook_fn_unsetenv_t)(const char *name, void *closure); /* Hook structure definition. */ struct sudo_hook { unsigned int hook_version; unsigned int hook_type; sudo_hook_fn_t hook_fn; void *closure; }; /* Hook API version major/minor */ #define SUDO_HOOK_VERSION_MAJOR 1 #define SUDO_HOOK_VERSION_MINOR 0 #define SUDO_HOOK_VERSION SUDO_API_MKVERSION(SUDO_HOOK_VERSION_MAJOR, SUDO_HOOK_VERSION_MINOR) /* * Hook function return values. */ #define SUDO_HOOK_RET_ERROR -1 /* error */ #define SUDO_HOOK_RET_NEXT 0 /* go to the next hook in the list */ #define SUDO_HOOK_RET_STOP 1 /* stop hook processing for this type */ /* * Hooks for setenv/unsetenv/putenv/getenv. * This allows the plugin to be notified when a PAM module modifies * the environment so it can update the copy of the environment that * is passed to execve(). */ #define SUDO_HOOK_SETENV 1 #define SUDO_HOOK_UNSETENV 2 #define SUDO_HOOK_PUTENV 3 #define SUDO_HOOK_GETENV 4 /* Policy plugin type and defines */ struct passwd; struct policy_plugin { #define SUDO_POLICY_PLUGIN 1 unsigned int type; /* always SUDO_POLICY_PLUGIN */ unsigned int version; /* always SUDO_API_VERSION */ int (*open)(unsigned int version, sudo_conv_t conversation, sudo_printf_t sudo_printf, char * const settings[], char * const user_info[], char * const user_env[], char * const plugin_plugins[]); void (*close)(int exit_status, int error); /* wait status or error */ int (*show_version)(int verbose); int (*check_policy)(int argc, char * const argv[], char *env_add[], char **command_info[], char **argv_out[], char **user_env_out[]); int (*list)(int argc, char * const argv[], int verbose, const char *list_user); int (*validate)(void); void (*invalidate)(int remove); int (*init_session)(struct passwd *pwd, char **user_env_out[]); void (*register_hooks)(int version, int (*register_hook)(struct sudo_hook *hook)); void (*deregister_hooks)(int version, int (*deregister_hook)(struct sudo_hook *hook)); }; /* I/O plugin type and defines */ struct io_plugin { #define SUDO_IO_PLUGIN 2 unsigned int type; /* always SUDO_IO_PLUGIN */ unsigned int version; /* always SUDO_API_VERSION */ int (*open)(unsigned int version, sudo_conv_t conversation, sudo_printf_t sudo_printf, char * const settings[], char * const user_info[], char * const command_info[], int argc, char * const argv[], char * const user_env[], char * const plugin_plugins[]); void (*close)(int exit_status, int error); /* wait status or error */ int (*show_version)(int verbose); int (*log_ttyin)(const char *buf, unsigned int len); int (*log_ttyout)(const char *buf, unsigned int len); int (*log_stdin)(const char *buf, unsigned int len); int (*log_stdout)(const char *buf, unsigned int len); int (*log_stderr)(const char *buf, unsigned int len); void (*register_hooks)(int version, int (*register_hook)(struct sudo_hook *hook)); void (*deregister_hooks)(int version, int (*deregister_hook)(struct sudo_hook *hook)); int (*change_winsize)(unsigned int rows, unsigned int cols); }; /* Sudoers group plugin version major/minor */ #define GROUP_API_VERSION_MAJOR 1 #define GROUP_API_VERSION_MINOR 0 #define GROUP_API_VERSION SUDO_API_MKVERSION(GROUP_API_VERSION_MAJOR, GROUP_API_VERSION_MINOR) /* Getters and setters for group version (for source compat only) */ #define GROUP_API_VERSION_GET_MAJOR(v) SUDO_API_VERSION_GET_MAJOR(v) #define GROUP_API_VERSION_GET_MINOR(v) SUDO_API_VERSION_GET_MINOR(v) #define GROUP_API_VERSION_SET_MAJOR(vp, n) SUDO_API_VERSION_SET_MAJOR(vp, n) #define GROUP_API_VERSION_SET_MINOR(vp, n) SUDO_API_VERSION_SET_MINOR(vp, n) /* * version: for compatibility checking * group_init: return 1 on success, 0 if unconfigured, -1 on error. * group_cleanup: called to clean up resources used by provider * user_in_group: returns 1 if user is in group, 0 if not. * note that pwd may be NULL if the user is not in passwd. */ struct sudoers_group_plugin { unsigned int version; int (*init)(int version, sudo_printf_t sudo_printf, char *const argv[]); void (*cleanup)(void); int (*query)(const char *user, const char *group, const struct passwd *pwd); }; #endif /* SUDO_PLUGIN_H */