~Javascript 7~
You can exicute javascript code by placing it into the URL where you type the location you are at type in javascript:code to be exicuted here if you wish to play around with the javascript and see what it does you can try a little trick i used once and that is go to http://www.w3schools.com/js/tryit.asp?filename=tryjs_text and edit around the text of the javascript to suite your needs then press the click me to c what happens
For javascript injection to alert things, you go to the page - www.thepage.com/whatever.php - then once you're in there, you delete everything in the URL bar and then type 'javscript:alert(' and then whatever. There's a good article on it in webhacking I think.
just go to w3schools use their examples to execute your code, or learn aboout javascript there. use the alert command to alert the values you need. if you need more help with this chall or other js's go to my article at http://www.hellboundhackers.org/readarticle.php?article_id=381
well if the alert doesnt work then try googlin substr with js or go to www.w3schools.com
hey guys, havign a little trouble with this one… i know what i need to use etc, but im having trouble with my code, either by the saving the source method or the injection… when i try to inject i cant get it to stay on the page for me to enter the code (because it loops the input box)…. when i edit the source i can't get it to pop up a webpage, it just pops up the source. any suggestions?
For saving the source, make sure that you have it inside the <script> tags. If you do have that, then im guessing you left out the <body> bit at the end which is required to call the password function. You can take out the body bit, but you would either have to call the function another way, or take out the line "function password () {" and the last "}" before the closing <script> tags so that the script runs when the page loads. In my opinion saving the source is easier than using an injection.
Hope that helps :D
This is the source code I get when I got to the page Try what you were doing on your last post, but I suggest you DELETE the source on your last post since its a spoiler (I only meant you to post the unedited source code sorry :p) Ill edit mine out afterwards since its just to fix your problem, other people should have to find the source and all that on their own EDITed source out
Wondering if somebody would be able to help me on this mission seeing as I, along with many others seem to be stuck.
I know that this mission can be solved through saving the source code and altering it, but I figure it's a javascript mission…I may as well use javascript, so that's the method I want to use.
Was wondering if I could PM somebody to get a push in the right direction.
Thanks in advance.
I know what needs to be done now, I just don't know HOW. I've got to edit the source so that the page so that the alert reveals something more useful than just "Wrong," and then redirects to the HBH page.
Now my next question may seems a little noobish, but I haven't seen anyone post about it so far, so here goes. When I look at the source it only shows javascript. There are no HTML tags etc…so when I alter it as a text file and then try and open it as a web page, nothing happens.
Is an easer way to do this?
Please respond, I'm really stuck : (
this one is easy. all the nudges you need are here. instead of wasting your time with the harddrive, just use http://www.w3schools.com/js/tryit.asp?filename=try_dom_anchor_href or something like that… then just paste the source of javascript 7 in between the <html>and </html>tags and get to work!