Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

mhh..changes for previous commit

  • Loading branch information...
commit c151b1e6c968f792fa718b3e4de6815a47cd018b 1 parent f816d43
msftguy authored
View
36 .gitignore
@@ -1,29 +1,37 @@
+# XCode build dir
+build
+# Visual studio build dirs
+Debug
+Release
+
+# Visual studio build/solution files
*.opensdf
*.sdf
-Debug/*
-_dependencies/curl/Debug/*
-_dependencies/curl/lib/_UpgradeReport_Files/*
-_dependencies/curl/lib/Debug/*
*.suo
-_dependencies/zlib/Debug/*
-ipch/*
*.vcxproj.user
-_dependencies/curl/Release/*
-_dependencies/zlib/Release/*
-Release/*
-build/*
+_dependencies/curl/lib/_UpgradeReport_Files/*
+ipch/*
+
+# XCode solution files
*.pbxuser
*.mode1v3
+*perspectivev3
+
+# Unix object files
*.o
*.a
-exploits/limera1n/payload.bin
-exploits/steaks4uce/payload.bin
+
+# Compiled payloads
+*.payload
+
+# Binaries (OS X, Unix)
injectpois0n
tetheredboot
-tools/bin2c
+loadibec
.DS_Store
+# Misc
tetheredboot-Debug/*
_dependencies/curl/tetheredboot-Debug/*
@@ -33,4 +41,4 @@ _dependencies/zlib/tetheredboot-Release/*
tetheredboot-Release/*
Dll-Debug
Dll-Release
-tools/bin2c.exe
+tools/bin2c.exe
View
20 Makefile
@@ -1,21 +1,5 @@
# /Makefile
-LIBPOIS0N_NAME = libpois0n
-LIBPOIS0N_TARGET = libpois0n.a
-LIBPOIS0N_DIRECTORY = syringe
+SUBDIRS = syringe utilities
-UTILITIES_TARGETS = injectpois0n tetheredboot
-
-TARGETS = $(LIBPOIS0N_TARGET)# $(UTILITIES_TARGETS)
-
-.PHONY $(LIBPOIS0N_TARGET):
-$(LIBPOIS0N_TARGET):
- $(MAKE) $(@) -C $(LIBPOIS0N_DIRECTORY)
- $(CP) $(LIBPOIS0N_DIRECTORY)/$(@) $(@)
-
-$(UTILITIES_TARGETS): $(LIBPOIS0N_TARGETS)
-
-all: $(TARGETS)
-
-clean:
- $(RM) $(TARGETS)
+include common.mk
View
345 _ide/syringe.xcodeproj/project.pbxproj
@@ -7,77 +7,64 @@
objects = {
/* Begin PBXBuildFile section */
- 9D47FE8B1288E72500F099E7 /* common.c in Sources */ = {isa = PBXBuildFile; fileRef = 9D47FE7F1288E72500F099E7 /* common.c */; };
- 9D47FE8C1288E72500F099E7 /* injectpois0n.c in Sources */ = {isa = PBXBuildFile; fileRef = 9D47FE821288E72500F099E7 /* injectpois0n.c */; };
- 9D47FE8D1288E72500F099E7 /* libirecovery.c in Sources */ = {isa = PBXBuildFile; fileRef = 9D47FE831288E72500F099E7 /* libirecovery.c */; };
- 9D47FE8E1288E72500F099E7 /* libpartial.c in Sources */ = {isa = PBXBuildFile; fileRef = 9D47FE851288E72500F099E7 /* libpartial.c */; };
- 9D47FE8F1288E72500F099E7 /* libpois0n.c in Sources */ = {isa = PBXBuildFile; fileRef = 9D47FE871288E72500F099E7 /* libpois0n.c */; };
- 9D47FEA21288E77000F099E7 /* tetheredboot.c in Sources */ = {isa = PBXBuildFile; fileRef = 9D47FE8A1288E72500F099E7 /* tetheredboot.c */; };
- 9D47FEAC1288E7B700F099E7 /* libpois0n.c in Sources */ = {isa = PBXBuildFile; fileRef = 9D47FE871288E72500F099E7 /* libpois0n.c */; };
- 9D47FEAD1288E7B800F099E7 /* libpartial.c in Sources */ = {isa = PBXBuildFile; fileRef = 9D47FE851288E72500F099E7 /* libpartial.c */; };
- 9D47FEAE1288E7B900F099E7 /* libirecovery.c in Sources */ = {isa = PBXBuildFile; fileRef = 9D47FE831288E72500F099E7 /* libirecovery.c */; };
- 9D47FEB01288E7BF00F099E7 /* common.c in Sources */ = {isa = PBXBuildFile; fileRef = 9D47FE7F1288E72500F099E7 /* common.c */; };
- 9D47FF1B1288ED6A00F099E7 /* libusb-1.0.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = 9D47FF1A1288ED6A00F099E7 /* libusb-1.0.dylib */; };
- 9D47FF1C1288ED6A00F099E7 /* libusb-1.0.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = 9D47FF1A1288ED6A00F099E7 /* libusb-1.0.dylib */; };
- 9D47FF221288ED9900F099E7 /* libcurl.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = 9D47FF211288ED9900F099E7 /* libcurl.dylib */; };
- 9D47FF281288EDC100F099E7 /* libz.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = 9D47FF271288EDC100F099E7 /* libz.dylib */; };
- 9D47FF2E1288EDE100F099E7 /* limera1n.c in Sources */ = {isa = PBXBuildFile; fileRef = 9D47FF2D1288EDE100F099E7 /* limera1n.c */; };
- 9D47FF2F1288EDE100F099E7 /* limera1n.c in Sources */ = {isa = PBXBuildFile; fileRef = 9D47FF2D1288EDE100F099E7 /* limera1n.c */; };
- 9D47FF311288EDF000F099E7 /* steaks4uce.c in Sources */ = {isa = PBXBuildFile; fileRef = 9D47FF301288EDF000F099E7 /* steaks4uce.c */; };
- 9D47FF321288EDF000F099E7 /* steaks4uce.c in Sources */ = {isa = PBXBuildFile; fileRef = 9D47FF301288EDF000F099E7 /* steaks4uce.c */; };
+ 9D5B18E8129CA7530012E3D4 /* common.c in Sources */ = {isa = PBXBuildFile; fileRef = 9D5B18CC129CA6F80012E3D4 /* common.c */; };
+ 9D5B18E9129CA7550012E3D4 /* libirecovery.c in Sources */ = {isa = PBXBuildFile; fileRef = 9D5B18CD129CA6F80012E3D4 /* libirecovery.c */; };
+ 9D5B18EA129CA7560012E3D4 /* libpartial.c in Sources */ = {isa = PBXBuildFile; fileRef = 9D5B18CE129CA6F80012E3D4 /* libpartial.c */; };
+ 9D5B18EB129CA7560012E3D4 /* libpois0n.c in Sources */ = {isa = PBXBuildFile; fileRef = 9D5B18CF129CA6F80012E3D4 /* libpois0n.c */; };
+ 9D5B1900129CA84F0012E3D4 /* limera1n.c in Sources */ = {isa = PBXBuildFile; fileRef = 9D5B18FF129CA84F0012E3D4 /* limera1n.c */; };
+ 9D5B1902129CA85E0012E3D4 /* steaks4uce.c in Sources */ = {isa = PBXBuildFile; fileRef = 9D5B1901129CA85E0012E3D4 /* steaks4uce.c */; };
+ 9D5B197A129CAAEC0012E3D4 /* common.h in Headers */ = {isa = PBXBuildFile; fileRef = 9D5B1974129CAAEC0012E3D4 /* common.h */; };
+ 9D5B197B129CAAEC0012E3D4 /* exploits.h in Headers */ = {isa = PBXBuildFile; fileRef = 9D5B1975129CAAEC0012E3D4 /* exploits.h */; };
+ 9D5B197C129CAAEC0012E3D4 /* libirecovery.h in Headers */ = {isa = PBXBuildFile; fileRef = 9D5B1976129CAAEC0012E3D4 /* libirecovery.h */; };
+ 9D5B197D129CAAEC0012E3D4 /* libpartial.h in Headers */ = {isa = PBXBuildFile; fileRef = 9D5B1977129CAAEC0012E3D4 /* libpartial.h */; };
+ 9D5B197E129CAAEC0012E3D4 /* libpois0n.h in Headers */ = {isa = PBXBuildFile; fileRef = 9D5B1978129CAAEC0012E3D4 /* libpois0n.h */; };
+ 9D5B197F129CAAEC0012E3D4 /* payloads.h in Headers */ = {isa = PBXBuildFile; fileRef = 9D5B1979129CAAEC0012E3D4 /* payloads.h */; };
+ 9D5B19E2129CAF160012E3D4 /* steaks4uce.c in Sources */ = {isa = PBXBuildFile; fileRef = 9D5B1901129CA85E0012E3D4 /* steaks4uce.c */; };
+ 9D5B19E3129CAF1B0012E3D4 /* libcurl.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = 9D47FF211288ED9900F099E7 /* libcurl.dylib */; };
+ 9D5B19E4129CAF1C0012E3D4 /* libusb-1.0.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = 9D47FF1A1288ED6A00F099E7 /* libusb-1.0.dylib */; };
+ 9D5B19E5129CAF1D0012E3D4 /* libz.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = 9D47FF271288EDC100F099E7 /* libz.dylib */; };
+ 9D5B19E6129CAF1F0012E3D4 /* libpois0n.c in Sources */ = {isa = PBXBuildFile; fileRef = 9D5B18CF129CA6F80012E3D4 /* libpois0n.c */; };
+ 9D5B19E7129CAF200012E3D4 /* libpartial.c in Sources */ = {isa = PBXBuildFile; fileRef = 9D5B18CE129CA6F80012E3D4 /* libpartial.c */; };
+ 9D5B19E8129CAF200012E3D4 /* libirecovery.c in Sources */ = {isa = PBXBuildFile; fileRef = 9D5B18CD129CA6F80012E3D4 /* libirecovery.c */; };
+ 9D5B19E9129CAF200012E3D4 /* common.c in Sources */ = {isa = PBXBuildFile; fileRef = 9D5B18CC129CA6F80012E3D4 /* common.c */; };
+ 9D5B19EA129CAF200012E3D4 /* limera1n.c in Sources */ = {isa = PBXBuildFile; fileRef = 9D5B18FF129CA84F0012E3D4 /* limera1n.c */; };
/* End PBXBuildFile section */
-/* Begin PBXCopyFilesBuildPhase section */
- 8DD76FAF0486AB0100D96B5E /* CopyFiles */ = {
- isa = PBXCopyFilesBuildPhase;
- buildActionMask = 8;
- dstPath = /usr/share/man/man1/;
- dstSubfolderSpec = 0;
- files = (
- );
- runOnlyForDeploymentPostprocessing = 1;
- };
-/* End PBXCopyFilesBuildPhase section */
-
/* Begin PBXFileReference section */
- 8DD76FB20486AB0100D96B5E /* syringe */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.executable"; includeInIndex = 0; path = syringe; sourceTree = BUILT_PRODUCTS_DIR; };
- 9D47FE7F1288E72500F099E7 /* common.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = common.c; sourceTree = "<group>"; };
- 9D47FE801288E72500F099E7 /* common.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = common.h; sourceTree = "<group>"; };
- 9D47FE811288E72500F099E7 /* exploits.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = exploits.h; sourceTree = "<group>"; };
- 9D47FE821288E72500F099E7 /* injectpois0n.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = injectpois0n.c; sourceTree = "<group>"; };
- 9D47FE831288E72500F099E7 /* libirecovery.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = libirecovery.c; sourceTree = "<group>"; };
- 9D47FE841288E72500F099E7 /* libirecovery.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = libirecovery.h; sourceTree = "<group>"; };
- 9D47FE851288E72500F099E7 /* libpartial.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = libpartial.c; sourceTree = "<group>"; };
- 9D47FE861288E72500F099E7 /* libpartial.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = libpartial.h; sourceTree = "<group>"; };
- 9D47FE871288E72500F099E7 /* libpois0n.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = libpois0n.c; sourceTree = "<group>"; };
- 9D47FE881288E72500F099E7 /* libpois0n.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = libpois0n.h; sourceTree = "<group>"; };
- 9D47FE891288E72500F099E7 /* payloads.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = payloads.h; sourceTree = "<group>"; };
- 9D47FE8A1288E72500F099E7 /* tetheredboot.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = tetheredboot.c; sourceTree = "<group>"; };
- 9D47FE9E1288E75F00F099E7 /* tetheredboot */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.executable"; includeInIndex = 0; path = tetheredboot; sourceTree = BUILT_PRODUCTS_DIR; };
- 9D47FED01288E97500F099E7 /* ramdisk.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = ramdisk.h; path = resources/ramdisk.h; sourceTree = "<group>"; };
9D47FF1A1288ED6A00F099E7 /* libusb-1.0.dylib */ = {isa = PBXFileReference; lastKnownFileType = "compiled.mach-o.dylib"; name = "libusb-1.0.dylib"; path = "/opt/local/lib/libusb-1.0.dylib"; sourceTree = "<absolute>"; };
9D47FF211288ED9900F099E7 /* libcurl.dylib */ = {isa = PBXFileReference; lastKnownFileType = "compiled.mach-o.dylib"; name = libcurl.dylib; path = usr/lib/libcurl.dylib; sourceTree = SDKROOT; };
9D47FF271288EDC100F099E7 /* libz.dylib */ = {isa = PBXFileReference; lastKnownFileType = "compiled.mach-o.dylib"; name = libz.dylib; path = usr/lib/libz.dylib; sourceTree = SDKROOT; };
- 9D47FF2D1288EDE100F099E7 /* limera1n.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; name = limera1n.c; path = exploits/limera1n/limera1n.c; sourceTree = SOURCE_ROOT; };
- 9D47FF301288EDF000F099E7 /* steaks4uce.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; name = steaks4uce.c; path = exploits/steaks4uce/steaks4uce.c; sourceTree = SOURCE_ROOT; };
+ 9D5B18CC129CA6F80012E3D4 /* common.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; name = common.c; path = ../syringe/common.c; sourceTree = SOURCE_ROOT; };
+ 9D5B18CD129CA6F80012E3D4 /* libirecovery.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; name = libirecovery.c; path = ../syringe/libirecovery.c; sourceTree = SOURCE_ROOT; };
+ 9D5B18CE129CA6F80012E3D4 /* libpartial.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; name = libpartial.c; path = ../syringe/libpartial.c; sourceTree = SOURCE_ROOT; };
+ 9D5B18CF129CA6F80012E3D4 /* libpois0n.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; name = libpois0n.c; path = ../syringe/libpois0n.c; sourceTree = SOURCE_ROOT; };
+ 9D5B18E5129CA74B0012E3D4 /* libsyringe.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = libsyringe.a; sourceTree = BUILT_PRODUCTS_DIR; };
+ 9D5B18FF129CA84F0012E3D4 /* limera1n.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; name = limera1n.c; path = ../syringe/exploits/limera1n/limera1n.c; sourceTree = SOURCE_ROOT; };
+ 9D5B1901129CA85E0012E3D4 /* steaks4uce.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; name = steaks4uce.c; path = ../syringe/exploits/steaks4uce/steaks4uce.c; sourceTree = SOURCE_ROOT; };
+ 9D5B1974129CAAEC0012E3D4 /* common.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = common.h; path = ../include/common.h; sourceTree = SOURCE_ROOT; };
+ 9D5B1975129CAAEC0012E3D4 /* exploits.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = exploits.h; path = ../include/exploits.h; sourceTree = SOURCE_ROOT; };
+ 9D5B1976129CAAEC0012E3D4 /* libirecovery.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = libirecovery.h; path = ../include/libirecovery.h; sourceTree = SOURCE_ROOT; };
+ 9D5B1977129CAAEC0012E3D4 /* libpartial.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = libpartial.h; path = ../include/libpartial.h; sourceTree = SOURCE_ROOT; };
+ 9D5B1978129CAAEC0012E3D4 /* libpois0n.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = libpois0n.h; path = ../include/libpois0n.h; sourceTree = SOURCE_ROOT; };
+ 9D5B1979129CAAEC0012E3D4 /* payloads.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = payloads.h; path = ../include/payloads.h; sourceTree = SOURCE_ROOT; };
+ 9D5B19DC129CAF0B0012E3D4 /* libsyringe_dylib.dylib */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.dylib"; includeInIndex = 0; path = libsyringe_dylib.dylib; sourceTree = BUILT_PRODUCTS_DIR; };
/* End PBXFileReference section */
/* Begin PBXFrameworksBuildPhase section */
- 8DD76FAD0486AB0100D96B5E /* Frameworks */ = {
+ 9D5B18E3129CA74B0012E3D4 /* Frameworks */ = {
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
- 9D47FF1B1288ED6A00F099E7 /* libusb-1.0.dylib in Frameworks */,
);
runOnlyForDeploymentPostprocessing = 0;
};
- 9D47FE9C1288E75F00F099E7 /* Frameworks */ = {
+ 9D5B19DA129CAF0B0012E3D4 /* Frameworks */ = {
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
- 9D47FF1C1288ED6A00F099E7 /* libusb-1.0.dylib in Frameworks */,
- 9D47FF221288ED9900F099E7 /* libcurl.dylib in Frameworks */,
- 9D47FF281288EDC100F099E7 /* libz.dylib in Frameworks */,
+ 9D5B19E3129CAF1B0012E3D4 /* libcurl.dylib in Frameworks */,
+ 9D5B19E4129CAF1C0012E3D4 /* libusb-1.0.dylib in Frameworks */,
+ 9D5B19E5129CAF1D0012E3D4 /* libz.dylib in Frameworks */,
);
runOnlyForDeploymentPostprocessing = 0;
};
@@ -87,6 +74,7 @@
08FB7794FE84155DC02AAC07 /* syringe */ = {
isa = PBXGroup;
children = (
+ 9D5B1973129CAADB0012E3D4 /* Headers */,
08FB7795FE84155DC02AAC07 /* Source */,
1AB674ADFE9D54B511CA2CBB /* Products */,
9D47FF211288ED9900F099E7 /* libcurl.dylib */,
@@ -99,21 +87,11 @@
08FB7795FE84155DC02AAC07 /* Source */ = {
isa = PBXGroup;
children = (
- 9D47FF301288EDF000F099E7 /* steaks4uce.c */,
- 9D47FF2D1288EDE100F099E7 /* limera1n.c */,
- 9D47FED01288E97500F099E7 /* ramdisk.h */,
- 9D47FE7F1288E72500F099E7 /* common.c */,
- 9D47FE801288E72500F099E7 /* common.h */,
- 9D47FE811288E72500F099E7 /* exploits.h */,
- 9D47FE821288E72500F099E7 /* injectpois0n.c */,
- 9D47FE831288E72500F099E7 /* libirecovery.c */,
- 9D47FE841288E72500F099E7 /* libirecovery.h */,
- 9D47FE851288E72500F099E7 /* libpartial.c */,
- 9D47FE861288E72500F099E7 /* libpartial.h */,
- 9D47FE871288E72500F099E7 /* libpois0n.c */,
- 9D47FE881288E72500F099E7 /* libpois0n.h */,
- 9D47FE891288E72500F099E7 /* payloads.h */,
- 9D47FE8A1288E72500F099E7 /* tetheredboot.c */,
+ 9D5B18FE129CA83E0012E3D4 /* exploits */,
+ 9D5B18CC129CA6F80012E3D4 /* common.c */,
+ 9D5B18CD129CA6F80012E3D4 /* libirecovery.c */,
+ 9D5B18CE129CA6F80012E3D4 /* libpartial.c */,
+ 9D5B18CF129CA6F80012E3D4 /* libpois0n.c */,
);
name = Source;
sourceTree = "<group>";
@@ -121,48 +99,93 @@
1AB674ADFE9D54B511CA2CBB /* Products */ = {
isa = PBXGroup;
children = (
- 8DD76FB20486AB0100D96B5E /* syringe */,
- 9D47FE9E1288E75F00F099E7 /* tetheredboot */,
+ 9D5B18E5129CA74B0012E3D4 /* libsyringe.a */,
+ 9D5B19DC129CAF0B0012E3D4 /* libsyringe_dylib.dylib */,
);
name = Products;
sourceTree = "<group>";
};
+ 9D5B18FE129CA83E0012E3D4 /* exploits */ = {
+ isa = PBXGroup;
+ children = (
+ 9D5B1901129CA85E0012E3D4 /* steaks4uce.c */,
+ 9D5B18FF129CA84F0012E3D4 /* limera1n.c */,
+ );
+ name = exploits;
+ sourceTree = "<group>";
+ };
+ 9D5B1973129CAADB0012E3D4 /* Headers */ = {
+ isa = PBXGroup;
+ children = (
+ 9D5B1974129CAAEC0012E3D4 /* common.h */,
+ 9D5B1975129CAAEC0012E3D4 /* exploits.h */,
+ 9D5B1976129CAAEC0012E3D4 /* libirecovery.h */,
+ 9D5B1977129CAAEC0012E3D4 /* libpartial.h */,
+ 9D5B1978129CAAEC0012E3D4 /* libpois0n.h */,
+ 9D5B1979129CAAEC0012E3D4 /* payloads.h */,
+ );
+ name = Headers;
+ sourceTree = "<group>";
+ };
/* End PBXGroup section */
+/* Begin PBXHeadersBuildPhase section */
+ 9D5B18E1129CA74B0012E3D4 /* Headers */ = {
+ isa = PBXHeadersBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ 9D5B197A129CAAEC0012E3D4 /* common.h in Headers */,
+ 9D5B197B129CAAEC0012E3D4 /* exploits.h in Headers */,
+ 9D5B197C129CAAEC0012E3D4 /* libirecovery.h in Headers */,
+ 9D5B197D129CAAEC0012E3D4 /* libpartial.h in Headers */,
+ 9D5B197E129CAAEC0012E3D4 /* libpois0n.h in Headers */,
+ 9D5B197F129CAAEC0012E3D4 /* payloads.h in Headers */,
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ };
+ 9D5B19D8129CAF0B0012E3D4 /* Headers */ = {
+ isa = PBXHeadersBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ };
+/* End PBXHeadersBuildPhase section */
+
/* Begin PBXNativeTarget section */
- 8DD76FA90486AB0100D96B5E /* syringe */ = {
+ 9D5B18E4129CA74B0012E3D4 /* syringe */ = {
isa = PBXNativeTarget;
- buildConfigurationList = 1DEB928508733DD80010E9CD /* Build configuration list for PBXNativeTarget "syringe" */;
+ buildConfigurationList = 9D5B18F1129CA7950012E3D4 /* Build configuration list for PBXNativeTarget "syringe" */;
buildPhases = (
- 8DD76FAB0486AB0100D96B5E /* Sources */,
- 8DD76FAD0486AB0100D96B5E /* Frameworks */,
- 8DD76FAF0486AB0100D96B5E /* CopyFiles */,
+ 9D5B18E1129CA74B0012E3D4 /* Headers */,
+ 9D5B18E2129CA74B0012E3D4 /* Sources */,
+ 9D5B18E3129CA74B0012E3D4 /* Frameworks */,
);
buildRules = (
);
dependencies = (
);
name = syringe;
- productInstallPath = "$(HOME)/bin";
productName = syringe;
- productReference = 8DD76FB20486AB0100D96B5E /* syringe */;
- productType = "com.apple.product-type.tool";
+ productReference = 9D5B18E5129CA74B0012E3D4 /* libsyringe.a */;
+ productType = "com.apple.product-type.library.static";
};
- 9D47FE9D1288E75F00F099E7 /* tetheredboot */ = {
+ 9D5B19DB129CAF0B0012E3D4 /* syringe_dylib */ = {
isa = PBXNativeTarget;
- buildConfigurationList = 9D47FEA51288E78F00F099E7 /* Build configuration list for PBXNativeTarget "tetheredboot" */;
+ buildConfigurationList = 9D5B19EE129CAF6A0012E3D4 /* Build configuration list for PBXNativeTarget "syringe_dylib" */;
buildPhases = (
- 9D47FE9B1288E75F00F099E7 /* Sources */,
- 9D47FE9C1288E75F00F099E7 /* Frameworks */,
+ 9D5B19D8129CAF0B0012E3D4 /* Headers */,
+ 9D5B19D9129CAF0B0012E3D4 /* Sources */,
+ 9D5B19DA129CAF0B0012E3D4 /* Frameworks */,
);
buildRules = (
);
dependencies = (
);
- name = tetheredboot;
- productName = tetheredboot;
- productReference = 9D47FE9E1288E75F00F099E7 /* tetheredboot */;
- productType = "com.apple.product-type.tool";
+ name = syringe_dylib;
+ productName = syringe_dylib;
+ productReference = 9D5B19DC129CAF0B0012E3D4 /* libsyringe_dylib.dylib */;
+ productType = "com.apple.product-type.library.dynamic";
};
/* End PBXNativeTarget section */
@@ -183,45 +206,82 @@
projectDirPath = "";
projectRoot = "";
targets = (
- 8DD76FA90486AB0100D96B5E /* syringe */,
- 9D47FE9D1288E75F00F099E7 /* tetheredboot */,
+ 9D5B18E4129CA74B0012E3D4 /* syringe */,
+ 9D5B19DB129CAF0B0012E3D4 /* syringe_dylib */,
);
};
/* End PBXProject section */
/* Begin PBXSourcesBuildPhase section */
- 8DD76FAB0486AB0100D96B5E /* Sources */ = {
+ 9D5B18E2129CA74B0012E3D4 /* Sources */ = {
isa = PBXSourcesBuildPhase;
buildActionMask = 2147483647;
files = (
- 9D47FE8B1288E72500F099E7 /* common.c in Sources */,
- 9D47FE8C1288E72500F099E7 /* injectpois0n.c in Sources */,
- 9D47FE8D1288E72500F099E7 /* libirecovery.c in Sources */,
- 9D47FE8E1288E72500F099E7 /* libpartial.c in Sources */,
- 9D47FE8F1288E72500F099E7 /* libpois0n.c in Sources */,
- 9D47FF2E1288EDE100F099E7 /* limera1n.c in Sources */,
- 9D47FF311288EDF000F099E7 /* steaks4uce.c in Sources */,
+ 9D5B18E8129CA7530012E3D4 /* common.c in Sources */,
+ 9D5B18E9129CA7550012E3D4 /* libirecovery.c in Sources */,
+ 9D5B18EA129CA7560012E3D4 /* libpartial.c in Sources */,
+ 9D5B18EB129CA7560012E3D4 /* libpois0n.c in Sources */,
+ 9D5B1900129CA84F0012E3D4 /* limera1n.c in Sources */,
+ 9D5B1902129CA85E0012E3D4 /* steaks4uce.c in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
- 9D47FE9B1288E75F00F099E7 /* Sources */ = {
+ 9D5B19D9129CAF0B0012E3D4 /* Sources */ = {
isa = PBXSourcesBuildPhase;
buildActionMask = 2147483647;
files = (
- 9D47FEA21288E77000F099E7 /* tetheredboot.c in Sources */,
- 9D47FEAC1288E7B700F099E7 /* libpois0n.c in Sources */,
- 9D47FEAD1288E7B800F099E7 /* libpartial.c in Sources */,
- 9D47FEAE1288E7B900F099E7 /* libirecovery.c in Sources */,
- 9D47FEB01288E7BF00F099E7 /* common.c in Sources */,
- 9D47FF2F1288EDE100F099E7 /* limera1n.c in Sources */,
- 9D47FF321288EDF000F099E7 /* steaks4uce.c in Sources */,
+ 9D5B19E2129CAF160012E3D4 /* steaks4uce.c in Sources */,
+ 9D5B19E6129CAF1F0012E3D4 /* libpois0n.c in Sources */,
+ 9D5B19E7129CAF200012E3D4 /* libpartial.c in Sources */,
+ 9D5B19E8129CAF200012E3D4 /* libirecovery.c in Sources */,
+ 9D5B19E9129CAF200012E3D4 /* common.c in Sources */,
+ 9D5B19EA129CAF200012E3D4 /* limera1n.c in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXSourcesBuildPhase section */
/* Begin XCBuildConfiguration section */
- 1DEB928608733DD80010E9CD /* Debug */ = {
+ 1DEB928A08733DD80010E9CD /* Debug */ = {
+ isa = XCBuildConfiguration;
+ buildSettings = {
+ ARCHS = "$(ARCHS_STANDARD_32_64_BIT)";
+ GCC_C_LANGUAGE_STANDARD = gnu99;
+ GCC_INPUT_FILETYPE = sourcecode.cpp.cpp;
+ GCC_OPTIMIZATION_LEVEL = 0;
+ GCC_WARN_ABOUT_RETURN_TYPE = YES;
+ GCC_WARN_UNUSED_VARIABLE = YES;
+ HEADER_SEARCH_PATHS = (
+ ../include,
+ ../include/resources,
+ );
+ LIBRARY_SEARCH_PATHS = /opt/local/lib;
+ ONLY_ACTIVE_ARCH = NO;
+ PREBINDING = NO;
+ SDKROOT = macosx;
+ };
+ name = Debug;
+ };
+ 1DEB928B08733DD80010E9CD /* Release */ = {
+ isa = XCBuildConfiguration;
+ buildSettings = {
+ ARCHS = "$(ARCHS_STANDARD_32_64_BIT)";
+ GCC_C_LANGUAGE_STANDARD = gnu99;
+ GCC_INPUT_FILETYPE = sourcecode.cpp.cpp;
+ GCC_WARN_ABOUT_RETURN_TYPE = YES;
+ GCC_WARN_UNUSED_VARIABLE = YES;
+ HEADER_SEARCH_PATHS = (
+ ../include,
+ ../include/resources,
+ );
+ LIBRARY_SEARCH_PATHS = /opt/local/lib;
+ ONLY_ACTIVE_ARCH = NO;
+ PREBINDING = NO;
+ SDKROOT = macosx;
+ };
+ name = Release;
+ };
+ 9D5B18E6129CA74B0012E3D4 /* Debug */ = {
isa = XCBuildConfiguration;
buildSettings = {
ALWAYS_SEARCH_USER_PATHS = NO;
@@ -230,96 +290,71 @@
GCC_ENABLE_FIX_AND_CONTINUE = YES;
GCC_MODEL_TUNING = G5;
GCC_OPTIMIZATION_LEVEL = 0;
- INSTALL_PATH = /usr/local/bin;
+ INSTALL_PATH = /usr/local/lib;
LIBRARY_SEARCH_PATHS = (
"$(inherited)",
/opt/local/lib,
);
+ PREBINDING = NO;
PRODUCT_NAME = syringe;
};
name = Debug;
};
- 1DEB928708733DD80010E9CD /* Release */ = {
+ 9D5B18E7129CA74B0012E3D4 /* Release */ = {
isa = XCBuildConfiguration;
buildSettings = {
ALWAYS_SEARCH_USER_PATHS = NO;
+ COPY_PHASE_STRIP = YES;
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
+ GCC_ENABLE_FIX_AND_CONTINUE = NO;
GCC_MODEL_TUNING = G5;
- INSTALL_PATH = /usr/local/bin;
+ INSTALL_PATH = /usr/local/lib;
LIBRARY_SEARCH_PATHS = (
"$(inherited)",
/opt/local/lib,
);
- PRODUCT_NAME = syringe;
- };
- name = Release;
- };
- 1DEB928A08733DD80010E9CD /* Debug */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(ARCHS_STANDARD_32_64_BIT)";
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_INPUT_FILETYPE = sourcecode.cpp.cpp;
- GCC_OPTIMIZATION_LEVEL = 0;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = ./include;
- LIBRARY_SEARCH_PATHS = /opt/local/lib;
- ONLY_ACTIVE_ARCH = YES;
PREBINDING = NO;
- SDKROOT = macosx10.6;
- };
- name = Debug;
- };
- 1DEB928B08733DD80010E9CD /* Release */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(ARCHS_STANDARD_32_64_BIT)";
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_INPUT_FILETYPE = sourcecode.cpp.cpp;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = ./include;
- LIBRARY_SEARCH_PATHS = /opt/local/lib;
- PREBINDING = NO;
- SDKROOT = macosx10.6;
+ PRODUCT_NAME = syringe;
+ ZERO_LINK = NO;
};
name = Release;
};
- 9D47FEA01288E75F00F099E7 /* Debug */ = {
+ 9D5B19DD129CAF0C0012E3D4 /* Debug */ = {
isa = XCBuildConfiguration;
buildSettings = {
ALWAYS_SEARCH_USER_PATHS = NO;
COPY_PHASE_STRIP = NO;
+ EXECUTABLE_PREFIX = lib;
GCC_DYNAMIC_NO_PIC = NO;
GCC_ENABLE_FIX_AND_CONTINUE = YES;
GCC_MODEL_TUNING = G5;
GCC_OPTIMIZATION_LEVEL = 0;
- INSTALL_PATH = /usr/local/bin;
+ INSTALL_PATH = /usr/local/lib;
LIBRARY_SEARCH_PATHS = (
"$(inherited)",
/opt/local/lib,
);
PREBINDING = NO;
- PRODUCT_NAME = tetheredboot;
+ PRODUCT_NAME = syringe_dylib;
};
name = Debug;
};
- 9D47FEA11288E75F00F099E7 /* Release */ = {
+ 9D5B19DE129CAF0C0012E3D4 /* Release */ = {
isa = XCBuildConfiguration;
buildSettings = {
ALWAYS_SEARCH_USER_PATHS = NO;
COPY_PHASE_STRIP = YES;
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
+ EXECUTABLE_PREFIX = lib;
GCC_ENABLE_FIX_AND_CONTINUE = NO;
GCC_MODEL_TUNING = G5;
- INSTALL_PATH = /usr/local/bin;
+ INSTALL_PATH = /usr/local/lib;
LIBRARY_SEARCH_PATHS = (
"$(inherited)",
/opt/local/lib,
);
PREBINDING = NO;
- PRODUCT_NAME = tetheredboot;
+ PRODUCT_NAME = syringe_dylib;
ZERO_LINK = NO;
};
name = Release;
@@ -327,29 +362,29 @@
/* End XCBuildConfiguration section */
/* Begin XCConfigurationList section */
- 1DEB928508733DD80010E9CD /* Build configuration list for PBXNativeTarget "syringe" */ = {
+ 1DEB928908733DD80010E9CD /* Build configuration list for PBXProject "syringe" */ = {
isa = XCConfigurationList;
buildConfigurations = (
- 1DEB928608733DD80010E9CD /* Debug */,
- 1DEB928708733DD80010E9CD /* Release */,
+ 1DEB928A08733DD80010E9CD /* Debug */,
+ 1DEB928B08733DD80010E9CD /* Release */,
);
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
- 1DEB928908733DD80010E9CD /* Build configuration list for PBXProject "syringe" */ = {
+ 9D5B18F1129CA7950012E3D4 /* Build configuration list for PBXNativeTarget "syringe" */ = {
isa = XCConfigurationList;
buildConfigurations = (
- 1DEB928A08733DD80010E9CD /* Debug */,
- 1DEB928B08733DD80010E9CD /* Release */,
+ 9D5B18E6129CA74B0012E3D4 /* Debug */,
+ 9D5B18E7129CA74B0012E3D4 /* Release */,
);
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
- 9D47FEA51288E78F00F099E7 /* Build configuration list for PBXNativeTarget "tetheredboot" */ = {
+ 9D5B19EE129CAF6A0012E3D4 /* Build configuration list for PBXNativeTarget "syringe_dylib" */ = {
isa = XCConfigurationList;
buildConfigurations = (
- 9D47FEA01288E75F00F099E7 /* Debug */,
- 9D47FEA11288E75F00F099E7 /* Release */,
+ 9D5B19DD129CAF0C0012E3D4 /* Debug */,
+ 9D5B19DE129CAF0C0012E3D4 /* Release */,
);
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
View
21 common.mk
@@ -1,16 +1,5 @@
-UNAME := $(shell uname -s)
-ifeq ($(UNAME),Darwin)
- OS_SHARED_EXT = .dylib
- OS_STATIC_EXT = .a
- OS_EXEC_EXT =
-else
- ifeq ($(UNAME),MINGW32_NT-5.1)
- OS_SHARED_EXT = .dll
- OS_STATIC_EXT = .a
- OS_EXEC_EXT = .exe
- else
- OS_SHARED = .so
- OS_STATIC_EXT = .a
- OS_EXEC_EXT =
- endif
-endif
+BASE_DIR := $(dir $(lastword $(MAKEFILE_LIST)))
+
+include $(BASE_DIR)/platform.mk
+include $(BASE_DIR)/edam.mk
+
View
14 include/common.h
@@ -21,19 +21,25 @@
#define COMMON_H
#ifdef __cplusplus
-extern "C" {
+#define EXT_C extern "C"
+#else
+#define EXT_C extern
#endif
#ifdef _WIN32
# ifdef LIBSYRINGE_EXPORTS
-# define LIBSYRINGE_EXPORT __declspec(dllexport)
+# define LIBSYRINGE_EXPORT EXT_C __declspec(dllexport)
# else
-# define LIBSYRINGE_EXPORT __declspec(dllimport)
+# define LIBSYRINGE_EXPORT EXT_C __declspec(dllimport)
# endif
#else
-# define LIBSYRINGE_EXPORT extern __attribute__((visibility("default")))
+# define LIBSYRINGE_EXPORT EXT_C __attribute__((visibility("default")))
#endif
+#ifdef __cplusplus
+extern "C" {
+#endif
+
#include "libirecovery.h"
#ifdef _WIN32
View
8 include/exploits.h
@@ -26,10 +26,10 @@ extern "C" {
#include "common.h"
-int LIBSYRINGE_EXPORT pwnage2_exploit();
-int LIBSYRINGE_EXPORT shatter_exploit();
-int LIBSYRINGE_EXPORT limera1n_exploit();
-int LIBSYRINGE_EXPORT steaks4uce_exploit();
+LIBSYRINGE_EXPORT int pwnage2_exploit();
+LIBSYRINGE_EXPORT int shatter_exploit();
+LIBSYRINGE_EXPORT int limera1n_exploit();
+LIBSYRINGE_EXPORT int steaks4uce_exploit();
#ifdef __cplusplus
}
View
18 include/libpois0n.h
@@ -27,15 +27,15 @@ extern "C" {
#include "common.h"
typedef void(*pois0n_callback)(double progress, void* object);
-
-void LIBSYRINGE_EXPORT pois0n_init();
-void LIBSYRINGE_EXPORT pois0n_set_callback(pois0n_callback callback, void* object);
-int LIBSYRINGE_EXPORT pois0n_is_ready();
-int LIBSYRINGE_EXPORT pois0n_is_compatible();
-int LIBSYRINGE_EXPORT pois0n_inject();
-int LIBSYRINGE_EXPORT pois0n_injectonly();
-void LIBSYRINGE_EXPORT pois0n_exit();
-int LIBSYRINGE_EXPORT boot_iboot();
+
+LIBSYRINGE_EXPORT void pois0n_init();
+LIBSYRINGE_EXPORT void pois0n_set_callback(pois0n_callback callback, void* object);
+LIBSYRINGE_EXPORT int pois0n_is_ready();
+LIBSYRINGE_EXPORT int pois0n_is_compatible();
+LIBSYRINGE_EXPORT int pois0n_inject();
+LIBSYRINGE_EXPORT int pois0n_injectonly();
+LIBSYRINGE_EXPORT void pois0n_exit();
+LIBSYRINGE_EXPORT int boot_iboot();
#ifdef __cplusplus
}
View
28 syringe/Makefile
@@ -1,25 +1,19 @@
# /syringe/Makefile
-include ../common.mk
-
-EXPLOITS_NAME = exploits
-EXPLOITS_TARGET = exploits.a
-EXPLOITS_DIRECTORY = exploits
+SUBDIRS = exploits
-LIBPOIS0N_NAME = libpois0n
-LIBPOIS0N_TARGET = $(LIBPOIS0N_NAME)$(OS_STATIC_EXT)
-LIBPOIS0N_OBJECTS = $(EXPLOITS_TARGET)
-LIBPOIS0N_DIRECTORY =
+MKSTATICLIB = 1
-TARGETS = $(LIBPOIS0N_TARGET)
+INCLUDES = ../include ../include/resources
-$(EXPLOITS_TARGET):
- $(MAKE) -C $(EXPLOITS_DIRECTORY)
- $(CP) $(EXPLOITS_DIRECTORY)/$(EXPLOITS_TARGET) .
+SOURCES = \
+ common.c \
+ libirecovery.c \
+ libpartial.c \
+ libpois0n.c \
-$(LIBPOIS0N_TARGET): $(LIBPOIS0N_OBJECTS)
+PREMADE_OBJECTS = exploits/limera1n.o exploits/steaks4uce.o
-all: $(TARGETS)
+TARGET = syringe
-clean:
- $(RM) $(TARGETS)
+include ../common.mk
View
19 syringe/exploits/Makefile
@@ -1,11 +1,16 @@
# /syringe/exploits/Makefile
-EXPLOITS = limera1n steaks4uce
+SUBDIRS = limera1n steaks4uce
-all:
- @for EXPLOIT in $(EXPLOITS); do \
- make -C $$EXPLOIT; done;
+NOLINK = 1
-clean:
- @for EXPLOIT in $(EXPLOITS); do \
- make clean -C $$EXPLOIT; done;
+OBJECTS_SRC = $(foreach subdir,$(SUBDIRS),$(subdir)/$(subdir).o)
+
+PREMADE_OBJECTS = $(addsuffix .o,$(SUBDIRS))
+
+$(PREMADE_OBJECTS): $(OBJECTS_SRC)
+ cp $(OBJECTS_SRC) .
+
+TARGET = EMPTY
+
+include ../../common.mk
View
30 syringe/exploits/limera1n/Makefile
@@ -1,30 +1,12 @@
# /syringe/exploits/limera1n/Makefile
-XXD = xxd
-CROSS := arm-elf-
-ARMCC = $(CROSS)gcc
-ARMOBJCOPY = $(CROSS)objcopy
-CFLAGS := -I../../../include
+SUBPROJS = payload
-EXPLOIT_NAME = limera1n
-EXPLOIT_TARGET = $(EXPLOIT_NAME).o
-EXPLOIT_SOURCE = $(EXPLOIT_NAME).c
+INCLUDES = ../../../include
+SOURCES = limera1n.c
-PAYLOAD_NAME = $(EXPLOIT_NAME)
-PAYLOAD_TARGET = $(PAYLOAD_NAME).h
-PAYLOAD_SOURCE = $(PAYLOAD_NAME).S
+MKSTATICLIB = 1
-TARGETS = $(EXPLOIT_TARGET) $(PAYLOAD_TARGET)
+TARGET = limera1n
-$(EXPLOIT_TARGET): $(PAYLOAD_TARGET)
- $(CC) -o $(EXPLOIT_TARGET) -c $(EXPLOIT_SOURCE) $(CFLAGS)
-
-$(PAYLOAD_TARGET):
- $(ARMCC) -o $(PAYLOAD_NAME).o -c $(PAYLOAD_SOURCE) $(ARMCFLAGS) $(ARMLDFLAGS)
- $(ARMOBJCOPY) -O binary $(PAYLOAD_NAME).o $(PAYLOAD_NAME)
- $(XXD) -i $(PAYLOAD_NAME) $(PAYLOAD_TARGET)
-
-all: $(TARGETS)
-
-clean:
- $(RM) $(EXPLOIT_NAME) *.o *.bin
+include ../../../common.mk
View
5 syringe/exploits/limera1n/limera1n.c
@@ -24,6 +24,7 @@
#include <stdlib.h>
#include "common.h"
+#include "exploits.h"
#include "limera1n.h"
#include "libirecovery.h"
@@ -51,8 +52,8 @@ int limera1n_exploit() {
}
memset(shellcode, 0x0, 0x800);
- shellcode_length = sizeof(limera1n);
- memcpy(shellcode, limera1n, sizeof(limera1n));
+ shellcode_length = sizeof(limera1n_payload);
+ memcpy(shellcode, limera1n_payload, sizeof(limera1n_payload));
debug("Resetting device counters\n");
error = irecv_reset_counters(client);
View
28 syringe/exploits/limera1n/limera1n.h
@@ -1,4 +1,4 @@
-unsigned char limera1n[] = {
+unsigned char limera1n_payload[] = {
0x7f, 0x46, 0x07, 0xe0, 0xc0, 0x46, 0xc0, 0x46, 0xc0, 0x46, 0xc0, 0x46,
0xc0, 0x46, 0xc0, 0x46, 0xc0, 0x46, 0xc0, 0x46, 0x65, 0x48, 0x02, 0x68,
0x65, 0x48, 0x90, 0x42, 0x06, 0xd1, 0x65, 0x49, 0x39, 0x60, 0x65, 0x49,
@@ -8,27 +8,27 @@ unsigned char limera1n[] = {
0x39, 0x60, 0x63, 0x49, 0x79, 0x60, 0x63, 0x49, 0xb9, 0x60, 0x08, 0xe0,
0x62, 0x48, 0x90, 0x42, 0x05, 0xd1, 0x62, 0x49, 0x39, 0x60, 0x5e, 0x49,
0x79, 0x60, 0x61, 0x49, 0xb9, 0x60, 0x61, 0x48, 0x61, 0x49, 0x3b, 0x68,
- 0x98, 0x47, 0x61, 0x48, 0x5e, 0x49, 0x4a, 0x68, 0x00, 0xf0, 0x88, 0xf8,
+ 0x98, 0x47, 0x61, 0x48, 0x5e, 0x49, 0x4a, 0x68, 0x00, 0xf0, 0xc2, 0xf8,
0x00, 0x28, 0xcb, 0xd0, 0x06, 0x1c, 0x5e, 0x48, 0x5a, 0x49, 0x4a, 0x68,
- 0x00, 0xf0, 0x80, 0xf8, 0x00, 0x28, 0xc3, 0xd0, 0x05, 0x1c, 0x11, 0x20,
+ 0x00, 0xf0, 0xc2, 0xf8, 0x00, 0x28, 0xc3, 0xd0, 0x05, 0x1c, 0x11, 0x20,
0x14, 0x24, 0x29, 0x19, 0x2a, 0x19, 0x30, 0x23, 0x58, 0x4c, 0x00, 0x94,
0x00, 0x24, 0x01, 0x94, 0x00, 0x24, 0x02, 0x94, 0x7c, 0x68, 0xa0, 0x47,
0x11, 0x20, 0x0c, 0x24, 0x31, 0x19, 0x32, 0x19, 0xb3, 0x68, 0x53, 0x4c,
0x00, 0x94, 0x24, 0x24, 0x64, 0x19, 0x01, 0x94, 0x14, 0x24, 0x64, 0x19,
0x02, 0x94, 0x7c, 0x68, 0xa0, 0x47, 0x49, 0x48, 0x0c, 0x21, 0x89, 0x19,
- 0xb2, 0x68, 0x15, 0x1c, 0x00, 0xf0, 0x52, 0xf8, 0x4b, 0x48, 0x45, 0x49,
- 0x2a, 0x1c, 0x00, 0xf0, 0x55, 0xf8, 0x00, 0x28, 0x08, 0xd0, 0x01, 0x1c,
- 0x48, 0x48, 0x49, 0x4a, 0x00, 0xf0, 0x4e, 0xf8, 0x00, 0x28, 0x01, 0xd0,
+ 0xb2, 0x68, 0x15, 0x1c, 0x00, 0xf0, 0xba, 0xf8, 0x4b, 0x48, 0x45, 0x49,
+ 0x2a, 0x1c, 0x00, 0xf0, 0xc2, 0xf8, 0x00, 0x28, 0x08, 0xd0, 0x01, 0x1c,
+ 0x48, 0x48, 0x49, 0x4a, 0x00, 0xf0, 0xc2, 0xf8, 0x00, 0x28, 0x01, 0xd0,
0x47, 0x49, 0x01, 0x60, 0x47, 0x48, 0x3d, 0x49, 0x2a, 0x1c, 0x00, 0xf0,
- 0x45, 0xf8, 0x00, 0x28, 0x08, 0xd0, 0x01, 0x1c, 0x44, 0x48, 0x41, 0x4a,
- 0x00, 0xf0, 0x3e, 0xf8, 0x00, 0x28, 0x01, 0xd0, 0x42, 0x49, 0x01, 0x60,
- 0x42, 0x48, 0x35, 0x49, 0x2a, 0x1c, 0x00, 0xf0, 0x35, 0xf8, 0x00, 0x28,
- 0x08, 0xd0, 0x01, 0x1c, 0x3f, 0x48, 0x39, 0x4a, 0x00, 0xf0, 0x2e, 0xf8,
+ 0xc2, 0xf8, 0x00, 0x28, 0x08, 0xd0, 0x01, 0x1c, 0x44, 0x48, 0x41, 0x4a,
+ 0x00, 0xf0, 0xc2, 0xf8, 0x00, 0x28, 0x01, 0xd0, 0x42, 0x49, 0x01, 0x60,
+ 0x42, 0x48, 0x35, 0x49, 0x2a, 0x1c, 0x00, 0xf0, 0xc2, 0xf8, 0x00, 0x28,
+ 0x08, 0xd0, 0x01, 0x1c, 0x3f, 0x48, 0x39, 0x4a, 0x00, 0xf0, 0xc2, 0xf8,
0x00, 0x28, 0x01, 0xd0, 0x37, 0x49, 0x01, 0x60, 0x3c, 0x48, 0x2d, 0x49,
- 0x2a, 0x1c, 0x3c, 0x4b, 0x00, 0xf0, 0x26, 0xf8, 0x00, 0x28, 0x0f, 0xd1,
- 0x3a, 0x48, 0x29, 0x49, 0x2a, 0x1c, 0x3a, 0x4b, 0x00, 0xf0, 0x1e, 0xf8,
+ 0x2a, 0x1c, 0x3c, 0x4b, 0x00, 0xf0, 0xc4, 0xf8, 0x00, 0x28, 0x0f, 0xd1,
+ 0x3a, 0x48, 0x29, 0x49, 0x2a, 0x1c, 0x3a, 0x4b, 0x00, 0xf0, 0xc4, 0xf8,
0x00, 0x28, 0x07, 0xd1, 0x38, 0x48, 0x25, 0x49, 0x2a, 0x1c, 0x38, 0x4b,
- 0x00, 0xf0, 0x16, 0xf8, 0x00, 0x28, 0x03, 0xd0, 0x36, 0x49, 0x01, 0x60,
+ 0x00, 0xf0, 0xc4, 0xf8, 0x00, 0x28, 0x03, 0xd0, 0x36, 0x49, 0x01, 0x60,
0x36, 0x49, 0x41, 0x60, 0x00, 0x20, 0x1f, 0x49, 0x00, 0x22, 0xbb, 0x68,
0x98, 0x47, 0x4d, 0xe7, 0x0b, 0x78, 0x03, 0x70, 0x01, 0x30, 0x01, 0x31,
0x01, 0x3a, 0x00, 0x2a, 0xf8, 0xd1, 0x70, 0x47, 0x00, 0x23, 0xff, 0xe7,
@@ -49,4 +49,4 @@ unsigned char limera1n[] = {
0x82, 0xb0, 0x01, 0x28, 0x90, 0xb5, 0x01, 0xaf, 0x84, 0xb0, 0x4f, 0xf0,
0x00, 0x4b, 0x18, 0x47, 0x00, 0x00, 0x00, 0x41
};
-unsigned int limera1n_len = 584;
+unsigned int limera1n_payload_len = 584;
View
32 syringe/exploits/steaks4uce/Makefile
@@ -1,30 +1,12 @@
-# /syringe/exploits/steaks4uce/Makefile
-XXD = xxd
-CROSS := arm-elf-
-ARMCC = $(CROSS)gcc
-ARMOBJCOPY = $(CROSS)objcopy
+# /syringe/exploits/limera1n/Makefile
-CFLAGS := -I../../../include
+SUBPROJS = payload
-EXPLOIT_NAME = steaks4uce
-EXPLOIT_TARGET = $(EXPLOIT_NAME).o
-EXPLOIT_SOURCE = $(EXPLOIT_NAME).c
+INCLUDES = ../../../include
+SOURCES = steaks4uce.c
-PAYLOAD_NAME = $(EXPLOIT_NAME)
-PAYLOAD_TARGET = $(PAYLOAD_NAME).h
-PAYLOAD_SOURCE = $(PAYLOAD_NAME).S
+NOLINK = 1
-TARGETS = $(EXPLOIT_TARGET) $(PAYLOAD_TARGET)
+TARGET = IGNORED
-$(EXPLOIT_TARGET): $(PAYLOAD_TARGET)
- $(CC) -o $(EXPLOIT_TARGET) -c $(EXPLOIT_SOURCE) $(CFLAGS)
-
-$(PAYLOAD_TARGET):
- $(ARMCC) -o $(PAYLOAD_NAME).o -c $(PAYLOAD_SOURCE) $(ARMCFLAGS) $(ARMLDFLAGS)
- $(ARMOBJCOPY) -O binary $(PAYLOAD_NAME).o $(PAYLOAD_NAME)
- $(XXD) -i $(PAYLOAD_NAME) $(PAYLOAD_TARGET)
-
-all: $(TARGETS)
-
-clean:
- $(RM) $(EXPLOIT_NAME) *.o *.bin
+include ../../../common.mk
View
3  syringe/exploits/steaks4uce/steaks4uce.c
@@ -24,6 +24,7 @@
#include <stdlib.h>
#include "common.h"
+#include "exploits.h"
#include "steaks4uce.h"
#include "libirecovery.h"
@@ -71,7 +72,7 @@ int steaks4uce_exploit() {
}
debug("Uploading shellcode.\n");
memset(data, 0, 0x800);
- memcpy(data, steaks4uce, sizeof(steaks4uce));
+ memcpy(data, steaks4uce_payload, sizeof(steaks4uce_payload));
ret = irecv_control_transfer(client, 0x21, 1, 0, 0, data, 0x800, 1000);
if (ret < 0) {
error("Failed to upload shellcode.\n");
View
24 syringe/exploits/steaks4uce/steaks4uce.h
@@ -1,4 +1,4 @@
-unsigned char steaks4uce[] = {
+unsigned char steaks4uce_payload[] = {
0x7f, 0x46, 0x07, 0xe0, 0xc0, 0x46, 0xc0, 0x46, 0xc0, 0x46, 0xc0, 0x46,
0xc0, 0x46, 0xc0, 0x46, 0xc0, 0x46, 0xc0, 0x46, 0x59, 0x48, 0x02, 0x68,
0x59, 0x48, 0x90, 0x42, 0x0a, 0xd1, 0x59, 0x49, 0x39, 0x60, 0x59, 0x49,
@@ -7,24 +7,24 @@ unsigned char steaks4uce[] = {
0x39, 0x60, 0x52, 0x49, 0x79, 0x60, 0x56, 0x49, 0xb9, 0x60, 0x52, 0x49,
0x38, 0x1c, 0x0c, 0x30, 0x01, 0x60, 0xff, 0xe7, 0x38, 0x1c, 0x0c, 0x30,
0x03, 0x68, 0x98, 0x47, 0x51, 0x48, 0x52, 0x49, 0x3b, 0x68, 0x98, 0x47,
- 0x51, 0x48, 0x4f, 0x49, 0x4a, 0x68, 0x00, 0xf0, 0x77, 0xf8, 0x00, 0x28,
+ 0x51, 0x48, 0x4f, 0x49, 0x4a, 0x68, 0x00, 0xf0, 0xaa, 0xf8, 0x00, 0x28,
0xd2, 0xd0, 0x06, 0x1c, 0x4e, 0x48, 0x4b, 0x49, 0x4a, 0x68, 0x00, 0xf0,
- 0x6f, 0xf8, 0x00, 0x28, 0xca, 0xd0, 0x05, 0x1c, 0x11, 0x20, 0x14, 0x24,
+ 0xaa, 0xf8, 0x00, 0x28, 0xca, 0xd0, 0x05, 0x1c, 0x11, 0x20, 0x14, 0x24,
0x29, 0x19, 0x2a, 0x19, 0x20, 0x23, 0x49, 0x4c, 0x00, 0x94, 0x00, 0x24,
0x01, 0x94, 0x02, 0x94, 0x7c, 0x68, 0xa0, 0x47, 0x11, 0x20, 0x0c, 0x24,
0x31, 0x19, 0x32, 0x19, 0xb3, 0x68, 0x00, 0x24, 0x00, 0x94, 0x24, 0x24,
0x64, 0x19, 0x01, 0x94, 0x14, 0x24, 0x64, 0x19, 0x02, 0x94, 0x7c, 0x68,
0xa0, 0x47, 0x3a, 0x48, 0x0c, 0x21, 0x89, 0x19, 0xb2, 0x68, 0x15, 0x1c,
- 0x00, 0xf0, 0x42, 0xf8, 0x3b, 0x48, 0x36, 0x49, 0x2a, 0x1c, 0x00, 0xf0,
- 0x45, 0xf8, 0x00, 0x28, 0x08, 0xd0, 0x01, 0x1c, 0x38, 0x48, 0x36, 0x4a,
- 0x00, 0xf0, 0x3e, 0xf8, 0x00, 0x28, 0x01, 0xd0, 0x36, 0x49, 0x01, 0x60,
- 0x36, 0x48, 0x2e, 0x49, 0x2a, 0x1c, 0x00, 0xf0, 0x35, 0xf8, 0x00, 0x28,
- 0x08, 0xd0, 0x01, 0x1c, 0x33, 0x48, 0x2e, 0x4a, 0x00, 0xf0, 0x2e, 0xf8,
+ 0x00, 0xf0, 0xa2, 0xf8, 0x3b, 0x48, 0x36, 0x49, 0x2a, 0x1c, 0x00, 0xf0,
+ 0xaa, 0xf8, 0x00, 0x28, 0x08, 0xd0, 0x01, 0x1c, 0x38, 0x48, 0x36, 0x4a,
+ 0x00, 0xf0, 0xaa, 0xf8, 0x00, 0x28, 0x01, 0xd0, 0x36, 0x49, 0x01, 0x60,
+ 0x36, 0x48, 0x2e, 0x49, 0x2a, 0x1c, 0x00, 0xf0, 0xaa, 0xf8, 0x00, 0x28,
+ 0x08, 0xd0, 0x01, 0x1c, 0x33, 0x48, 0x2e, 0x4a, 0x00, 0xf0, 0xaa, 0xf8,
0x00, 0x28, 0x01, 0xd0, 0x31, 0x49, 0x01, 0x60, 0x31, 0x48, 0x26, 0x49,
- 0x2a, 0x1c, 0x00, 0xf0, 0x25, 0xf8, 0x00, 0x28, 0x08, 0xd0, 0x01, 0x1c,
- 0x2e, 0x48, 0x26, 0x4a, 0x00, 0xf0, 0x1e, 0xf8, 0x00, 0x28, 0x01, 0xd0,
+ 0x2a, 0x1c, 0x00, 0xf0, 0xaa, 0xf8, 0x00, 0x28, 0x08, 0xd0, 0x01, 0x1c,
+ 0x2e, 0x48, 0x26, 0x4a, 0x00, 0xf0, 0xaa, 0xf8, 0x00, 0x28, 0x01, 0xd0,
0x2c, 0x49, 0x01, 0x60, 0x2c, 0x48, 0x1e, 0x49, 0x2a, 0x1c, 0x2c, 0x4b,
- 0x00, 0xf0, 0x16, 0xf8, 0x00, 0x28, 0x03, 0xd0, 0x2a, 0x49, 0x01, 0x60,
+ 0x00, 0xf0, 0xac, 0xf8, 0x00, 0x28, 0x03, 0xd0, 0x2a, 0x49, 0x01, 0x60,
0x2a, 0x49, 0x41, 0x60, 0x00, 0x20, 0x18, 0x49, 0x00, 0x22, 0xbb, 0x68,
0x98, 0x47, 0x65, 0xe7, 0x0b, 0x78, 0x03, 0x70, 0x01, 0x30, 0x01, 0x31,
0x01, 0x3a, 0x00, 0x2a, 0xf8, 0xd1, 0x70, 0x47, 0x00, 0x23, 0xff, 0xe7,
@@ -41,4 +41,4 @@ unsigned char steaks4uce[] = {
0x00, 0x20, 0x08, 0xb0, 0x90, 0xb5, 0x01, 0xaf, 0x82, 0xb0, 0xf0, 0x24,
0x00, 0x4b, 0x18, 0x47, 0x00, 0x00, 0x00, 0x09
};
-unsigned int steaks4uce_len = 488;
+unsigned int steaks4uce_payload_len = 488;
View
1  utilities/loadibec.c
@@ -78,7 +78,6 @@ int main(int argc, char* argv[]) {
//irecv_client_t client;
irecv_error_t error;
- int i;
unsigned int cpid;
int can_ra1n = 0;

0 comments on commit c151b1e

Please sign in to comment.
Something went wrong with that request. Please try again.