Added Writeups
This commit is contained in:
14
iOS Resources/scripts/Install Commonly Used Utilities/Hopper.py
Executable file
14
iOS Resources/scripts/Install Commonly Used Utilities/Hopper.py
Executable file
@ -0,0 +1,14 @@
|
||||
#!/usr/bin/env python
|
||||
import urllib2
|
||||
import urllib
|
||||
import json
|
||||
headers = { 'User-Agent' : 'Mozilla/5.0' }
|
||||
req = urllib2.Request('http://hopperapp.com/include/files-api.php?request=releases',None,headers)
|
||||
print "Loading Hopper URL API"
|
||||
response = urllib2.urlopen(req)
|
||||
the_page = response.read()
|
||||
JSON=json.loads(the_page)
|
||||
OSXJSON=JSON["OS X"]
|
||||
url=OSXJSON["filename"]
|
||||
print "Downloading Hopper Latest With Size:",OSXJSON["file_length"]
|
||||
urllib.urlretrieve (url, "Hoppper-Latest.zip")
|
79
iOS Resources/scripts/Install Commonly Used Utilities/Installer.sh
Executable file
79
iOS Resources/scripts/Install Commonly Used Utilities/Installer.sh
Executable file
@ -0,0 +1,79 @@
|
||||
#/bin/bash
|
||||
echo "Installing Xcode Commandline Tools"
|
||||
xcode-select --install
|
||||
if ! type "brew" > /dev/null; then
|
||||
# install Homebrew
|
||||
echo "Installing Homebrew"
|
||||
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
|
||||
else
|
||||
echo "Homebrew already installed"
|
||||
fi
|
||||
|
||||
if ! type "dpkg" > /dev/null; then
|
||||
# install dpkg
|
||||
echo "Installing dpkg"
|
||||
brew install dpkg
|
||||
else
|
||||
echo "dpkg already installed"
|
||||
fi
|
||||
|
||||
if ! type "ldid" > /dev/null; then
|
||||
# install ldid
|
||||
echo "Installing ldid"
|
||||
brew install ldid
|
||||
else
|
||||
echo "ldid already installed"
|
||||
fi
|
||||
|
||||
export THEOS=/opt/theos
|
||||
if [ ! -d "$THEOS" ]; then
|
||||
# Theos isn't existe
|
||||
echo "Installing Theos"
|
||||
echo "export THEOS=/opt/theos" >>~/.bash_profile
|
||||
source ~/.bash_profile
|
||||
sudo git clone --recursive https://github.com/theos/theos.git $THEOS
|
||||
sudo git clone https://github.com/theos/headers.git $THEOS/Headers
|
||||
sudo cp -r $THEOS/Headers/ $THEOS/include
|
||||
sudo rm -rf $THEOS/Headers/
|
||||
else
|
||||
# Theos existe
|
||||
echo "Theos already installed"
|
||||
fi
|
||||
|
||||
if ! type "wget" > /dev/null; then
|
||||
# install wget
|
||||
echo "Installing wget"
|
||||
brew install wget
|
||||
else
|
||||
echo "wget already installed"
|
||||
fi
|
||||
|
||||
if [ ! -d "/Applications/Reveal.app" ]; then
|
||||
# Reveal app isn't existe
|
||||
echo "Installing Reveal"
|
||||
wget http://download.revealapp.com/Reveal.app.zip
|
||||
unzip -XK ./Reveal.app.zip
|
||||
chmod +x ./Reveal.app/Contents/MacOS/Reveal
|
||||
mv ./Reveal.app /Applications/Reveal.app
|
||||
rm -rf ./Reveal.app
|
||||
rm -rf ./Reveal.app.zip
|
||||
else
|
||||
echo "Reveal app already installed"
|
||||
fi
|
||||
|
||||
if [ ! -d "/Applications/Hopper Disassembler v3.app" ]; then
|
||||
# Hopper app isn't existe
|
||||
echo "Installing Hopper"
|
||||
sudo ./Hopper.py
|
||||
unzip -XK ./Hoppper-Latest.zip
|
||||
mv './Hopper Disassembler v3.app' '/Applications/Hopper Disassembler v3.app'
|
||||
else
|
||||
echo "Hopper app already installed"
|
||||
fi
|
||||
|
||||
|
||||
sudo ./debugserver.py
|
||||
git clone https://github.com/nygard/class-dump.git class-dump
|
||||
xcodebuild -project ./class-dump/class-dump.xcodeproj #Compile classdump
|
||||
mv ./class-dump/build/Release/class-dump /usr/local/bin
|
||||
rm -rf ./class-dump
|
8
iOS Resources/scripts/Install Commonly Used Utilities/README.md
Executable file
8
iOS Resources/scripts/Install Commonly Used Utilities/README.md
Executable file
@ -0,0 +1,8 @@
|
||||
# iOSRETools
|
||||
>>YOU MUST cd TO THIS FOLDER BEFORE DOING ANYTHING!!!
|
||||
>>Then Just ./Installer.sh
|
||||
A collection of commonly used iOSRE Tools
|
||||
|
||||
Pull Requests Are Favoured
|
||||
|
||||
>>Naville.Zhang
|
28
iOS Resources/scripts/Install Commonly Used Utilities/debugserver.py
Executable file
28
iOS Resources/scripts/Install Commonly Used Utilities/debugserver.py
Executable file
@ -0,0 +1,28 @@
|
||||
#!/usr/bin/env python
|
||||
import subprocess
|
||||
import string
|
||||
import os
|
||||
Path = subprocess.check_output(['xcode-select', '-p'])
|
||||
Path = Path + "/Platforms/iPhoneOS.platform/DeviceSupport"
|
||||
Path = string.replace(Path, "\n", "")
|
||||
print "Developer Images Located At:", Path
|
||||
for Sub in os.listdir(Path):
|
||||
SubDire = os.path.join(Path, Sub)
|
||||
if (os.path.isdir(SubDire)):
|
||||
print "Loading Developer Disk Image At:\n",SubDire
|
||||
os.system("hdiutil mount "+"\""+SubDire+"\""+"/DeveloperDiskImage.dmg -mountpoint /Volumes/DeveloperDiskImage")
|
||||
DebugSrvPath=SubDire+"/debugserver"
|
||||
print DebugSrvPath
|
||||
print "Current DebugServer Copied To:\n"+DebugSrvPath
|
||||
os.system("cp /Volumes/DeveloperDiskImage/usr/bin/debugserver "+"\""+SubDire+"\"")
|
||||
os.system("codesign -s - --entitlements ./debugsrvEntitle.xml -f "+"\""+DebugSrvPath+"\"")
|
||||
Version=os.path.basename(os.path.normpath(SubDire))#Thanks http://stackoverflow.com/questions/3925096/how-to-get-only-the-last-part-of-a-path-in-python
|
||||
print "Version For Current DebugServer:\n"+Version
|
||||
os.system("cp "+"\""+DebugSrvPath+"\""+" ./DebugServer"+"\""+Version+"\"")
|
||||
|
||||
|
||||
print "Unloading Developer Disk Image At:\n",SubDire
|
||||
os.system("hdiutil unmount /Volumes/DeveloperDiskImage")
|
||||
os.remove(DebugSrvPath)
|
||||
|
||||
|
14
iOS Resources/scripts/Install Commonly Used Utilities/debugsrvEntitle.xml
Executable file
14
iOS Resources/scripts/Install Commonly Used Utilities/debugsrvEntitle.xml
Executable file
@ -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>com.apple.springboard.debugapplications</key>
|
||||
<true/>
|
||||
<key>run-unsigned-code</key>
|
||||
<true/>
|
||||
<key>get-task-allow</key>
|
||||
<true/>
|
||||
<key>task_for_pid-allow</key>
|
||||
<true/>
|
||||
</dict>
|
||||
</plist>
|
Reference in New Issue
Block a user