-
Notifications
You must be signed in to change notification settings - Fork 126
/
Copy pathconfigmake
executable file
·171 lines (134 loc) · 5.01 KB
/
configmake
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
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
<?php
$DATA = array(
'APPLE ID' => array(
array(
'server' => 'https://setup.icloud.com',
'port' => 443,
'method' => 'Post',
'tech' => 'Auth',
'payloadaddr' => '/setup/get_account_settings',
'useragent' => 'Settings/1.0 CFNetwork/672.0.8 Darwin/14.0.0',
'payload' => '<?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>protocolVersion</key>
<string>1.0</string>
<key>userInfo</key>
<dict>
<key>language</key>
<string>en</string>
<key>timezone</key>
<string>America/Chicago</string>
</dict>
</dict>
</plist>',
'headers' => array(
'Proxy-Connection: keep-alive',
'Accept: */*',
'Accept-Encoding: gzip, deflate',
'Content-Type: application/xml',
'Accept-Language: en-us',
'X-MMe-Country: US',
'X-MMe-Client-Info: <iPhone4,1> <iPhone OS;7.0.4;11B554a> <com.apple.AppleAccount/1.0 (com.apple.Preferences/1.0)',
'Content-length: ',
'Connection: keep-alive'),
'options' => array (
CURLOPT_PORT => '$port',
CURLOPT_POST => true,
CURLOPT_USERPWD => '$username.":".$pass',
CURLOPT_ENCODING => "",
CURLOPT_SSL_VERIFYPEER => false,
CURLOPT_SSL_VERIFYHOST => false,
CURLOPT_POSTFIELDS => '$payload',
CURLOPT_USERAGENT => '$useragent',
CURLOPT_HTTPHEADER => '$headers'),
),
array(
'server' => 'https://setup.icloud.com',
'port' => 443,
'method' => 'Get',
'tech' => 'Auth',
'payloadaddr' => '/setup/fmipauthenticate/$APPLE_ID$',
'useragent' => 'Settings/1.0 CFNetwork/672.1.14 Darwin/14.0.0',
'payload' => '',
'headers' => array(
'Proxy-Connection: keep-alive',
'Accept: */*',
'Accept-Encoding: gzip, deflate',
'Content-Type: application/xml',
'Accept-Language: en-us',
'X-MMe-Country: US',
'X-MMe-Client-Info: <iPhone3,2> <iPhone OS;7.1.1;11D201> <com.apple.AppleAccount/1.0 (com.apple.Preferences/1.0)>'),
'options' => array (
CURLOPT_PORT => '$port',
CURLOPT_USERPWD => '$username.":".$pass',
CURLOPT_ENCODING => "",
CURLOPT_SSL_VERIFYPEER => false,
CURLOPT_SSL_VERIFYHOST => false,
CURLOPT_USERAGENT => '$useragent',
CURLOPT_HTTPHEADER => '$headers'),
),
), //end apple id
'APPLE WEB OBJECTS' => array(
array(
'server' => '',
'port' => 80,
'method' => 'Post',
'tech' => 'URLencode',
'payloadaddr' => 'scripts/WebObjects/*.woa/wa/DirectAction/logIn',
'useragent' => 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.5) Gecko/20060731 Firefox/1.5.0.5 Flock/0.7.4.1',
'payload' => 'userName=$username&password=$pass&loginSubmit=Log+In',
'headers' => array(
'Host: $server',
'User-Agent: $useragent',
'Accept: */*',
'Accept-Language: en-us',
'Accept-Encoding: gzip, deflate',
'Referer: http://$server:$port/',
'Connection: keep-alive',
'Content-Type: application/x-www-form-urlencoded',
'Content-length: '),
'options' => array (
CURLOPT_POST => true,
CURLOPT_PORT => '$port',
CURLOPT_ENCODING => "",
CURLOPT_SSL_VERIFYPEER => false,
CURLOPT_SSL_VERIFYHOST => false,
CURLOPT_POSTFIELDS => '$payload',
CURLOPT_USERAGENT => '$useragent',
CURLOPT_HTTPHEADER => '$headers'),
),
array(
'server' => '',
'port' => 80,
'method' => 'Post',
'tech' => 'URLencode',
'payloadaddr' => 'scripts/WebObjects/*.woa/wa/DirectAction/logIn',
'useragent' => 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.5) Gecko/20060731 Firefox/1.5.0.5 Flock/0.7.4.1',
'payload' => 'userName=$username&password=$pass&loginSubmit=Log+In',
'headers' => array(
'Host: $server',
'User-Agent: $useragent',
'Accept: */*',
'Accept-Language: en-us',
'Accept-Encoding: gzip, deflate',
'Referer: http://$server:$port/',
'Connection: keep-alive',
'Content-Type: application/x-www-form-urlencoded',
'Content-length: '),
'options' => array (
CURLOPT_POST => true,
CURLOPT_PORT => '$port',
CURLOPT_ENCODING => "",
CURLOPT_SSL_VERIFYPEER => false,
CURLOPT_SSL_VERIFYHOST => false,
CURLOPT_POSTFIELDS => '$payload',
CURLOPT_USERAGENT => '$useragent',
CURLOPT_HTTPHEADER => '$headers'),
),
),//end apple web objects
);//end everything
file_put_contents('../files/config.json', json_encode ( $DATA, JSON_PRETTY_PRINT ));
print "file saved!\n";
?>