-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinstall.sh
137 lines (109 loc) · 4.6 KB
/
install.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
#!/bin/bash
main() {
clear
echo -e "Welcome to the MacSploit Experience!"
echo -e "Install Script Version 2.6"
echo -ne "Checking License..."
curl -s "https://git.raptor.fun/main/jq-macos-amd64" -o "./jq"
chmod +x ./jq
curl -s "https://git.raptor.fun/sellix/hwid" -o "./hwid"
chmod +x ./hwid
local user_hwid=$(./hwid)
local hwid_info=$(curl -s "https://git.raptor.fun/api/whitelist?hwid=$user_hwid")
local hwid_resp=$(echo $hwid_info | ./jq -r ".success")
rm ./hwid
if [ "$hwid_resp" != "true" ]
then
echo -ne "\rEnter License Key: \b\b\b\b\b\b"
read input_key
echo -n "Contacting Secure Api... "
local resp=$(curl -s "https://git.raptor.fun/api/sellix?key=$input_key&hwid=$user_hwid")
echo -e "Done.\n$resp"
if [ "$resp" != 'Key Activation Complete!' ]
then
rm ./jq
exit
return
fi
else
local free_trial=$(echo $hwid_info | ./jq -r ".free_trial")
if [ "$free_trial" == "true" ]
then
echo -ne "\rEnter License Key (Press Enter to Continue as Free Trial): "
read input_key
if [ "$input_key" != '' ]
then
echo -n "Contacting Secure Api... "
local resp=$(curl -s "https://git.raptor.fun/api/sellix?key=$input_key&hwid=$user_hwid")
echo -e "Done.\n$resp"
fi
else
echo -e " Done.\nWhitelist Status Verified."
fi
fi
echo -e "Downloading Latest Roblox..."
[ -f ./RobloxPlayer.zip ] && rm ./RobloxPlayer.zip
local robloxVersionInfo=$(curl -s "https://clientsettingscdn.roblox.com/v2/client-version/MacPlayer")
local versionInfo=$(curl -s "https://git.raptor.fun/main/version.json")
local mChannel=$(echo $versionInfo | ./jq -r ".channel")
local version=$(echo $versionInfo | ./jq -r ".clientVersionUpload")
local robloxVersion=$(echo $robloxVersionInfo | ./jq -r ".clientVersionUpload")
if [ "$version" != "$robloxVersion" ] && [ "$mChannel" == "preview" ]
then
curl "http://setup.rbxcdn.com/mac/$robloxVersion-RobloxPlayer.zip" -o "./RobloxPlayer.zip"
else
curl "http://setup.rbxcdn.com/mac/$version-RobloxPlayer.zip" -o "./RobloxPlayer.zip"
fi
echo -n "Installing Latest Roblox... "
[ -d "/Applications/Roblox.app" ] && rm -rf "/Applications/Roblox.app"
unzip -o -q "./RobloxPlayer.zip"
mv ./RobloxPlayer.app /Applications/Roblox.app
rm ./RobloxPlayer.zip
echo -e "Done."
echo -e "Downloading MacSploit..."
curl "https://git.raptor.fun/main/macsploit.zip" -o "./MacSploit.zip"
echo -n "Installing MacSploit... "
unzip -o -q "./MacSploit.zip"
echo -e "Done."
echo -n "Updating Dylib..."
if [ "$version" != "$robloxVersion" ] && [ "$mChannel" == "preview" ]
then
curl -Os "https://git.raptor.fun/preview/macsploit.dylib"
else
curl -Os "https://git.raptor.fun/main/macsploit.dylib"
fi
echo -e " Done."
echo -e "Patching Roblox..."
if [ ! -f "./macsploit.dylib" ] || [ ! -f "./libdiscord-rpc.dylib" ]; then
echo "Required libraries are missing!"
rm ./jq
exit 1
fi
mv ./macsploit.dylib "/Applications/Roblox.app/Contents/MacOS/macsploit.dylib"
mv ./libdiscord-rpc.dylib "/Applications/Roblox.app/Contents/MacOS/libdiscord-rpc.dylib"
echo -n "Injecting Libraries... "
./insert_dylib "/Applications/Roblox.app/Contents/MacOS/macsploit.dylib" "/Applications/Roblox.app/Contents/MacOS/RobloxPlayer" --strip-codesig --all-yes
if [ ! -f "/Applications/Roblox.app/Contents/MacOS/RobloxPlayer_patched" ]; then
echo "Patch failed!"
rm ./jq
exit 1
fi
mv "/Applications/Roblox.app/Contents/MacOS/RobloxPlayer_patched" "/Applications/Roblox.app/Contents/MacOS/RobloxPlayer"
rm -r "/Applications/Roblox.app/Contents/MacOS/RobloxPlayerInstaller.app"
rm ./insert_dylib
echo -n "Installing MacSploit App... "
[ -d "/Applications/MacSploit.app" ] && rm -rf "/Applications/MacSploit.app"
mv ./MacSploit.app /Applications/MacSploit.app
rm ./MacSploit.zip
touch ~/Downloads/ms-version.json
echo $versionInfo > ~/Downloads/ms-version.json
if [ "$version" != "$robloxVersion" ] && [ "$mChannel" == "preview" ]
then
cat <<< $(./jq '.channel = "previewb"' ~/Downloads/ms-version.json) > ~/Downloads/ms-version.json
fi
echo -e "Done."
echo -e "Install Complete! Developed by Nexus42!"
rm ./jq
exit
}
main