This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
install_name_tool -change "@loader_path/../Frameworks/libetpan.framework/Versions/A/libetpan" "@loader_path/thirdparty/libetpan.framework/Versions/A/libetpan" a.out | |
Alexander-Smirnov-MBP:libetpan-smtp smirnov$ ./a.out |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function methImpl_UIImage__isInvisibleAndGetIsTranslucent_ { | |
rbx = rdx; | |
rax = objc_getAssociatedObject(rdi, ___imageIsInvisibleKey); | |
r14 = rax; | |
rax = objc_getAssociatedObject(rdi, ___imageIsTranslucentKey); | |
r15 = rax; | |
if (r14 != 0x0) goto loc_0x40052; | |
goto loc_3fe1b; | |
loc_40052: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ cd /Applications/Xcode6-Beta5.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/ | |
# choose your platform | |
$ cd 7.1 | |
# mount developer disk image | |
$ hdiutil attach DeveloperDiskImage.dmg | |
# copy debugserver | |
$ cp /Volumes/DeveloperDiskImage/usr/bin/debugserver ~/ | |
$ cd ~/ | |
# prepare entitlements | |
$ cat > entitlements.plist << 'EOF' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
run 'debugserver' on iphone | |
setup imux | |
run lldb | |
(lldb) platform select remote-ios | |
(lldb) process connect connect://127.0.0.1:31338 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
image dump sections |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
kamaraju kusumanchi <[email protected]> writes: | |
> Instead of using -L, I frequently use LD_LIBRARY_PATH to specify the | |
> location of the libraries. | |
> Is there a similar environment variable for specifying the location of | |
> the header files? Normally I use -I option for this, but I am looking | |
> for an equivalent environment variable. | |
C_INCLUDE_PATH is documented in the user manual: | |
http://gcc.gnu.org/onlinedocs/gcc-4.3.3/gcc/Environment-Variables.html . |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
codesign -d -vvvv Payload/MRMail.app/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
void inject_init(void) __attribute__((constructor)); | |
void inject_init(void) | |
{ | |
fprintf(stderr, "Here's your injected code!\n"); | |
} | |
gcc -c injectlib.c | |
gcc -dynamiclib -current_version 1.0 injectlib.o -o injectlib.dylib | |
DYLD_INSERT_LIBRARIES=./injectlib.dylib date |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
gem install iesd | |
iesd -i /Applications/Install\ OS\ X\ Mavericks.app -o mavericks-iesd-ecc.dmg -t BaseSystem –remove-kexts AppleTyMCEDriver.kext |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
makehybrid -iso -hfs /Applications/Install\ OS\ X\ Mavericks.app/Contents/SharedSupport/InstallESD.dmg -o OSX-10.9.iso |