Follow us on Twitter!
I'd prefer to die standing, than to live on my knees - Che Guevara
Friday, July 31, 2015
Navigation
Home
HellBoundHackers Main:
HellBoundHackers Find:
HellBoundHackers Information:
Learn
Communicate
Submit
Shop
Challenges
HellBoundHackers Exploit:
HellBoundHackers Programming:
HellBoundHackers Think:
HellBoundHackers Track:
HellBoundHackers Patch:
HellBoundHackers Other:
HellBoundHackers Need Help?
Other
Members Online
Total Online: 22
Guests Online: 14
TeamSpeak Online : 5 Members Online: 8

Registered Members: 89392
Newest Member: kiwi
Latest Articles
View Thread

HellBound Hackers | Challenges | Timed Challenges

Author

Timed 6


Member

Your avatar

Posts:
Location:
Joined: 01.01.70
Rank:
Guest
Posted on 10-01-11 06:12
Hi so up until this point I've used grease monkey to complete all of the timed 1-5 challenges. However I'm running into difficultly with this one. I done research and around the forums and google and found the grease monkey function for xmlhttprequest. *Below* . The function works fine but I can't seem to find a way to get the responseDetails.responseText variable outside the GM function in the main javascript part of the function. So my first question is, is there a way to do this? Since I seem to have found the GM functions allow only local variables.

/*
GM_xmlhttpRequest({
method: 'GET',
url: querry, //censored to prevent spoiler
headers: {
'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
'Accept': 'application/atom+xml,application/xml,text/xml',
},
onload: function(responseDetails) {
alert(responseDetails.responseText);
}
})

My next question is after failing at this method I tried using the normal xmlhttp Request function but could not get it to load. I tried a basic load function I found on a website. But I never received the alert. Why would this be?

var req = new XMLHttpRequest();
req.open('GET', 'https://developer.mozilla.org/En/Using_XMLHttpRequest', false);
req.send(null);
if(req.status == 200){
alert(req.responseText);
}


Any help would be appreciated.
Nighthunter33
Author

RE: Timed 6

spyware
Member



Posts: 4192
Location:
Joined: 14.04.07
Rank:
God
Warn Level: 90
Posted on 10-01-11 06:54
Same origin policy.



img507.imageshack.us/img507/3580/spynewsig3il1.png
"The chowner of property." - Zeph
[small]
Widespread intellectual and moral docility may be convenient for leaders in the short term,
but it is suicidal for nations in the long term.
- Carl Sagan
[center]�Since the grid is inescapable, what were the earlier lasers about? Does the corridor have a sense of humor?� - Ebert[/ce

Edited by spyware on 10-01-11 06:55
Author

RE: Timed 6


Member

Your avatar

Posts:
Location:
Joined: 01.01.70
Rank:
Guest
Posted on 10-01-11 08:12
I actually solved this by just coding the rest of the challenge within the GM function where I had the alert. While I'm sure this is not the correct way to do it. I could not find a way to store the variable. I even tried saving the variable to a text file and reloading it, but that didn't work.

Thanks for the reply of the origin policy, it was actually looking that up that gave me the idea to stay within GM

-nighthunter33