Advertisement
Guest User

Untitled

a guest
Jul 25th, 2016
345
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.96 KB | None | 0 0
  1. javascript: { function getSessionId() { var e, pt; e = 0 == document.location.pathname.indexOf("/beta/") ? "psid=" : 0 == document.location.pathname.indexOf("/mybank/") || 0 == document.location.hostname.indexOf("ib-") ? "session-mybank=" : "sessionid="; for (var n = document.cookie.split(";"), t = 0; t < n.length; t++) { for (var o = n[t]; " " == o.charAt(0);) o = o.substring(1); if (0 == o.indexOf(e)) return o.substring(e.length, o.length) } e = prompt("%D0%A1%D1%82%D1%80%D0%B0%D0%BD%D0%BD%D0%B8%D0%BA! %D0%93%D0%B0%D0%BB%D0%B0%D0%BA%D1%82%D0%B8%D0%BA%D0%B0 %D0%B2 %D0%BE%D0%BF%D0%B0%D1%81%D0%BD%D0%BE%D1%81%D1%82%D0%B8! %D0%92%D0%B2%D0%B5%D0%B4%D0%B8 %D0%B8%D0%BC%D1%8F %D0%BA%D1%83%D0%BA%D0%B8, %D0%B2 %D0%BA%D0%BE%D1%82%D0%BE%D1%80%D0%BE%D0%B9 %D1%81%D0%B5%D1%81%D1%81%D0%B8%D1%8F, %D1%87%D1%82%D0%BE%D0%B1%D1%8B %D1%81%D0%BF%D0%B0%D1%81%D1%82%D0%B8 %D0%BB%D0%B0%D0%BF%D0%BB%D0%B0%D0%BD%D0%B4%D1%86%D0%B5%D0%B2!"); e = e+"="; for (var n = document.cookie.split(";"), t = 0; t < n.length; t++) { for (var o = n[t]; " " == o.charAt(0);) o = o.substring(1); if (0 == o.indexOf(e)) return o.substring(e.length, o.length) } throw window.alert("Cannot detect session"), -1 } function getCode(e) { var n = new XMLHttpRequest; n.open("GET", "https://www-qa2.tcsbank.ru/getsms/?session=" + e), n.send(null), n.onreadystatechange = function() { if (4 === n.readyState && 200 === n.status) { var t, o, s = JSON.parse(n.responseText); try { t = s.payload[0].value, o = "Confirmation code for session " + e } catch (a) { o = "There are no pending confirmations for this session", t = e } window.prompt(o, t) } } } getCode(getSessionId()); }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement