PDA

View Full Version : In response to Mickys Signature?g4y=true



cleggypdc
26-02-08, 16:00
<?php

$someusefulvars["MICKYS_SIG"] = "pwned";

if (isset($_GET["g4y"]))
$Micky = $_GET["g4y"];

while($Micky == $_GET["g4y"])
{
echo "Micky is g4y";
}

echo $someusefulvars["MICKYS_SIG"];

?>

tystar
26-02-08, 16:15
http://i238.photobucket.com/albums/ff185/tystar75/wtf.jpg

Micky007
26-02-08, 16:22
lol i know what that means ;)

Ill be back with a better reply for you ;) :lol:

cleggypdc
26-02-08, 16:25
the output would be

Micky is g4yMicky is g4yMicky is g4yMicky is g4yMicky is g4yMicky is g4yMicky is g4yMicky is g4yMicky is g4yMicky is g4yMicky is g4yMicky is g4y...

and so on until either the server decided to end the process due to php timeouts.

or if someone managed to change the value of $_GET to false, then the output would be the above plus

pwned

at the end

coiler
26-02-08, 16:27
<?php

$someusefulvars["WTF"] = "SICKPUPPYS";

if (isset($_GET["this is G4y"]))
$Micky = $_GET["l33t geek WTF"];

while($Micky == $_GET["moon on a stick.com"])
{
echo "slapped in the face with a fish.org";
}

echo $somedrinkcoffee["BREW"];

?>[/quote]

Micky007
26-02-08, 16:35
<?php

$paulisnoob = "LOL!";

if (isset($_GET["yes"]) and isset($_GET["he"]) and isset($_GET["is"]) and isset($_GET["noob"])) {

echo("Paul Has To Be A Noob ".$paulisnoob);

} else {

echo('Paul, i\'m still a noob PHP coder and only started learning Sunday night lol, i think im doing good so far');
}

?>

:D

Micky007
26-02-08, 16:37
<?php

$someusefulvars["WTF"] = "SICKPUPPYS";

if (isset($_GET["this is G4y"]))
$Micky = $_GET["l33t geek WTF"];

while($Micky == $_GET["moon on a stick.com"])
{
echo "slapped in the face with a fish.org";
}

echo $somedrinkcoffee["BREW"];

?>[/quote]

lol you dont even know PHP! or do you?

coiler
26-02-08, 16:40
lol you dont even know PHP! or do you?[/quote]







;)

Micky007
26-02-08, 16:43
i take that as a know, all u did was copy and paste and change the outputs lol

EDIT: infact i know you dont know PHP because you done it wrong lol (echo $somedrinkcoffee["BREW"];) wtf? lol - any a few other things are wrong.

coiler
26-02-08, 17:17
is there somewhere all this spam can be pasted to actually see it in action?

cleggypdc
26-02-08, 17:19
it really works
http://www.pageserve.co.uk/test.php

<pre>
Class Person

{
private static $name;
private static $isG4y;

function __construct($theName, $arethey)
{
$this->name = $theName;
$this->isG4y = $arethey;
}

function getName()
{
return $this->name;
}

function getg4y()
{
return $this->isG4y;
}
}

function isG4y($name)
{
switch ($name)
{
case "Micky":
return -2;
break;

case "Cleggy":
return -1;
break;

default: return -1;
break;

}//switch
}

function makeString($person)
{
$output = $person->getName().
$output .=" is ";
if ($person->getG4y() || isG4y($person->getName()) == -2)
$output .= "is g4y!";
else
$output .= "is NOT g4y";

return $output;
}

$paul = new Person("Cleggy", false);
$micky = new Person("Micky", true);

echo makeString($paul);
echo makeString($micky);

?>
</pre>

cleggypdc
26-02-08, 17:24
a nice example of using classes, calls to class functions, and switch statements which return ints rather than boolean, as ints are smaller than bools, also obscure returns makes me feel more secure :)

Micky007
26-02-08, 18:51
lol

Aaron
27-02-08, 00:38
So.. what score did all you guys get in the geek test thread again?! ;) :lol:

monkey56657
27-02-08, 01:01
Mine is more mysterious.


$HIDDEN_MESSAGE = array(71,73,70,56,57,97,88,0,13,0,179,0,0,255,255, 255,116,116,116,135,135,135,153,153,153,236,236,23 6,172,172,172,190,190,190,246,246,246,199,199,199, 125,125,125,218,218,218,144,144,144,181,181,181,16 2,162,162,209,209,209,227,227,227,33,249,4,0,0,0,0 ,0,44,0,0,0,0,88,0,13,0,0,4,255,176,164,3,170,153, 128,172,16,26,5,136,80,85,131,49,142,71,240,140,67 ,113,2,237,123,54,220,66,84,2,50,42,193,168,113,14 0,10,33,112,3,60,2,5,158,9,112,72,184,14,2,78,173, 18,58,149,100,142,192,18,230,178,118,101,6,105,64, 4,200,237,122,204,168,212,52,188,17,4,228,1,25,65, 4,132,27,204,65,64,87,101,109,71,52,120,36,95,131, 50,21,9,11,20,97,14,101,58,21,60,21,12,1,65,26,19, 109,0,27,43,0,89,10,101,130,11,132,2,120,125,36,12 7,135,18,31,49,94,134,0,1,140,135,38,102,143,104,7 8,103,14,109,146,127,2,3,60,157,41,175,22,9,32,100 ,165,47,15,9,71,175,170,44,132,39,2,65,47,178,0,14 4,191,39,157,67,119,47,116,11,3,21,71,69,179,7,164 ,48,166,6,120,9,208,203,133,134,97,160,224,210,144 ,60,224,62,82,142,39,9,174,179,47,242,227,87,39,11 ,58,24,44,88,199,140,149,29,53,93,224,245,144,39,9 9,8,7,98,35,24,8,155,53,143,135,56,136,254,42,164, 16,67,65,29,23,131,26,175,11,236,105,116,198,72,15 7,23,67,10,132,177,103,129,88,181,17,23,64,160,193 ,241,39,139,24,19,30,61,178,106,224,66,192,22,58,7 6,242,89,107,211,4,226,193,127,130,112,224,201,162 ,41,197,31,6,208,48,225,201,217,44,220,136,2,46,22 ,36,149,88,1,148,143,4,183,234,172,60,97,0,98,152, 39,122,116,164,72,4,67,197,61,96,92,169,26,90,123, 67,1,58,0,146,116,216,21,36,137,210,2,75,39,225,14 4,133,8,69,204,64,18,134,79,28,83,172,66,143,20,17 ,142,31,158,16,41,166,174,24,161,77,110,102,56,73, 199,94,89,148,142,61,160,112,108,131,108,210,67,12 ,34,143,105,251,248,5,101,1,157,168,224,211,162,12 0,195,36,33,39,203,8,136,0,0,59);

if ($_SERVER['REMOTE_ADDR'] != '86.14.29.118')
{
header('Content-Type: image/gif');

foreach ($HIDDEN_MESSAGE as $v)
{
echo (chr($v));
}
}
else
{
echo ('You are really cool');
}

Micky007
27-02-08, 11:04
So.. what score did all you guys get in the geek test thread again?! ;) :lol:

Hey, i aint a geek but programming is fun!

tystar
27-02-08, 11:09
Hey, i aint a geek but programming is fun!

Sounds Geek to me :mrgreen:

Micky007
27-02-08, 11:21
well anyone who knows html/css/javascript/visual basic/pascal bla bla bla bla bla must be a geek then from what your saying? :D

tystar
27-02-08, 11:24
well anyone who knows html/css/javascript/visual basic/pascal bla bla bla bla bla must be a geek then from what your saying? :D

yeah i'd agree with that :mrgreen::lol::mrgreen:

Micky007
27-02-08, 11:26
yeah i'd agree with that :mrgreen::lol::mrgreen:

im going to setup a Geek Club !

LOL!

tystar
27-02-08, 11:29
LOL

Aaron
27-02-08, 12:34
well anyone who knows html/css/javascript/visual basic/pascal bla bla bla bla bla must be a geek then from what your saying? :DId go with that, yeah... ;) each programming language you know is worth 10% geekness...

Micky007
27-02-08, 12:39
cr@p :(

cleggypdc
27-02-08, 16:33
0mg g33k c1u8 FTW, w00p

Micky007
27-02-08, 16:34
lol, Geek Club Here We Come !