-
Notifications
You must be signed in to change notification settings - Fork 423
/
randomized.profile
74 lines (62 loc) · 1.35 KB
/
randomized.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
#
# This profile demonstrates the use of the mask transform to randomize aspects of a profile
#
set useragent "Mozilla/5.0 (Windows NT 10.0; WOW64; Trident/7.0; rv:11.0) like Gecko";
# define indicators for an HTTP GET
http-get {
# we require a stub URI to attach the rest of our data to.
set uri "/zC";
client {
# mask our metadata, base64 encode it, store it in the URI
metadata {
mask;
base64url;
uri-append;
}
}
server {
header "Content-Type" "text/plain";
# prepend some text in case the GET is empty.
output {
prepend "ABCDEFGHIJKLMNOPQRSTUVWXYZ";
mask;
base64;
print;
}
}
}
# define indicators for an HTTP POST
http-post {
set uri "/dE";
set verb "POST";
client {
# make it look like we're posting something cool.
header "Content-Type" "application/x-www-form-urlencoded";
# ugh, our data has to go somewhere!
output {
mask;
base64url;
uri-append;
}
# randomize and post our session ID
id {
mask;
base64url;
prepend "v=";
append "&button=submit";
print;
}
}
# The server's response to our HTTP POST
server {
header "Content-Type" "text/plain";
# post usually sends nothing, so let's prepend a string, mask it, and
# base64 encode it. We'll get something different back each time.
output {
prepend "ABCDEFGHIJKLMNOPQRSTUVWXYZ";
mask;
base64;
print;
}
}
}