Previous Thread
Next Thread
Print Thread
Rate Thread
#68877 03/28/2001 6:10 PM
Joined: Feb 2000
Posts: 61
Member
Member
Offline
Joined: Feb 2000
Posts: 61
This contest open to everyone, including Mark and Charles [Linked Image]

Code
code:

Explain how this code works.


"Waffles are nothing more than a vehicle for butter and syrup" - Dr. Clayton Forrester
Sponsored Links
Joined: Mar 2000
Posts: 3,594
Moderator / Template Diva
Moderator / Template Diva
Offline
Joined: Mar 2000
Posts: 3,594
I bet it takes .00003 cents out of every transaction completed in tne New York Stock Exchange, and then sends that money into an offshore holding account in the Caymans that only I know the twenty-seven digit password to. laugh

---Skorpion


Don't put that signature in your mouth! You don't know where it's been!
Joined: Mar 2000
Posts: 41
Member
Member
Offline
Joined: Mar 2000
Posts: 41
Aha! But I have also figured out the twenty-seven digit password! And Im getting rich! rich! rich!

***dances about, chanting "Can't fool me Im the gingerbread man!"***
laugh


Keep smilin smile
Joined: Sep 2000
Posts: 755
P.I.T.A. / Programmer
P.I.T.A. / Programmer
Offline
Joined: Sep 2000
Posts: 755
from a very quick look I see the q* *; and q! !; so those combined with the evals lead to the actual perl code for print "Just another Perl hacker" being constructed within. then evaling on the completed string issues the print.

I don't have time do decipher the actual statement construction right now, but looks like you put a lot of effort into it.

--mark


"Annnnnnnndd now, opening for Iron Maiden...... WYLD STALLYNS!!!" --Bill S. Preston, Esquire and Ted "Theodore " Logan
Joined: Feb 2000
Posts: 4,625
Member
Member
Offline
Joined: Feb 2000
Posts: 4,625
i'll come up with part 3 tommorow. wink tipsy

Sponsored Links
Joined: Feb 2000
Posts: 61
Member
Member
Offline
Joined: Feb 2000
Posts: 61
You have the general idea, Mark. Actually, it took a little more than an hour to write.

That last eval is only there because I wanted to break the program into separate lines - avoiding the wide UBB display annoyance. I had to escape all the backslashes between q* and *; because of that.

I made a program to create the encrypted message. First used sprintf to convert the "Yet another..." message to octal. Tacked the string "print eval" in front of that (with a little trick to get eval to work properly), then used sprintf again to convert that string to octal. Then used the y/// thingy to turn the octal representation to punctuation charaters. From there, it was pretty simple to add the decryption stuff.

I'll post the encryption and test code if anyone wants to see it.

The hard part was figuring when to escape and when not to escape.


"Waffles are nothing more than a vehicle for butter and syrup" - Dr. Clayton Forrester
Joined: Mar 2000
Posts: 41
Member
Member
Offline
Joined: Mar 2000
Posts: 41
Phew! It amazes me how you people can come up with such complicated code! My general knowledge is with PHP, so I honestly wouldn't have a clue as to how you did that or deciphered it.

Cool though, all the same. laugh


Keep smilin smile

Link Copied to Clipboard
Donate Today!
Donate via PayPal

Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.

Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
isaac
isaac
California
Posts: 1,157
Joined: July 2001
Forum Statistics
Forums63
Topics37,573
Posts293,925
Members13,849
Most Online5,166
Sep 15th, 2019
Today's Statistics
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
Top Posters
AllenAyres 21,079
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,833
Greg Hard 4,625
Top Posters(30 Days)
Top Likes Received
isaac 82
Gizmo 20
Brett 7
WebGuy 2
Morgan 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2024 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20221218)