Sinisterly
PHP hello world obfuscation contest - Printable Version

+- Sinisterly (https://sinister.ly)
+-- Forum: Coding (https://sinister.ly/Forum-Coding)
+--- Forum: PHP (https://sinister.ly/Forum-PHP)
+--- Thread: PHP hello world obfuscation contest (/Thread-PHP-hello-world-obfuscation-contest)

Pages: 1 2


PHP hello world obfuscation contest - meow - 05-02-2016

Title says it all, create an obfuscated PHP script that simply prints "hello world" (case doesn't matter). The objective is to make it look at confusing as possible.

Rules:
No encrypting, encoding (base64 and whatnot), hashing, etc.
No redundant code like comments or x+1-1+1-1 etc

Here's what I was able to come up with in an hour or so, I even ended up confusing myself near the end, but I got it to work. It just prints "hello world" -

PHP Code:
@$_["\x68"]=chr(ord("\x68")).chr(ord("e")).chr(104)."\x6C".chr(108)."\x2F"."\x52".chr(111).chr(108)."\x20";@$___=$_["h"];@$__[1]=$_[chr(104)][0x0+(0*0)-50+(25*(sqrt(4)))].$___[(int)"\x37"];@$__[0x02]=$___[0x0+(sqrt(sqrt(81)))].$_[chr(54+(10*(sqrt(25))))][1].$_["h"][count($_["\x68"])-2]."\x20";@$_["\x77"]=chr(119)."\x6F"."\x72"."balls".chr(108)."\x64"."\x6C".chr(126)."\x2F"."\x52".chr(ord("\x6F"));@$_["lol"]=$_[chr(69+(5*(sqrt(100))))][0].$_["h"][count($_["\x68"])+6].$_[chr(119)][sqrt(16)/2].$_["\x68"][count($_[chr(104)])+3]."\x64";printf($__[sqrt(1)][0].$__[sqrt(4)][1*1].$__[5%3][count($__[(int)"\x32"])-1].$__[(2378420%2)+2][0].$__[9%4][count($__[1])]."\x20".$_["lol"]."\xA");



RE: PHP hello world obfuscation contest - meow - 05-02-2016

Seriously? No one's even going to try to make one harder than mine?

All I did was use (hexa)decimal and math to make it look more complicated.. there are WAY more things you could do to make it look better than mine.


RE: PHP hello world obfuscation contest - meow - 05-05-2016

Now that activity has boosted, I'd like to see if there's anyone from the newly merged forum that would like to take a swing at this.


RE: PHP hello world obfuscation contest - insidious - 05-05-2016

(05-05-2016, 11:03 PM)meow Wrote: Now that activity has boosted, I'd like to see if there's anyone from the newly merged forum that would like to take a swing at this.

Wow I totally missed your post on this on the first.

I'll try this over the weekend when I have more time. I'm consumed with finals right now. Putting this in my TODOlist so I don't forget,


RE: PHP hello world obfuscation contest - Mafia - 05-05-2016

If I can find some time I will definitely like to try this!


RE: PHP hello world obfuscation contest - Pirate - 05-05-2016

that text kind of reminds me of a Liberal's healthcare plan.

Ineffective, Costly and can result in Death


RE: PHP hello world obfuscation contest - m0dem - 05-06-2016

(05-05-2016, 11:34 PM)Pirate Wrote: that text kind of reminds me of a Liberal's healthcare plan.

Ineffective, Costly and can result in Death

lol.
#TotallyIrrelevantPoliticalJab


RE: PHP hello world obfuscation contest - Pirate - 05-06-2016

(05-06-2016, 12:29 AM)m0dem Wrote: lol.
#TotallyIrrelevantPoliticalJab

But is it REALLY irrelevant?
#MakeAmericaRelevantAgain


RE: PHP hello world obfuscation contest - Oni - 05-06-2016

(05-06-2016, 12:30 AM)Pirate Wrote: But is it REALLY irrelevant?
#MakeAmericaRelevantAgain

Oh dear...


RE: PHP hello world obfuscation contest - Pirate - 05-06-2016

(05-06-2016, 12:32 AM)Oni Wrote: Oh dear...

speaking of relevance here comes @Oni