| View previous topic :: View next topic |
| Author |
Message |
Fuzz Grandmaster Cheater
Reputation: 0
Joined: 12 Nov 2006 Posts: 531
|
Posted: Mon Sep 08, 2008 7:16 pm Post subject: [php/javascript] Way to pass javascript through php link? |
|
|
Hi.
Is there a way to pass javascript through a php link.
Google gave nothing, although i might not have been looking for long enough. Does anyone have any information, or perhaps an example?
Thanks. _________________
|
|
| Back to top |
|
 |
pkedpker Master Cheater
Reputation: 1
Joined: 11 Oct 2006 Posts: 412
|
Posted: Mon Sep 08, 2008 7:39 pm Post subject: |
|
|
[? echo['[js]alert['js test'];[/js]']; ?]
;]
fix []'s u know how _________________
Last edited by pkedpker on Mon Sep 08, 2008 7:50 pm; edited 2 times in total |
|
| Back to top |
|
 |
jackyyll Expert Cheater
Reputation: 0
Joined: 28 Jan 2008 Posts: 143 Location: here
|
Posted: Mon Sep 08, 2008 7:45 pm Post subject: |
|
|
| Code: |
<?
echo "<script type='text/javascript'>alert('why dont you just type it out instead of making him fix stupid shit?');</script>";
?>
|
|
|
| Back to top |
|
 |
pkedpker Master Cheater
Reputation: 1
Joined: 11 Oct 2006 Posts: 412
|
Posted: Mon Sep 08, 2008 7:52 pm Post subject: |
|
|
cant do < for some reason instead copy/paste keyboard is messed. took me min to ype this reply _________________
|
|
| Back to top |
|
 |
Wintermoot Expert Cheater
Reputation: 0
Joined: 08 Nov 2007 Posts: 198
|
Posted: Mon Sep 08, 2008 11:37 pm Post subject: |
|
|
| Buy a new keyboard? Use OSK? GTFO CEF until you have a working keyboard? |
|
| Back to top |
|
 |
pkedpker Master Cheater
Reputation: 1
Joined: 11 Oct 2006 Posts: 412
|
Posted: Tue Sep 09, 2008 12:00 am Post subject: |
|
|
| HawwwaH wrote: | | Buy a new keyboard? Use OSK? GTFO CEF until you have a working keyboard? |
do not flame please.. I tried to help unlike you..
Yes im using OSK.. but its too slow _________________
|
|
| Back to top |
|
 |
ElectroFusion Grandmaster Cheater
Reputation: 0
Joined: 17 Dec 2006 Posts: 786
|
Posted: Tue Sep 09, 2008 9:36 am Post subject: |
|
|
Both of you shut the fuck up, if your not gonna help him get out.
Like that one guy said, but I usually do this.
| Code: |
<?php
/* whatever here */
?>
<script type="text/javascript">alert("Hi there.")</script>
|
It works because php files are like html files. _________________
| qwerty147 wrote: |
| ghostonline wrote: |
what world are you in?
|
bera
but i live in NZ
|
|
|
| Back to top |
|
 |
jackyyll Expert Cheater
Reputation: 0
Joined: 28 Jan 2008 Posts: 143 Location: here
|
Posted: Tue Sep 09, 2008 10:19 am Post subject: |
|
|
| Code: |
<?
$js = "<script type='text/javascript'>";
if ( isset( $_GET['javascript'] ) )
{
$js += $_GET['javascript'];
}
$js += "</script>";
echo $js;
?>
|
Then just goto yourpage?javascript=alert('aids');
Note: semi-pseudo code and it could potentially be very dangerous to do this.. Since there is no code to check what their input is you could execute a remote file inclusion exploit. |
|
| Back to top |
|
 |
Fuzz Grandmaster Cheater
Reputation: 0
Joined: 12 Nov 2006 Posts: 531
|
Posted: Tue Sep 09, 2008 1:09 pm Post subject: |
|
|
Thanks for the replies, but I'm not talking about embedding JS into my page, I want like javascript in the link: heres an example.
http://forum.cheatengine.org/posting.php?(iwantjavascripthere)
And the javascript would need to change something in the pages javascript? i dont know if thats really possible.
So sorry for the confusion. _________________
|
|
| Back to top |
|
 |
nog_lorp Grandmaster Cheater
Reputation: 0
Joined: 26 Feb 2006 Posts: 743
|
Posted: Tue Sep 09, 2008 2:02 pm Post subject: |
|
|
Firstly, PHP is confusing you. There is no such thing as a PHP link, your problem is just an HTML question.
To answer your question, you want to use the onclick attribute.
| Code: | | <a href="#" onclick="while(1) { alert('u r an fag'); }">Click here for free porn!</a> |
_________________
Mutilated lips give a kiss on the wrist of the worm-like tips of tentacles expanding in my mind
I'm fine accepting only fresh brine you can get another drop of this yeah you wish |
|
| Back to top |
|
 |
Flyte Peanuts!!!!
Reputation: 6
Joined: 19 Apr 2006 Posts: 1887 Location: Canada
|
Posted: Tue Sep 09, 2008 2:18 pm Post subject: |
|
|
No, what I think happened is that he read about SQL injection (all the rage with the MS kiddies these days) and thought: "OMG LOL, JAVASCRIPT INJECTION!!121!@12".
If you want to change something with the pages JavaScript/HTML just use GreaseMonkey for FireFox or type it directly into the URL bar. It only shows changes on your computer, it's just page formatting after all, so don't think that you will be an "uber leet pro haxor" for doing so. |
|
| Back to top |
|
 |
Fuzz Grandmaster Cheater
Reputation: 0
Joined: 12 Nov 2006 Posts: 531
|
Posted: Tue Sep 09, 2008 3:44 pm Post subject: |
|
|
| Flyte wrote: | No, what I think happened is that he read about SQL injection (all the rage with the MS kiddies these days) and thought: "OMG LOL, JAVASCRIPT INJECTION!!121!@12".
If you want to change something with the pages JavaScript/HTML just use GreaseMonkey for FireFox or type it directly into the URL bar. It only shows changes on your computer, it's just page formatting after all, so don't think that you will be an "uber leet pro haxor" for doing so. |
Not quite flyte.
Now what i meant nog_lorp: just i knew u could do &blah for different things in php in the link, so i didnt know.
flyte: I was only trying to change a timer on a page...No "leet haxing" from MS or whatever?
Anyway, I tried to use GreaseMonkey, and when i edit it through the url, like var blah = 0, the webpage will just turn to 0...
That being said. How can I change a timer on a webpage which uses javascript. The timer runs off your system time with like
date() or something odd. I know you can do this, becuase i've seen it done in javscript for rapidshare...
Any help now? _________________
|
|
| Back to top |
|
 |
nog_lorp Grandmaster Cheater
Reputation: 0
Joined: 26 Feb 2006 Posts: 743
|
Posted: Tue Sep 09, 2008 4:12 pm Post subject: |
|
|
So... are you using PHP or not? Like I said there is no such thing as a PHP link. You can use PHP VARIABLES in links, and PHP substitutes the value of the variable.
If you are doing something from the CLIENT, then you aren't doing anything with PHP at all whatsoever and should forget about it.
As for changing the value of something from your browser, you want to use javascript urls, like so:
| Code: | | javascript: x = 0; void(0); |
Normally the return value of the whole expression is spit out in your browser, use void(0); to stop that from happening.
You probably want to overwrite the function prototype that is controlling the timer to not use date().
~nog_lorp
PS: give us source/link and it will be easier to understand what you are talking about. _________________
Mutilated lips give a kiss on the wrist of the worm-like tips of tentacles expanding in my mind
I'm fine accepting only fresh brine you can get another drop of this yeah you wish |
|
| Back to top |
|
 |
jackyyll Expert Cheater
Reputation: 0
Joined: 28 Jan 2008 Posts: 143 Location: here
|
Posted: Tue Sep 09, 2008 5:24 pm Post subject: |
|
|
| Fuzz wrote: | | Flyte wrote: | No, what I think happened is that he read about SQL injection (all the rage with the MS kiddies these days) and thought: "OMG LOL, JAVASCRIPT INJECTION!!121!@12".
If you want to change something with the pages JavaScript/HTML just use GreaseMonkey for FireFox or type it directly into the URL bar. It only shows changes on your computer, it's just page formatting after all, so don't think that you will be an "uber leet pro haxor" for doing so. |
Not quite flyte.
Now what i meant nog_lorp: just i knew u could do &blah for different things in php in the link, so i didnt know.
flyte: I was only trying to change a timer on a page...No "leet haxing" from MS or whatever?
Anyway, I tried to use GreaseMonkey, and when i edit it through the url, like var blah = 0, the webpage will just turn to 0...
That being said. How can I change a timer on a webpage which uses javascript. The timer runs off your system time with like
date() or something odd. I know you can do this, becuase i've seen it done in javscript for rapidshare...
Any help now? |
In the address bar, "javascript:void( var timer = 0 );". |
|
| Back to top |
|
 |
Fuzz Grandmaster Cheater
Reputation: 0
Joined: 12 Nov 2006 Posts: 531
|
Posted: Tue Sep 09, 2008 6:01 pm Post subject: |
|
|
oh trust me i wish the timer was that simple. but i'll give it a few tries.
The timer itself is kinda complex
Edit: fuck this. nothing gives. _________________
|
|
| Back to top |
|
 |
|