View previous topic :: View next topic |
Author |
Message |
Redouane Master Cheater
Reputation: 3
Joined: 05 Sep 2013 Posts: 363 Location: Algeria
|
Posted: Tue Aug 04, 2015 5:23 am Post subject: HTML5 Hacking with the console |
|
|
I'm trying to hack an HTML5 game using the console,here is a link to the game:
http://www.newgrounds.com/portal/view/660548
How can I call a function declared in Balls.js or NG.min.js?
Thanks for any help.
|
|
Back to top |
|
 |
panraven Grandmaster Cheater
Reputation: 61
Joined: 01 Oct 2008 Posts: 958
|
Posted: Tue Aug 04, 2015 5:58 am Post subject: |
|
|
Try change the window context to the game page with your target javascript.
pic for chrome.
For firefox, there is a js command cd function, but I forget how to operate it.
After context changed, js command will be act on that window frame,eg/
Code: | alert(window.document.body.innerHTML) |
Description: |
|
Filesize: |
123.24 KB |
Viewed: |
35666 Time(s) |

|
_________________
- Retarded. |
|
Back to top |
|
 |
Redouane Master Cheater
Reputation: 3
Joined: 05 Sep 2013 Posts: 363 Location: Algeria
|
Posted: Tue Aug 04, 2015 12:06 pm Post subject: |
|
|
panraven wrote: | Try change the window context to the game page with your target javascript.
pic for chrome.
For firefox, there is a js command cd function, but I forget how to operate it.
After context changed, js command will be act on that window frame,eg/
Code: | alert(window.document.body.innerHTML) |
|
I use Firefox.
found this : https://developer.mozilla.org/en-US/docs/Tools/Web_Console#Working_with_iframes
Tried all the 3 syntax forms,and nothing works (see in screenshot)
(NG is defined in NG.min.js)
Description: |
|
Filesize: |
16.7 KB |
Viewed: |
35638 Time(s) |

|
|
|
Back to top |
|
 |
JirkaCZS How do I cheat?
Reputation: 0
Joined: 18 Jul 2015 Posts: 8
|
Posted: Wed Aug 12, 2015 3:26 pm Post subject: |
|
|
Hi,
I can't try it because I use chrome, but you tried run function NG, but you need cd("NG");.
|
|
Back to top |
|
 |
atom0s Moderator
Reputation: 204
Joined: 25 Jan 2006 Posts: 8579 Location: 127.0.0.1
|
Posted: Wed Aug 12, 2015 4:21 pm Post subject: |
|
|
JirkaCZS wrote: | Hi,
I can't try it because I use chrome, but you tried run function NG, but you need cd("NG");. |
Chrome has this feature as well. Hit F12 while viewing the page which will open the developer tools. The Javascript console can be found there as well as the html/css editor and some other goodies.
_________________
- Retired. |
|
Back to top |
|
 |
Redouane Master Cheater
Reputation: 3
Joined: 05 Sep 2013 Posts: 363 Location: Algeria
|
Posted: Fri Aug 14, 2015 3:40 pm Post subject: |
|
|
JirkaCZS wrote: | Hi,
I can't try it because I use chrome, but you tried run function NG, but you need cd("NG");. |
NG is defined in NG.min.js as :
(I am not really experienced with Javascript).
What should I do to have access to it from the console?
Thanks for your help.
Description: |
|
Filesize: |
11.04 KB |
Viewed: |
35351 Time(s) |

|
|
|
Back to top |
|
 |
JirkaCZS How do I cheat?
Reputation: 0
Joined: 18 Jul 2015 Posts: 8
|
Posted: Sun Aug 16, 2015 5:59 am Post subject: |
|
|
I am not sure if it will work, but you can try copy javascript code to console and then you can run it.
|
|
Back to top |
|
 |
|