Simple Machines Community Forum

Archived Boards and Threads... => Archived Boards => SMF Feedback and Discussion => Aiheen aloitti: Daniel Marquard - elokuu 26, 2006, 09:41:01 IP

Otsikko: Admin.php Easter Egg! (***Spoiler***)
Kirjoitti: Daniel Marquard - elokuu 26, 2006, 09:41:01 IP
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.
Otsikko: Re: Admin.php Easter Egg! (***Spoiler***)
Kirjoitti: Gary - elokuu 26, 2006, 09:47:33 IP
There's plenty more of them where those came from. ;)

-AwwLilMaggie
Otsikko: Re: Admin.php Easter Egg! (***Spoiler***)
Kirjoitti: Daniel Marquard - elokuu 26, 2006, 09:51:25 IP
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.
Otsikko: Re: Admin.php Easter Egg! (***Spoiler***)
Kirjoitti: codenaught - elokuu 26, 2006, 09:55:43 IP
heh yep, I remember that one. It's a good one. ;)
Otsikko: Re: Admin.php Easter Egg! (***Spoiler***)
Kirjoitti: Gargoyle - elokuu 26, 2006, 10:04:09 IP
Ha that's funny!!
Otsikko: Re: Admin.php Easter Egg! (***Spoiler***)
Kirjoitti: vbgamer45 - elokuu 27, 2006, 01:27:53 AP
LOL, That's great!!!! I love these hidden eggs add this one to a list. We should have a list as find them heh.
Otsikko: Re: Admin.php Easter Egg! (***Spoiler***)
Kirjoitti: H - elokuu 27, 2006, 03:02:20 IP
Lainaus käyttäjältä: vbgamer45 - elokuu 27, 2006, 01:27:53 AP
LOL, That's great!!!! I love these hidden eggs add this one to a list. We should have a list as find them heh.

http://www.simplemachines.org/community/index.php?topic=102612.0 :P
Otsikko: Re: Admin.php Easter Egg! (***Spoiler***)
Kirjoitti: winrules - elokuu 27, 2006, 04:57:53 IP
Set your userAgent to hacker and see what happens :)
Otsikko: Re: Admin.php Easter Egg! (***Spoiler***)
Kirjoitti: Skipdawg - elokuu 27, 2006, 05:05:06 IP
Yea these Easter Eggs are very KEWL  8) ;D
Otsikko: Re: Admin.php Easter Egg! (***Spoiler***)
Kirjoitti: Harzem - elokuu 27, 2006, 05:08:23 IP
Old news!

http://www.simplemachines.org/community/index.php?topic=83209.0
Otsikko: Re: Admin.php Easter Egg! (***Spoiler***)
Kirjoitti: 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 ?
Otsikko: Re: Admin.php Easter Egg! (***Spoiler***)
Kirjoitti: winrules - elokuu 28, 2006, 11:55:34 AP
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.
Otsikko: Re: Admin.php Easter Egg! (***Spoiler***)
Kirjoitti: H - elokuu 28, 2006, 02:55:03 IP
Firefox useragent plugin :)
Otsikko: Re: Admin.php Easter Egg! (***Spoiler***)
Kirjoitti: vbgamer45 - elokuu 28, 2006, 03:12:57 IP
Read this link to edit the user agent in Firefox
http://johnbokma.com/mexit/2004/04/24/changinguseragent.html
Otsikko: Re: Admin.php Easter Egg! (***Spoiler***)
Kirjoitti: Gargoyle - elokuu 28, 2006, 10:26:24 IP
Lainaus käyttäjältä: vbgamer45 - elokuu 28, 2006, 03:12:57 IP
Read this link to edit the user agent in Firefox
http://johnbokma.com/mexit/2004/04/24/changinguseragent.html

Now that works almost to good.... LOL!!!
Otsikko: Re: Admin.php Easter Egg! (***Spoiler***)
Kirjoitti: gamesmad - elokuu 29, 2006, 03:54:58 AP
LOL, I wont spoil it for those who want to do it themselves, but changing your useragent to "hacker" is quality :P

Will
Otsikko: Re: Admin.php Easter Egg! (***Spoiler***)
Kirjoitti: 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 ??
Otsikko: Re: Admin.php Easter Egg! (***Spoiler***)
Kirjoitti: winrules - elokuu 29, 2006, 06:38:54 IP
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)
Otsikko: Re: Admin.php Easter Egg! (***Spoiler***)
Kirjoitti: Gargoyle - elokuu 29, 2006, 06:41:41 IP
Oh I see now.... That is funny.. ;D
Otsikko: Re: Admin.php Easter Egg! (***Spoiler***)
Kirjoitti: codenaught - elokuu 29, 2006, 07:36:15 IP
Yeah I was thinking it wasn't working until I made a post.

Pretty cool one. :)
Otsikko: Re: Admin.php Easter Egg! (***Spoiler***)
Kirjoitti: winrules - elokuu 29, 2006, 08:12:59 IP
It's in the checkSession function so it only works when you use a feature that uh...check your session :)
Otsikko: Re: Admin.php Easter Egg! (***Spoiler***)
Kirjoitti: Harzem - elokuu 30, 2006, 04:00:07 AP
I had discovered that hacker egg a month ago, but had no idea about how to use a "hacker" browser!