Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Porting to OSX #94

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 8 commits into
base: master
Choose a base branch
Loading
from
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
...
  • Loading branch information
Sylvain Martens committed Mar 5, 2019
commit 468a4f99dd8f95d8a76caef7965d30c8d0f5502e
Binary file modified BIN +0 Bytes (100%) NativeCore/Unix/.DS_Store
Binary file not shown.
4 changes: 3 additions & 1 deletion 4 NativeCore/Unix/EnumerateRemoteSectionsAndModules.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,10 @@ extern "C" void RC_CallConv EnumerateRemoteSectionsAndModules(RC_Pointer handle,
intptr_t End = 0;
RC_UnicodeChar Path[PATH_MAXIMUM_LENGTH] = {};
};

auto inputData = (std::stringstream() << "/proc/" << reinterpret_cast<intptr_t>(handle) << "/maps").str();

std::ifstream input(static_cast<std::stringstream&>(std::stringstream() << "/proc/" << reinterpret_cast<intptr_t>(handle) << "/maps").str());
std::ifstream input(inputData);

std::unordered_map<int, ModuleInfo> modules;

Expand Down
2 changes: 1 addition & 1 deletion 2 NativeCore/Unix/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ INC = -I../Dependencies/distorm/include
CFLAGS = -Wall -fPIC -DRECLASSNET64=1
RESINC =
LIBDIR =
LIB = -lstdc++fs -lstdc++
LIB = -lstdc++fs -lstdc++ -lc++experimental
LDFLAGS = -shared -Wl,--no-undefined

INC_DEBUG = $(INC)
Expand Down
247 changes: 247 additions & 0 deletions 247 NativeCore/Unix/NativeCore.Unix.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,247 @@
// !$*UTF8*$!
{
archiveVersion = 1;
classes = {
};
objectVersion = 50;
objects = {

/* Begin PBXFileReference section */
3DB0D767222F2E5600A865BF /* IsProcessValid.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = IsProcessValid.cpp; sourceTree = "<group>"; };
3DB0D768222F2E5600A865BF /* CloseRemoteProcess.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = CloseRemoteProcess.cpp; sourceTree = "<group>"; };
3DB0D769222F2E5600A865BF /* EnumerateProcesses.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = EnumerateProcesses.cpp; sourceTree = "<group>"; };
3DB0D76A222F2E5600A865BF /* Input.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = Input.cpp; sourceTree = "<group>"; };
3DB0D76B222F2E5600A865BF /* OpenRemoteProcess.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = OpenRemoteProcess.cpp; sourceTree = "<group>"; };
3DB0D76C222F2E5700A865BF /* EnumerateRemoteSectionsAndModules.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = EnumerateRemoteSectionsAndModules.cpp; sourceTree = "<group>"; };
3DB0D76D222F2E5700A865BF /* ReadRemoteMemory.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = ReadRemoteMemory.cpp; sourceTree = "<group>"; };
3DB0D76E222F2E5700A865BF /* WriteRemoteMemory.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = WriteRemoteMemory.cpp; sourceTree = "<group>"; };
3DB0D76F222F2E5700A865BF /* ControlRemoteProcess.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = ControlRemoteProcess.cpp; sourceTree = "<group>"; };
3DB0D770222F2E5700A865BF /* Debugger.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = Debugger.cpp; sourceTree = "<group>"; };
3DB0D771222F2E5700A865BF /* DisassembleCode.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = DisassembleCode.cpp; sourceTree = "<group>"; };
3DB0D772222F2E5700A865BF /* NativeCore.hpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.h; path = NativeCore.hpp; sourceTree = "<group>"; };
3DB0D773222F2E6800A865BF /* Makefile */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.make; path = Makefile; sourceTree = "<group>"; };
/* End PBXFileReference section */

/* Begin PBXGroup section */
3DB0D75C222F2E4300A865BF = {
isa = PBXGroup;
children = (
3DB0D773222F2E6800A865BF /* Makefile */,
3DB0D768222F2E5600A865BF /* CloseRemoteProcess.cpp */,
3DB0D76F222F2E5700A865BF /* ControlRemoteProcess.cpp */,
3DB0D770222F2E5700A865BF /* Debugger.cpp */,
3DB0D771222F2E5700A865BF /* DisassembleCode.cpp */,
3DB0D769222F2E5600A865BF /* EnumerateProcesses.cpp */,
3DB0D76C222F2E5700A865BF /* EnumerateRemoteSectionsAndModules.cpp */,
3DB0D76A222F2E5600A865BF /* Input.cpp */,
3DB0D767222F2E5600A865BF /* IsProcessValid.cpp */,
3DB0D772222F2E5700A865BF /* NativeCore.hpp */,
3DB0D76B222F2E5600A865BF /* OpenRemoteProcess.cpp */,
3DB0D76D222F2E5700A865BF /* ReadRemoteMemory.cpp */,
3DB0D76E222F2E5700A865BF /* WriteRemoteMemory.cpp */,
);
sourceTree = "<group>";
};
/* End PBXGroup section */

/* Begin PBXLegacyTarget section */
3DB0D761222F2E4300A865BF /* NativeCore.Unix */ = {
isa = PBXLegacyTarget;
buildArgumentsString = "$(ACTION)";
buildConfigurationList = 3DB0D764222F2E4300A865BF /* Build configuration list for PBXLegacyTarget "NativeCore.Unix" */;
buildPhases = (
);
buildToolPath = /usr/bin/make;
buildWorkingDirectory = /Users/h3xc0r3/Documents/GitHub/ReClass.NET/NativeCore/Unix;
dependencies = (
);
name = NativeCore.Unix;
passBuildSettingsInEnvironment = 1;
productName = NativeCore.Unix;
};
/* End PBXLegacyTarget section */

/* Begin PBXProject section */
3DB0D75D222F2E4300A865BF /* Project object */ = {
isa = PBXProject;
attributes = {
LastUpgradeCheck = 0940;
ORGANIZATIONNAME = H3XC0R3;
TargetAttributes = {
3DB0D761222F2E4300A865BF = {
CreatedOnToolsVersion = 9.4.1;
};
};
};
buildConfigurationList = 3DB0D760222F2E4300A865BF /* Build configuration list for PBXProject "NativeCore.Unix" */;
compatibilityVersion = "Xcode 9.3";
developmentRegion = en;
hasScannedForEncodings = 0;
knownRegions = (
en,
);
mainGroup = 3DB0D75C222F2E4300A865BF;
projectDirPath = "";
projectRoot = "";
targets = (
3DB0D761222F2E4300A865BF /* NativeCore.Unix */,
);
};
/* End PBXProject section */

/* Begin XCBuildConfiguration section */
3DB0D762222F2E4300A865BF /* Debug */ = {
isa = XCBuildConfiguration;
buildSettings = {
ALWAYS_SEARCH_USER_PATHS = NO;
CLANG_ANALYZER_NONNULL = YES;
CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
CLANG_CXX_LANGUAGE_STANDARD = "gnu++14";
CLANG_CXX_LIBRARY = "libc++";
CLANG_ENABLE_MODULES = YES;
CLANG_ENABLE_OBJC_ARC = YES;
CLANG_ENABLE_OBJC_WEAK = YES;
CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
CLANG_WARN_BOOL_CONVERSION = YES;
CLANG_WARN_COMMA = YES;
CLANG_WARN_CONSTANT_CONVERSION = YES;
CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
CLANG_WARN_EMPTY_BODY = YES;
CLANG_WARN_ENUM_CONVERSION = YES;
CLANG_WARN_INFINITE_RECURSION = YES;
CLANG_WARN_INT_CONVERSION = YES;
CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
CLANG_WARN_STRICT_PROTOTYPES = YES;
CLANG_WARN_SUSPICIOUS_MOVE = YES;
CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE;
CLANG_WARN_UNREACHABLE_CODE = YES;
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
COPY_PHASE_STRIP = NO;
DEBUG_INFORMATION_FORMAT = dwarf;
ENABLE_STRICT_OBJC_MSGSEND = YES;
ENABLE_TESTABILITY = YES;
GCC_C_LANGUAGE_STANDARD = gnu11;
GCC_DYNAMIC_NO_PIC = NO;
GCC_NO_COMMON_BLOCKS = YES;
GCC_OPTIMIZATION_LEVEL = 0;
GCC_PREPROCESSOR_DEFINITIONS = (
"DEBUG=1",
"$(inherited)",
);
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
GCC_WARN_UNDECLARED_SELECTOR = YES;
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
MTL_ENABLE_DEBUG_INFO = YES;
ONLY_ACTIVE_ARCH = YES;
};
name = Debug;
};
3DB0D763222F2E4300A865BF /* Release */ = {
isa = XCBuildConfiguration;
buildSettings = {
ALWAYS_SEARCH_USER_PATHS = NO;
CLANG_ANALYZER_NONNULL = YES;
CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
CLANG_CXX_LANGUAGE_STANDARD = "gnu++14";
CLANG_CXX_LIBRARY = "libc++";
CLANG_ENABLE_MODULES = YES;
CLANG_ENABLE_OBJC_ARC = YES;
CLANG_ENABLE_OBJC_WEAK = YES;
CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
CLANG_WARN_BOOL_CONVERSION = YES;
CLANG_WARN_COMMA = YES;
CLANG_WARN_CONSTANT_CONVERSION = YES;
CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
CLANG_WARN_EMPTY_BODY = YES;
CLANG_WARN_ENUM_CONVERSION = YES;
CLANG_WARN_INFINITE_RECURSION = YES;
CLANG_WARN_INT_CONVERSION = YES;
CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
CLANG_WARN_STRICT_PROTOTYPES = YES;
CLANG_WARN_SUSPICIOUS_MOVE = YES;
CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE;
CLANG_WARN_UNREACHABLE_CODE = YES;
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
COPY_PHASE_STRIP = NO;
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
ENABLE_NS_ASSERTIONS = NO;
ENABLE_STRICT_OBJC_MSGSEND = YES;
GCC_C_LANGUAGE_STANDARD = gnu11;
GCC_NO_COMMON_BLOCKS = YES;
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
GCC_WARN_UNDECLARED_SELECTOR = YES;
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
MTL_ENABLE_DEBUG_INFO = NO;
};
name = Release;
};
3DB0D765222F2E4300A865BF /* Debug */ = {
isa = XCBuildConfiguration;
buildSettings = {
CODE_SIGN_STYLE = Automatic;
DEBUGGING_SYMBOLS = YES;
DEBUG_INFORMATION_FORMAT = dwarf;
DEVELOPMENT_TEAM = 8329RW92UW;
GCC_GENERATE_DEBUGGING_SYMBOLS = YES;
GCC_OPTIMIZATION_LEVEL = 0;
OTHER_CFLAGS = "";
OTHER_LDFLAGS = "";
PRODUCT_NAME = "$(TARGET_NAME)";
};
name = Debug;
};
3DB0D766222F2E4300A865BF /* Release */ = {
isa = XCBuildConfiguration;
buildSettings = {
CODE_SIGN_STYLE = Automatic;
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
DEVELOPMENT_TEAM = 8329RW92UW;
OTHER_CFLAGS = "";
OTHER_LDFLAGS = "";
PRODUCT_NAME = "$(TARGET_NAME)";
};
name = Release;
};
/* End XCBuildConfiguration section */

/* Begin XCConfigurationList section */
3DB0D760222F2E4300A865BF /* Build configuration list for PBXProject "NativeCore.Unix" */ = {
isa = XCConfigurationList;
buildConfigurations = (
3DB0D762222F2E4300A865BF /* Debug */,
3DB0D763222F2E4300A865BF /* Release */,
);
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
3DB0D764222F2E4300A865BF /* Build configuration list for PBXLegacyTarget "NativeCore.Unix" */ = {
isa = XCConfigurationList;
buildConfigurations = (
3DB0D765222F2E4300A865BF /* Debug */,
3DB0D766222F2E4300A865BF /* Release */,
);
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
/* End XCConfigurationList section */
};
rootObject = 3DB0D75D222F2E4300A865BF /* Project object */;
}

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>SchemeUserState</key>
<dict>
<key>NativeCore.Unix.xcscheme</key>
<dict>
<key>orderHint</key>
<integer>0</integer>
</dict>
</dict>
</dict>
</plist>
Morty Proxy This is a proxified and sanitized view of the page, visit original site.