mirror of
https://github.com/Karmaz95/Snake_Apple.git
synced 2026-09-29 00:01:44 +02:00
This commit is contained in:
1 parent
63971e56bc
commit
9a58e93e3c
2 files changed
+2
-2
No files matched your search
@@ -15,7 +15,7 @@ int main(int argc, char *argv[]) {
|
|||||||
// Get bootstrap port for service lookup
|
// Get bootstrap port for service lookup
|
||||||
mach_port_t port;
|
mach_port_t port;
|
||||||
kern_return_t kr = bootstrap_look_up(bootstrap_port,
|
kern_return_t kr = bootstrap_look_up(bootstrap_port,
|
||||||
"xyz.hacktricks.mig",
|
"com.crimson.message_service",
|
||||||
&port);
|
&port);
|
||||||
if (kr != KERN_SUCCESS) {
|
if (kr != KERN_SUCCESS) {
|
||||||
printf("Service not found\n");
|
printf("Service not found\n");
|
||||||
|
|||||||
@@ -26,7 +26,7 @@ int main() {
|
|||||||
kern_return_t kr;
|
kern_return_t kr;
|
||||||
|
|
||||||
// Register our service with the bootstrap server
|
// Register our service with the bootstrap server
|
||||||
kr = bootstrap_check_in(bootstrap_port, "xyz.hacktricks.mig", &port);
|
kr = bootstrap_check_in(bootstrap_port, "com.crimson.message_service", &port);
|
||||||
if (kr != KERN_SUCCESS) {
|
if (kr != KERN_SUCCESS) {
|
||||||
printf("bootstrap_check_in() failed with code 0x%x\n", kr);
|
printf("bootstrap_check_in() failed with code 0x%x\n", kr);
|
||||||
return 1;
|
return 1;
|
||||||
|
|||||||
Reference in new issue
Block a user