Hi,
Could you please tell me where is the error in the fallowing code:
ThanksPHP Code:$name = "Angry Coder";
$name = base64_encode ("echo $name;");
echo $name;
echo "<br><br><br>";
eval (base64_decode ("ZWNobyBBbmdyeSBDb2Rlcjs="));
| SitePoint Sponsor |
Hi,
Could you please tell me where is the error in the fallowing code:
ThanksPHP Code:$name = "Angry Coder";
$name = base64_encode ("echo $name;");
echo $name;
echo "<br><br><br>";
eval (base64_decode ("ZWNobyBBbmdyeSBDb2Rlcjs="));
Why It Doesn't Work?!
should be:PHP Code:$name = base64_encode ("echo $name;");
SeanPHP Code:$name = base64_encode ($name);
![]()
Harry Potter
-- You lived inside my world so softly
-- Protected only by the kindness of your nature
Thanks. But i don't think that was the problem!
The fallowing code works fine:
I just removed the blank space from the variable $name!PHP Code:$name = "AngryCoder";
$name = base64_encode ("echo $name;");
echo $name;
echo "<br><br><br>";
eval (base64_decode ("ZWNobyBBbmdyeUNvZGVyOw=="));
I need to put spaces in my string!![]()
![]()
Why It Doesn't Work?!
instead of
change the " to a ' (single insted of double).PHP Code:$name = base64_encode ("echo $name;");
havent tried it but since when doing something like this:
and thenPHP Code:$name="Shanor";
what u get isPHP Code:echo "hello $name";
hello Shanor
what u actually wanna get as i understand it from u'r explanation is not the value of $name but the dollar sign and the name word so that u'll be able to execute it in the future...
doint the following:
will result in:PHP Code:$name="Shanor";
echo 'hello $name';
hello $name
therefore u should have the following code line:
hope i made myself clear.PHP Code:$name = base64_encode ('echo $name;');
Shanor
You can't see your self in the mirror with your eyes closed!
coder...pardon my ignorance, but what exactly is it you're trying to achieve with this code ?
re·dux (adj.): brought back; returned. used postpositively
[latin : re-, re- + dux, leader; see duke.]
WaSP Accessibility Task Force Member
splintered.co.uk | photographia.co.uk | redux.deviantart.com
shanor,
Thanks for your help, but please read the fallowing to know what i want to do:
redux,
I am coding a script -that's not free- and i don't want people who buy it remove the copyright lines!!!
... I know they can remove it. But it will be much difficult if i do it this way![]()
Why It Doesn't Work?!
ok, so you want to encode the "echo my copyright notice" bit and then have the decoded bit executed...right...but what stops people from just removing the eval() ? ok, inexperience users might not make a direct connection between an eval and a copyright notice appearing, but through trial and error they will.
also, if i personally saw this, i would damn sure want to know first thing what the decoded thing is before i let eval run lose on my server...ok, maybe paranoid, but that's me, eh ?
so...like the idea, but i think it's not worth it really...imho, of course
re·dux (adj.): brought back; returned. used postpositively
[latin : re-, re- + dux, leader; see duke.]
WaSP Accessibility Task Force Member
splintered.co.uk | photographia.co.uk | redux.deviantart.com
on a related note: maybe it's worth looking at zend encoder. ok, maybe a bit pricey, but i don't know what kind of price you're asking for your script...![]()
re·dux (adj.): brought back; returned. used postpositively
[latin : re-, re- + dux, leader; see duke.]
WaSP Accessibility Task Force Member
splintered.co.uk | photographia.co.uk | redux.deviantart.com
i guessed that, i saw it once in one of the code exchange sites...
but trully, just as redux said, the first thing i did was to decode it and analize the code (in that code not just the copyrigth was encrypted but the entire 200 rows were encrypted).
plz do tell me if what i wrote priviously worked?
Shanor.
You can't see your self in the mirror with your eyes closed!
no programmers will not be able to decode it! believe me!
Some people can not even edit the config file!!!
+
The code of my script is complicated enough!
+
I gonna put some IMPORTANT variables in the encrypted code, so if (he) remove the copyright notice the script will be destroyed
shanor,
no, it didn't works.
Why It Doesn't Work?!
Bookmarks