-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathuser_patcher.cc
42 lines (34 loc) · 1.34 KB
/
user_patcher.cc
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
/*
* Copyright (c) YungRaj
*
* This program is free software; you can redistribute it and/or modify it
* under the terms and conditions of the GNU General Public License,
* version 2, as published by the Free Software Foundation.
*
* This program is distributed in the hope it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
* more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include "user_patcher.h"
#include "hook.h"
#include "payload.h"
void UserPatcher::FindAndReplace(void* data, Size dataSize, const void* find, Size findSize,
const void* replace, Size replaceSize) {
}
void UserPatcher::RouteFunction(Hook* hook) {
}
void UserPatcher::OnKextLoad(void* kext, kmod_info_t* kmod) {
}
void UserPatcher::OnExec(char* name, int pid, xnu::mach::Port port, xnu::mach::VmAddress task,
xnu::mach::VmAddress proc) {
}
xnu::mach::VmAddress UserPatcher::InjectPayload(xnu::mach::VmAddress address, Payload* payload) {
return 0;
}
xnu::mach::VmAddress UserPatcher::InjectSegment(xnu::mach::VmAddress address, Payload* payload) {
return 0;
}