Home > Backend Development > PHP Tutorial > Introduction to PHP easter egg information and methods to prevent leakage (hidden functions), php easter egg_PHP tutorial

Introduction to PHP easter egg information and methods to prevent leakage (hidden functions), php easter egg_PHP tutorial

WBOY
Release: 2016-07-13 10:21:27
Original
1254 people have browsed it

Introduction to PHP easter egg information and methods to prevent leakage (hidden functions), php easter egg

Easter Eggs (Easter Eggs) laymen may not understand that this is a sacred tree thing. The Internet explanation of Easter Eggs is: used for hidden functions or information in computers, electronic games, computer games, DVDs or other interactive multimedia. PHP contains a security vulnerability that could lead to unauthorized disclosure of information. If you are running PHP, you may be able to discover the PHP version and other sensitive information. I feel it is necessary to address this easter egg issue to ensure the security of your site.

How PHP Easter Eggs work

As long as you are running PHP on a server and access any web page, you can add the following string after the domain name to view the information:

Copy code The code is as follows:

?=PHPB8B5F2A0-3C92-11d3-A3A9-4C7B08C10000 (PHP information list)
?=PHPE9568F34-D428-11d2-A769-00AA001ACF42 (PHP’s LOGO)
?=PHPE9568F35-D428-11d2-A769-00AA001ACF42 (Zend LOGO)
?=PHPE9568F36-D428-11d2-A769-00AA001ACF42 (PHP LOGO blue elephant)

Of course, if the vulnerability exists, you can only view the information through the above method. Now most websites have blocked it. But if there is an indication that expose_php is enabled, PHP will generate a page and send out the PHP version information, so that some "bad guys" will know your version number and use known version vulnerabilities to carry out attacks.

How to stop easter eggs

Generally, if your server supports editing the php.ini file, we can set expose_php in php.ini to Off to block it. If you cannot operate the php.ini file, you can also block it by setting .htaccess.

Copy code The code is as follows:

RewriteCond %{QUERY_STRING} =PHP[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4} -[0-9a-f]{12} [NC]
RewriteRule .* - [F]

Through the above two methods, we can block some PHP information. Some servers have expose_php turned on by default, so friends who read my article are best to turn it off.

Really appreciate it Jeff Starr’s post expose_php, Easter Eggs, and .htaccess.

Example:

Copy code The code is as follows:

http://wowo.haotui.com/space.php?=PHPB8B5F2A0-3C92-11d3-A3A9-4C7B08C10000
http://en.wikipedia.org/w/index.php?=PHPE9568F34-D428-11d2-A769-00AA001ACF42
http://www.zend.com/en/index.php?=PHPE9568F35-D428-11d2-A769-00AA001ACF42

How to unlock hidden features of Twitter for Mac

Currently, the software in the Mac App Store is not very rich. Of course, if it is rich, we may not be able to afford it. Among the existing free software, Lucifr is most pleased with the new Twitter for Mac. After Tweetie was acquired and became the official Twitter client, the version has almost remained unchanged, and now it is finally available with the opening of the Mac App Store A new version has been released. The new version of Twitter for Mac has a lot of changes in the UI, which can be said to be more beautiful. At the same time, Lucifr's easy-to-use shortcut keys have also been enhanced. Although there are still some unsatisfactory aspects, I believe they will be improved in subsequent updates (right? Yes?! It will definitely happen!). At the same time as Twitter for Mac was released, MacHeist announced the "Easter eggs" hidden in the new version of Twitter for Mac. Customers who have purchased MacHeist's nanoBundle 2 can hold down Ctrl+Option+Command and click the Help menu, and it will be displayed. There is a hidden menu item "MacHeist Secret Stuff". Clicking it will pop up a dialog box, in which you can unlock some hidden functions of Twitter for Mac by entering the email and license key for purchasing nanoBundle 2. But what should we do if we don’t buy nanoBundle 2? Is it just possible to be greedy? The answer is of course no. There are currently two methods to activate these hidden features. Lucifr will introduce one by one: ## 1. Terminal modification The first method is to use Terminal, open "Applications/Utilities/Terminal", enter the corresponding command and press Enter to unlock the corresponding Functional (you may need to restart Twitter for Mac for the changes to take effect!): defaults write com.twitter.twitter-mac ScrollingMakesKeyAndOrdersFront -bool true defaults write com.twitter.twitter-mac UserTimelineDerepeater -bool true defaults write com.twitter. twitter-mac TypeAnywhereToTweet -bool true defaults write com.twitter.twitter-mac HideInBackground -bool true defaults write com.twitter.twitter-mac ESCClosesComposeWindow -bool true defaults write com.twitter.twitter-mac NormalComposeWindowLevel -bool false Top to bottom Corresponding in order: Scroll over window to bring to front. Rolling the wheel on the window will bring the window to the front (if the current position is not at the front). User timeline avatar derepeater. In a single-user interface, only one user's avatar will be displayed. Type anywhere to tweet this It's a bit like Gravity, that is, just typing can automatically start a new push. Hide app in background allows the program to be hidden in the background. It seems that when twitter for mac is not in focus, it defaults to hiding. ESC closes compose window. Use the ESC key to close the new push. Windows (this is quite useful) Compose windows flo...The rest of the full text>>

Detailed information about Detective Conan

Detective Conan (almost all the information!)
Detective Conan author introduction

Author name: Gosho Aoyama

Birthplace: Tottori County

Birthday: June 21, 1963

Blood type: B blood type (Note: the birthday and blood type are the same as Kuroba Kaito)

Overview: ●Graduation Majored in Oil Painting at the Faculty of Arts, Nihon University.

●In 1986, he was selected for the 19th Shogakukan Newcomer Comic Award with "Promise" and made his official debut with this work.

●In 1992, he won the 38th Shogakukan Manga Award in 1993 - Children's Comic Category Award for "City Storm" (26 volumes in total)

●Currently published in Shonen SUNDAY Weekly The serialization of "Detective Conan" was well received.

Scientific name: He is known as the "Conscience Cartoonist"

Dislike: Can't be mixed with raisins, he hates eating raisins.

Characteristics: The self-portrait is like a pineapple head with various ways to die. In every Conan book, there is a way to die! In addition, he introduces a detective in each episode on the last page of the comic.

Works: ● "Collection of Gosho Aoyama's Short Stories" (1 volume, including his debut novel "The Promise")

● "Baseball Rhapsody" (1 volume)

● "City Heroes" (26 volumes in total)

●"The Phantom Thief" (I have been busy drawing Conan recently and have no time to do anything else, so the Phantom Thief KID has stopped publishing, and only 3 volumes have been released to be continued) )

●"Detective Conan" (to be continued)

Introduction: The comics he draws should belong to the juvenile comics category. The content is warm and full of meaning, so it is widely welcomed by the public (in The ratings in Japan are quite high, and the TV content of Mitsuru Adachi's works has also been Conan.) Therefore, although there are not many works, they are all very popular. Perhaps because Mr. Qingshan studied Western painting, the people in his paintings are more beautiful and elegant, and often have a pair of big eyes that even "Little Swallow" can't match. (Taiwan comics critics once jokingly called them "fist-like" eyes. Big eyes") and a pointed nose that all nine-tailed foxes would envy. In terms of character design, whether in terms of appearance, clothing, or language, they are all relatively Western. This can also be seen in his works. The plot arrangement of "Conan" is not limited to the traditional Japanese reasoning model. Those exciting street chase scenes and weird "inventions" are very much like the "Japanese version of 007"!

Little secret: ●The Qingshan family operates a gas station.
●There are four brothers in the family. Mr. Qingshan is the second oldest.
●When they were young, four brothers often formed a boy detective team and went on adventures everywhere... (The origin of Conan's boy detective team!?).
●When I was in elementary school, I became obsessed with Sherlock Holmes. The first work I read was "A Study in Scarlet", and my favorite one so far is "Dancing Figures".
●Because of the influence of Sherlock Holmes, I particularly like physical and chemical subjects.
●In my primary school graduation essay, my hope for my future was to be a writer of detective comics (it actually came true).
● I have been a member of the kendo club from the fourth grade of elementary school to the second grade of high school. (??~Can’t tell-_-)
● Following on from above, Teacher Aoyama especially likes swordsmen for this reason. Especially "Take Sanjuro" among the works directed by Akira Kurosawa.
●The first time I came into contact with comics was when I joined the comics research club when I was in college.
●When I was a student, I was also very obsessed with wrestling. My favorite wrestler is Stan. Hansen.
●The first time I took on the position of assistant was as the assistant to Yutaka Abe, a senior from the university’s manga research club (don’t doubt it, he was the murderer of the Akagui Village incident).
●The first time I submitted a comic work, I was also encouraged by Yutaka Abe-senpai to submit it to Shogakukan.
●Submitted twice. Among the submissions for the third work "Promise", I was favored by Shogakukan and was officially selected.
●The first work on TV is "Legend of Swordsman"! ? Wrong answer, it's the background of the TV animation "????". (Aoyama-sensei once worked as a background artist for TV animations)
●My biggest hobby is watching professional baseball game broadcasts. (And he is a Giants fan)
● I also like football very much. My favorite player is Baggio of Brazil.
●My favorite food is curry rice.
●My favorite drink is Suntory’s oolong tea, which can often be found in the refrigerator at home. It was once hailed as the greatest invention in human history by Teacher Aoyama.
●The most annoying foods are raisins and natto.
●My favorite comic works...the rest of the text>>

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/859709.htmlTechArticleIntroduction to PHP Easter Egg information and methods to prevent leakage (hidden functions), php Easter Eggs (Easter Eggs) for laymen People probably don’t know that this is a sacred tree thing. The Internet explanation of the easter egg is: used for electricity...
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template