Skip to content

Commit

Permalink
Merge branch 'master' into master
Browse files Browse the repository at this point in the history
  • Loading branch information
elijahtsai authored Feb 8, 2021
2 parents 565ed2b + a437d52 commit 100c6f3
Show file tree
Hide file tree
Showing 4 changed files with 60 additions and 39 deletions.
68 changes: 32 additions & 36 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
<p align="center">
<img height="200" src="https://i.imgur.com/laXau20.png">
</p>

![banner](banner.png)

## SketchCrapp

Expand All @@ -24,10 +23,7 @@ For the people who would like to try the new version, we got you covered. You ca

And do it in one command: `bash -c "$(curl -s https://raw.githubusercontent.com/duraki/SketchCrapp/master/sketchcrapp.sh -o -)" -O -m`

<p align="center">
<img height="100%" src="https://i.imgur.com/xq3MHJd.png">
</p>

![magictrickimage](https://i.imgur.com/xq3MHJd.png)

## Notice
- The application should automatically detect your Sketch.App version. If not, you can pass `-a` argument for your Sketch.app Application Bundle or use `-m` argument to automatically install and crack the latest version.
Expand All @@ -45,8 +41,8 @@ crackb0x:SketchCrapp duraki$ ./sketchcrapp.sh -h
Usage:
./sketchcrapp [-h] [-a] <applicationPath> [-m]
Supported versions: v58, v63.1, v64.0, v65.1, v66.1, v67, v67.1, v67.2,
v68, v68.1, v68.2, v69, v69.1, v69.2, v70.2, v70.3
[+] SketchCrapp last published date: 2021-01-17 serial 001
v68, v68.1, v68.2, v69, v69.1, v69.2, v70.2, v70.3, v70.4
[+] SketchCrapp last published date: 2021-02-05 serial 001
```

```
Expand All @@ -60,10 +56,10 @@ crackb0x:SketchCrapp duraki$ ./sketchcrapp.sh -m
by @duraki & @elijahtsai
[+] Checking directory tmp existence ... OK
[+] Fetching https://download.sketch.com/sketch-70.3-109109.zip ...
[+] Fetching https://download.sketch.com/sketch-70.4-109185.zip ...
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 58.5M 100 58.5M 0 0 2514k 0 0:00:23 0:00:23 --:--:-- 2229k
100 58.5M 100 58.5M 0 0 1805k 0 0:00:33 0:00:33 --:--:-- 2328k
Checking if Sketch.app exist in /tmp ... Not exist. Continuous.
[+] Checking if Sketch.app exist in /Applications ... Exist. Removing.
[+] Moving Sketch.app to /Applications directory ... Successfully.
Expand All @@ -72,56 +68,56 @@ Checking if Sketch.app exist in /tmp ... Not exist. Continuous.
[+] Finding Info.plist ... OK
[+] Checking Info.plist for CFBundleShortVersionString ... OK
[+] Validating executable file ... OK
[+] Selected Sketch.app version is 70.3 ... SketchCrapp starting ... OK
[+] Patching offsets for 70.3 ... Starting modern arch patch via bash&seek ...
[+] Patching address at offset: 0x58619f with value: \00
[+] Selected Sketch.app version is 70.4 ... SketchCrapp starting ... OK
[+] Patching offsets for 70.4 ... Starting modern arch patch via bash&seek ...
[+] Patching address at offset: 0x58606f with value: \00
1+0 records in
1+0 records out
1 bytes transferred in 0.000021 secs (47663 bytes/sec)
[+] Patching address at offset: 0x5861a2 with value: \00
1 bytes transferred in 0.000026 secs (38480 bytes/sec)
[+] Patching address at offset: 0x586072 with value: \00
1+0 records in
1+0 records out
1 bytes transferred in 0.000017 secs (59075 bytes/sec)
[+] Patching address at offset: 0x584dee with value: \00\00
1 bytes transferred in 0.000020 secs (49932 bytes/sec)
[+] Patching address at offset: 0x584cbe with value: \00\00
2+0 records in
2+0 records out
2 bytes transferred in 0.000021 secs (95325 bytes/sec)
[+] Patching address at offset: 0x584f1e with value: \165
2 bytes transferred in 0.000023 secs (86480 bytes/sec)
[+] Patching address at offset: 0x584dee with value: \165
1+0 records in
1+0 records out
1 bytes transferred in 0.000015 secs (66576 bytes/sec)
[+] Patching address at offset: 0x66d058 with value: \00\00\00\00\00\00\00\00\00\00\00\00\00\00\00
1 bytes transferred in 0.000018 secs (55924 bytes/sec)
[+] Patching address at offset: 0x66cffb with value: \00\00\00\00\00\00\00\00\00\00\00\00\00\00\00
15+0 records in
15+0 records out
15 bytes transferred in 0.000062 secs (241979 bytes/sec)
[+] Patching address at offset: 0x66d068 with value: \40\123\153\145\164\143\150\103\162\141\160\160\40
[+] Patching address at offset: 0x66d00b with value: \40\123\153\145\164\143\150\103\162\141\160\160\40
13+0 records in
13+0 records out
13 bytes transferred in 0.000056 secs (232025 bytes/sec)
[+] Patching address at offset: 0xdcd574 with value: \01
13 bytes transferred in 0.000059 secs (220753 bytes/sec)
[+] Patching address at offset: 0xdcd484 with value: \01
1+0 records in
1+0 records out
1 bytes transferred in 0.000016 secs (62602 bytes/sec)
[+] Patching address at offset: 0xdcd578 with value: \24
1 bytes transferred in 0.000017 secs (58254 bytes/sec)
[+] Patching address at offset: 0xdcd488 with value: \24
1+0 records in
1+0 records out
1 bytes transferred in 0.000016 secs (62602 bytes/sec)
[+] Patching address at offset: 0xdcc1ec with value: \165\00
[+] Patching address at offset: 0xdcc0fc with value: \165\00
2+0 records in
2+0 records out
2 bytes transferred in 0.000024 secs (83056 bytes/sec)
[+] Patching address at offset: 0xdcc30f with value: \64
2 bytes transferred in 0.000020 secs (99864 bytes/sec)
[+] Patching address at offset: 0xdcc21f with value: \64
1+0 records in
1+0 records out
1 bytes transferred in 0.000018 secs (55924 bytes/sec)
[+] Patching address at offset: 0xed0fd7 with value: \00\00\00\00\00\00\00\00\00\00\00\00\00\00\00
1 bytes transferred in 0.000017 secs (59075 bytes/sec)
[+] Patching address at offset: 0xed0fa5 with value: \00\00\00\00\00\00\00\00\00\00\00\00\00\00\00
15+0 records in
15+0 records out
15 bytes transferred in 0.000070 secs (213995 bytes/sec)
[+] Patching address at offset: 0xed0fe7 with value: \40\123\153\145\164\143\150\103\162\141\160\160\40
15 bytes transferred in 0.000066 secs (227128 bytes/sec)
[+] Patching address at offset: 0xed0fb5 with value: \40\123\153\145\164\143\150\103\162\141\160\160\40
13+0 records in
13+0 records out
13 bytes transferred in 0.000061 secs (212992 bytes/sec)
13 bytes transferred in 0.000059 secs (220753 bytes/sec)
[+] SketchCrapp certificate already exists.
[+] Skipping certificate creation ... OK
[+] Signing the patched *.app bundle. This may require root privilege.
Expand All @@ -140,7 +136,7 @@ Checking if Sketch.app exist in /tmp ... Not exist. Continuous.
[+] SketchCrapp (A Sketch.app cracking tool)
[+] https://github.com/duraki/SketchCrapp [by @duraki & @elijahtsai]
[+] SketchCrapp last published date: 2021-01-17 serial 001
[+] SketchCrapp last published date: 2021-02-05 serial 001
```

## Issues
Expand Down
Binary file added banner.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed shot.png
Binary file not shown.
31 changes: 28 additions & 3 deletions sketchcrapp.sh
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,22 @@ address_param_703+=("0xdcc30f")
address_param_703+=("0xed0fd7")
address_param_703+=("0xed0fe7")
exe_hash_703="9a0e6b7721c275b75e1fb6b70b55cda7ab99c4a8"
# Version 70.4
declare -a address_param_704
version_list+=("70.4")
address_param_704+=("0x58606f")
address_param_704+=("0x586072")
address_param_704+=("0x584cbe")
address_param_704+=("0x584dee")
address_param_704+=("0x66cffb")
address_param_704+=("0x66d00b")
address_param_704+=("0xdcd484")
address_param_704+=("0xdcd488")
address_param_704+=("0xdcc0fc")
address_param_704+=("0xdcc21f")
address_param_704+=("0xed0fa5")
address_param_704+=("0xed0fb5")
exe_hash_704="6adf7ee4c29bb1a61739b8804c7ce6d94c791f36"
# Value parameter array.
declare -a value_legacy_param
value_legacy_param+=("\00")
Expand Down Expand Up @@ -179,7 +195,7 @@ EOF
# Last function to run before exit.
finally() {
local status="$1"
echo "[+] SketchCrapp last published date: 2021-01-17 serial 001"
echo "[+] SketchCrapp last published date: 2021-02-05 serial 001"
exit $status
}

Expand All @@ -189,7 +205,7 @@ usage() {
echo "Usage:"
echo "./sketchcrapp [-h] [-a] <applicationPath> [-m]"
echo "Supported versions: v58, v63.1, v64.0, v65.1, v66.1, v67, v67.1, v67.2,"
echo "v68, v68.1, v68.2, v69, v69.1, v69.2, v70.2, v70.3"
echo "v68, v68.1, v68.2, v69, v69.1, v69.2, v70.2, v70.3, v70.4"
finally 0;
}

Expand Down Expand Up @@ -324,6 +340,9 @@ getHashFromVersionString() {
"70.3")
echo "$exe_hash_703"
;;
"70.4")
echo "$exe_hash_704"
;;
*)
echo "Input version string invaild, cannot lookup correct hash value."
esac
Expand Down Expand Up @@ -460,6 +479,9 @@ repository: https://github.com/duraki/SketchCrapp"
"$exe_hash_703")
testBundleVersionString="70.3"
;;
"$exe_hash_704")
testBundleVersionString="70.4"
;;
*)
testBundleVersionString="binaryerr››"
echo "Error"
Expand Down Expand Up @@ -654,6 +676,9 @@ engin() {
"70.3")
patch "${address_param_703[*]}" "$execPath"
;;
"70.4")
patch "${address_param_704[*]}" "$execPath"
;;
*)
echo "Error"
echo "Something went wrong, this line should never execute."
Expand Down Expand Up @@ -704,7 +729,7 @@ https://github.com/duraki/SketchCrapp"
magicFunction() {

# RUP Review every time when new verison update part.
local latestBundleURLPath="https://download.sketch.com/sketch-70.3-109109.zip"
local latestBundleURLPath="https://download.sketch.com/sketch-70.4-109185.zip"

# Check if missing cURL
if ! command -v curl &> /dev/null; then
Expand Down

0 comments on commit 100c6f3

Please sign in to comment.