GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — linuxKernelRoot/testRoot/process64_inject.h at master · heckerstone/linuxKernelRoot

Expand file tree

/

process64_inject.h

Copy path
More file actions
More file actions

Latest commit

 

History

History
History
49 lines (45 loc) · 2.04 KB
/

process64_inject.h

Copy path

File metadata and controls

49 lines (45 loc) · 2.04 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
#ifndef _PROCESS64_INJECT_H_
#define _PROCESS64_INJECT_H_
#include "testRoot.h"
#include <unistd.h>
#include <vector>
//注入64位进程远程执行命令,备注:此命令会自动提权到ROOT、并且关闭SELinux。结束运行后可根据自己的需要决定是否手动重新打开SELinux
struct process64_env
{
char key[0x1000]; //key和name的值不能大于pagesize
char value[0x1000];
};
ssize_t inject_process64_run_cmd_wrapper(
unsigned int root_key,
pid_t target_pid,
const char *cmd,
const char* p_out_result_buf = NULL,
size_t out_result_buf_size = 0,
bool user_root_auth = true,
bool after_recovery_last_uid = false,
bool after_recovery_last_gid = false,
const char * chdir_path = NULL,
bool clear_env = false,
std::vector<process64_env> *set_env = NULL);
//fork安全版本(可用于安卓APP直接调用)
ssize_t safe_inject_process64_run_cmd_wrapper(
unsigned int root_key,
pid_t target_pid,
const char *cmd,
const char* p_out_result_buf = NULL,
size_t out_result_buf_size = 0,
bool user_root_auth = true,
bool after_recovery_last_uid = false,
bool after_recovery_last_gid = false,
const char * chdir_path = NULL,
bool clear_env = false,
std::vector<process64_env> *set_env = NULL);
//注入远程进程添加PATH变量路径,备注:此命令会自动提权到ROOT、并且关闭SELinux。结束运行后可根据自己的需要决定是否手动重新打开SELinux
ssize_t inject_process_env64_PATH_wrapper(unsigned int root_key, int target_pid, const char *add_path);
//fork安全版本(可用于安卓APP直接调用)
ssize_t safe_inject_process_env64_PATH_wrapper(unsigned int root_key, int target_pid, const char *add_path);
//注入64位进程动态链接库so,备注:此命令会自动提权到ROOT、并且关闭SELinux。结束运行后可根据自己的需要决定是否手动重新打开SELinux
ssize_t inject_process64_so_wrapper(unsigned int root_key, pid_t target_pid, const char *p_target_so_path, const char* p_target_so_func_name);
//fork安全版本(可用于安卓APP直接调用)
ssize_t safe_inject_process64_so_wrapper(unsigned int root_key, pid_t target_pid, const char *p_target_so_path, const char* p_target_so_func_name);
#endif /* _PROCESS64_INJECT_H_ */
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.