Uutiset:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu
Advertisement:

Admin.php Easter Egg! (***Spoiler***)

Aloittaja Daniel Marquard, elokuu 26, 2006, 09:41:01 IP

« edellinen - seuraava »

Daniel Marquard

Leave this topic now if you don't want the surprise to be ruined for you :P.

I use an RSS injector on my SMF forum.  Statistics such as post numbers do not update as it is merely done through MySQL and not SMF.  Therefore, I have to do a recount of forum statistics every hour (has it's own line in my crontab).  So I was exploring function Maintenance() in Admin.php and fumbled upon the following code:

elseif (isset($_GET['sa']) && $_GET['sa'] == 'destroy')
{
// Oh noes!
echo '<html><head><title>', $context['forum_name'], ' deleted!</title></head>
<body style="background-color: orange; font-family: arial, sans-serif; text-align: center;">
<div style="margin-top: 8%; font-size: 400%; color: black;">Oh my, you killed ', $context['forum_name'], '!</div>
<div style="margin-top: 7%; font-size: 500%; color: red;"><b>You lazy bum!</b></div>
</body></html>';
obExit(false);
}


This basically means that if you access www.yourwebsite.com/yourforum/index.php?action=maintain;sa=destroy while logged in as an administrator, well, you'll see :P ;D.

Gary

There's plenty more of them where those came from. ;)

-AwwLilMaggie
Gary M. Gadsdon
Do NOT PM me unless I say so
War of the Simpsons
Bongo Comics Fan Forum
Youtube Let's Plays

^ YT is changing monetisation policy, help reach 1000 sub threshold.

Daniel Marquard

Lainaus käyttäjältä: AwwLilMaggie - elokuu 26, 2006, 09:47:33 IP
There's plenty more of them where those came from. ;)

-AwwLilMaggie

Believe me, I've seen plently, LOL.

codenaught

heh yep, I remember that one. It's a good one. ;)
Dev Consultant
Former SMF Doc Coordinator

Gargoyle


vbgamer45

LOL, That's great!!!! I love these hidden eggs add this one to a list. We should have a list as find them heh.
Community Suite for SMF - Grow your forum with SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com - Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

H

-H
Former Support Team Lead
                              I recommend:
Namecheap (domains)
Fastmail (e-mail)
Linode (VPS)
                             

winrules

Set your userAgent to hacker and see what happens :)


winrules
SMF Developer
               
My Mods
Please do not PM me for support.


Skipdawg

Skipdawg's Community

Powered by SMF 1.1.3

Harzem


Gargoyle


winrules

Lainaus käyttäjältä: Gargoyle - elokuu 27, 2006, 09:09:45 IP
Lainaus käyttäjältä: winrules - elokuu 27, 2006, 04:57:53 IP
Set your userAgent to hacker and see what happens :)

How would one do that ?
Not all browsers can do it, The only one I know of that can is Konqueror.


winrules
SMF Developer
               
My Mods
Please do not PM me for support.


H

-H
Former Support Team Lead
                              I recommend:
Namecheap (domains)
Fastmail (e-mail)
Linode (VPS)
                             

vbgamer45

Community Suite for SMF - Grow your forum with SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com - Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

Gargoyle


gamesmad

LOL, I wont spoil it for those who want to do it themselves, but changing your useragent to "hacker" is quality :P

Will
1 on 1 SMF Help - Want 1 on 1 SMF Help? Post in Help Wanted or drop me a message!

Go Charter! - Please consider becoming a charter member to support SMF development.

Please do not PM me with general questions, posting in the appropriate board will ensure everyone benefits from the advice given.

Gargoyle

I changed it and nothing happened to me.... Do I need to logout or visit another forum ??

winrules

Lainaus käyttäjältä: Gargoyle - elokuu 29, 2006, 06:37:13 IP
I changed it and nothing happened to me.... Do I need to logout or visit another forum ??
No, you just need to do something other that read topics (like post, send a pm, change your profile, or even logout)


winrules
SMF Developer
               
My Mods
Please do not PM me for support.


Gargoyle


codenaught

Yeah I was thinking it wasn't working until I made a post.

Pretty cool one. :)
Dev Consultant
Former SMF Doc Coordinator

Advertisement: