Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

TRIPCODE QUINE!!!!

Name: faggot !Ep8pui8Vw2 2007-08-28 21:19 ID:8YbuJbma

Can you hack it /PROG/?

Name: Anonymous 2007-08-29 5:01 ID:7E9J51VB

>>11
You haven't yet mastered BBCode. You are not an EXPERT PROGRAMMER.

Anyway, say for a second I was wrong about this tripcode quine impossibility.


<?php
function tripcode($trip)
{
    $cap  = $trip;
    $cap  = strtr($cap,"&amp;", "&");
    $cap  = strtr($cap,",", ",");
    $salt = substr($cap."H.",1,2);
    $salt = ereg_replace("[^\.-z]",".",$salt);
    $salt = strtr($salt,":;<=>?@[\\]^_`","ABCDEFGabcdef");
    return substr(crypt($cap,$salt),-10)."";
}

srand();
while(1)
{
    $string = tripcode(rand()); // We need a 'random' string, and we need it to be a valid trip
    if(tripcode($string) == $string)
    {
        echo "Quine found! - $string\n";
    }
}
?>


This script hunts for 'tripcode quines'. According to my theory, it will never return any output. Ever. But give a try if you want :)

Name: Anonymous 2007-08-29 5:04 ID:7E9J51VB

>>12
Are you stupid? Why don't you read what the OP is suggesting? >>2

The op is suggesting a specially crafted tripcode that when entered as "name#asdsdfsf" it comes out as "name!asdsdfsf".

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List