JAVA QUESTION

General technological topics without their own forum go here

JAVA QUESTION

Post by 323LORDofWAR323 on Fri Mar 08, 2013 8:03 pm
([msg=74412]see JAVA QUESTION[/msg])

Mkay heres my question
I know there is a way to change a value in javascript on the page of interest

for example

var glblBlnVideoComplete = false;
the var is set to false

further down the page there are several if statements
i need the value to be set to true so i can access the results for
{
if(glblBlnVideoComplete)
return true;
return confirm('This will log you out. Are you sure?');
}


My question is
how do i change this value to true
on the page
and it actually occur
on the page

If y'all need more specifics i can give them IDK what information is needed to solve this problem

All help appreciated :mrgreen:
323LORDofWAR323
New User
New User
 
Posts: 8
Joined: Fri Mar 08, 2013 7:56 pm
Blog: View Blog (0)


Re: JAVA QUESTION

Post by 0phidian on Fri Mar 08, 2013 8:20 pm
([msg=74413]see Re: JAVA QUESTION[/msg])

Java and javascript are completely different, so this is a javascript question.

To edit the javascript you can use firebug or save a local copy of the html and edit the javascript.
User avatar
0phidian
Poster
Poster
 
Posts: 270
Joined: Sat Jun 16, 2012 7:04 pm
Blog: View Blog (0)


Re: JAVA QUESTION

Post by 323LORDofWAR323 on Fri Mar 08, 2013 8:30 pm
([msg=74415]see Re: JAVA QUESTION[/msg])

Ok i have firebug in firefox
But how would i change the value?

And i tried the local copy of the HTML because i learned that in the basic missions...but the site opened and looked really jacked up and i couldnt make the local copy route work

Using Firebug how would i change a value on a page

If this is too much to explain just give me a good resource for what i need...ive found nothing
thankss
323LORDofWAR323
New User
New User
 
Posts: 8
Joined: Fri Mar 08, 2013 7:56 pm
Blog: View Blog (0)


Re: JAVA QUESTION

Post by WallShadow on Sat Mar 09, 2013 7:45 am
([msg=74422]see Re: JAVA QUESTION[/msg])

if you have a moment to edit stuff after the variable is instantiated but before it is checked, then you would simply enter into the console tab of firebug this: "glblBlnVideoComplete = true;". it must be after instantiation because instantiation will change it to false no matter what, and do it before the function is used for obvious reasons.

If you don't have that window, you might want some kind of JS debugger which can break the execution before the function is called and after instantiation.

If you can't get that, what I would do is get ZAP attack proxy to catch all responses before they hit the browser, than edit the response containing the proper JS, specifically I would edit the instantiation so that instead of "var glblBlnVideoComplete = false;" I would have "var glblBlnVideoComplete = true;"

<3
User avatar
WallShadow
Contributor
Contributor
 
Posts: 594
Joined: Tue Mar 06, 2012 9:37 pm
Blog: View Blog (0)



Return to General

Who is online

Users browsing this forum: No registered users and 0 guests