Skip to content

Commit

Permalink
Merge pull request #1 from kevinwallace/master
Browse files Browse the repository at this point in the history
Update for 10.7.1 (64-bit).
  • Loading branch information
dwalters committed May 9, 2012
2 parents c0223ff + 0aa9f16 commit 5fcd5a9
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 9 deletions.
10 changes: 5 additions & 5 deletions pt_deny_attach.c
Expand Up @@ -24,20 +24,20 @@
#include <stdint.h>
#include "structures.h"

/* This value is for OSX 10.6.5. The exact _nsysent offset can be found
/* This value is for OSX 10.7.1. The exact _nsysent offset can be found
* via:
*
* nm -arch i386 -g /mach_kernel | grep _nsysent
* nm -g /mach_kernel | grep _nsysent
*
* Due to a bug in the kext loading code, it's not currently possible
* to link against com.apple.kernel to let the linker locate this.
*
* http://packetstorm.foofus.com/papers/attack/osx1061sysent.txt
*/
#define _NSYSENT_OSX_10_6_1_ 0x00831790
*/<#macro#>
#define _NSYSENT_OSX_10_7_1_ 0xffffff8000846eb8

static struct sysent *_sysent;
static int *_nsysent = (int *)_NSYSENT_OSX_10_6_1_;
static int *_nsysent = (int *)_NSYSENT_OSX_10_7_1_;

typedef int ptrace_func_t (struct proc *, struct ptrace_args *, int *);
static ptrace_func_t *real_ptrace;
Expand Down
12 changes: 8 additions & 4 deletions pt_deny_attach.xcodeproj/project.pbxproj
Expand Up @@ -110,7 +110,11 @@
isa = PBXProject;
buildConfigurationList = 1DEB91C708733DAC0010E9CD /* Build configuration list for PBXProject "pt_deny_attach" */;
compatibilityVersion = "Xcode 3.1";
developmentRegion = English;
hasScannedForEncodings = 1;
knownRegions = (
en,
);
mainGroup = 089C166AFE841209C02AAC07 /* pt_deny_attach */;
projectDirPath = "";
projectRoot = "";
Expand Down Expand Up @@ -204,26 +208,26 @@
1DEB91C808733DAC0010E9CD /* Debug */ = {
isa = XCBuildConfiguration;
buildSettings = {
ARCHS = "$(ARCHS_STANDARD_32_64_BIT)";
ARCHS = "$(ARCHS_STANDARD_64_BIT)";
GCC_C_LANGUAGE_STANDARD = gnu99;
GCC_OPTIMIZATION_LEVEL = 0;
GCC_WARN_ABOUT_RETURN_TYPE = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
ONLY_ACTIVE_ARCH = YES;
PREBINDING = NO;
SDKROOT = macosx10.6;
SDKROOT = macosx10.7;
};
name = Debug;
};
1DEB91C908733DAC0010E9CD /* Release */ = {
isa = XCBuildConfiguration;
buildSettings = {
ARCHS = "$(ARCHS_STANDARD_32_64_BIT)";
ARCHS = "$(ARCHS_STANDARD_64_BIT)";
GCC_C_LANGUAGE_STANDARD = gnu99;
GCC_WARN_ABOUT_RETURN_TYPE = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
PREBINDING = NO;
SDKROOT = macosx10.6;
SDKROOT = macosx10.7;
};
name = Release;
};
Expand Down

0 comments on commit 5fcd5a9

Please sign in to comment.