Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place.
Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place.
Path: blob/master/external/source/ipwn/cmd.h
Views: 11766
/*1* Copyright (c) 2004-2005 vlad902 <vlad902 [at] gmail.com>2* Copyright (c) 2007 H D Moore <hdm [at] metasploit.com>3* This file is part of the Metasploit Framework.4* $Revision$5*/67#ifndef _CMD_H8#define _CMD_H910/* Base */11int process_input(char *, int);12void parse(char *, int *, char * []);13void chomp(char *);1415void cmd_script(int, char * []);1617/* XXX: Re-do help to specify a category and print the commands in that category? */18void cmd_help(int, char * []);19void cmd_fork(int, char * []);20void cmd_exec(int, char * []);21void cmd_system(int, char * []);22void cmd_quit(int, char * []);2324/* File descriptor handling */25/* XXX: Take arg for perms (like lseek), O_EXCL?? */26void cmd_open(int, char * []);27void cmd_lseek(int, char * []);28void cmd_read(int, char * []);29void cmd_write(int, char * []);30void cmd_close(int, char * []);31void cmd_dup(int, char * []);32void cmd_dup2(int, char * []);3334/* File system */35/* XXX: copy, mount/unmount, showmount */36void cmd_ls(int, char * []);37void cmd_getcwd(int, char * []);38void cmd_setcwd(int, char * []);39void cmd_chmod(int, char * []);40void cmd_chown(int, char * []);41void cmd_chgrp(int, char * []);42void cmd_chdir(int, char * []);43void cmd_mkdir(int, char * []);44void cmd_rmdir(int, char * []);45void cmd_rename(int, char * []);46void cmd_unlink(int, char * []);47void cmd_chroot(int, char * []);48void cmd_link(int, char * []);49void cmd_symlink(int, char * []);50void cmd_cp(int, char * []);5152/* Privileges */53/* XXX: Print groups */54void cmd_getid(int, char * []);55void cmd_setuid(int, char * []);56void cmd_setgid(int, char * []);5758/* Process */59/* XXX: ps */60void cmd_kill(int, char * []);61void cmd_getpid(int, char * []);62void cmd_getppid(int, char * []);63void cmd_ps(int, char * []);6465/* Environment */66/* XXX: setenv, showenv */6768/* System */69/* XXX: dmesg, getrlimit */70void cmd_time(int, char * []);71void cmd_uname(int, char * []);72void cmd_hostname(int, char * []);73void cmd_reboot(int, char * []);74void cmd_shutdown(int, char * []);75void cmd_halt(int, char * []);7677/* Network */78void cmd_download(int, char * []);7980/* Misc. */81void cmd_lsfd(int, char * []);8283/* Exploit */84void cmd_fchdir_breakchroot(int, char * []);85868788#define __MIN_NUM(a, b) ((a) < (b) ? (a) : (b))89#define __MAX_NUM(a, b) ((a) > (b) ? (a) : (b))9091char * get_uid_str(int);92char * get_gid_str(int);93char * get_time_str(char *);9495void sig_chld_ignore(int);96void sig_chld_waitpid(int);97#endif /* _CMD_H */9899100