mirror of
https://github.com/trufflesecurity/xsshunter
synced 2024-11-10 06:44:13 +00:00
Update probe.js (#44)
This probe has the issue stated in the link below * https://github.com/mandatoryprogrammer/xsshunter-express/issues/11 This commit fixes it.
This commit is contained in:
parent
16504bf063
commit
b0416990e4
1 changed files with 16 additions and 3 deletions
17
probe.js
17
probe.js
|
@ -304,12 +304,25 @@ try {
|
|||
probe_return_data['injection_key'] = '';
|
||||
}
|
||||
|
||||
try{
|
||||
probe_return_data['title'] = document.title;
|
||||
} catch( e ){
|
||||
probe_return_data['title'] = '';
|
||||
}
|
||||
|
||||
//probe_return_data['text'] = get_dom_text();
|
||||
|
||||
try{
|
||||
probe_return_data['text'] = get_dom_text();
|
||||
} catch( e ){
|
||||
probe_return_data['text'] = '';
|
||||
}
|
||||
|
||||
try{
|
||||
probe_return_data['was_iframe'] = !(window.top === window)
|
||||
} catch( e ){
|
||||
probe_return_data['was_iframe'] = '';
|
||||
|
||||
}
|
||||
|
||||
|
||||
async function hook_load_if_not_ready() {
|
||||
try {
|
||||
|
|
Loading…
Reference in a new issue