start new:
tmux
start new with session name:
tmux new -s myname
| // | |
| // main.m | |
| // ProtectTest | |
| // Demonstrates newer versions of iOS now support PROT_EXEC pages, for just-in-time compilation. | |
| // | |
| // Must be compiled with Thumb disabled | |
| // | |
| // Created by Stuart Carnie on 3/4/11. | |
| // Copyright 2011 Manomio LLC. All rights reserved. | |
| // |
| /* | |
| Copyright (c) 2003, Brian Alliet. All rights reserved. | |
| Redistribution and use in source and binary forms, with or without | |
| modification, are permitted provided that the following conditions are met: | |
| 1. Redistributions of source code must retain the above copyright notice, | |
| this list of conditions and the following disclaimer. | |
| 2. Redistributions in binary form must reproduce the above copyright notice, |
| #include <stdio.h> | |
| void DumpHex(const void* data, size_t size) { | |
| char ascii[17]; | |
| size_t i, j; | |
| ascii[16] = '\0'; | |
| for (i = 0; i < size; ++i) { | |
| printf("%02X ", ((unsigned char*)data)[i]); | |
| if (((unsigned char*)data)[i] >= ' ' && ((unsigned char*)data)[i] <= '~') { | |
| ascii[i % 16] = ((unsigned char*)data)[i]; |
| @implementation UILabel (SwizzlingExamples) | |
| + (void)load | |
| { | |
| SwizzleSelectorWithBlock_Begin(self, @selector(initWithFrame:)) | |
| ^(UILabel *self, CGRect frame) { | |
| if ((self = ((id (*)(id, SEL, CGRect))_imp)(self, _cmd, frame))) { | |
| // ... | |
| } | |
| return self; |
| #include <sys/socket.h> | |
| #include <sys/ioctl.h> | |
| #include <sys/kern_event.h> | |
| #include <stdio.h> | |
| #include <stdint.h> | |
| #include <stdbool.h> | |
| #include <stdlib.h> | |
| #include <assert.h> | |
| #include <string.h> | |
| #include <net/ethernet.h> |
| /* ultrasn0w (D) xerub 2014 | |
| * | |
| * This program is free software; you can redistribute it and/or modify | |
| * it under the terms of the "do What The Fuck you want to Public License"; | |
| * either version 1 of the License, or whatever (the fuck) version you want. | |
| * | |
| * $ ios-clang -o ultrasn0w.o -Wno-variadic-macros -O2 -c ultrasn0w.c | |
| * $ ios-clang -o ultrasn0w.dylib -shared ultrasn0w.o -lsubstrate -lATCommandStudioDynamic | |
| * | |
| * Inject into CommCenterClassic iPhone3,1 baseband 1.59.00 |
| // | |
| // patternhooker.c | |
| // PatternHooker | |
| // | |
| // Finds a function by searching for a byte pattern and hooks it with CydiaSubstrate. | |
| // | |
| // Created by C0deH4cker on 7/26/15. | |
| // Copyright (c) 2015 C0deH4cker. All rights reserved. | |
| // |
| # Fix clang function prologues | |
| # WARNING: this WILL patch bytes in the database | |
| # | |
| # Copyright (c) 2015 xerub | |
| # | |
| # This program is free software; you can redistribute it and/or modify | |
| # it under the terms of the GNU General Public License as published by | |
| # the Free Software Foundation; either version 2 of the License, or | |
| # (at your option) any later version. | |
| # |
For faster connection speed and more flexibility.
/Applications/Xcode.app/Contents/MacOS/Xcode