Thursday, October 15, 2020

PHP - Some dangers of using eval()

 I would like to say something quick that is about the eval() function in PHP. If you don't know what PHP is, PHP is a server-side programming language that most web applications use, such as facebook. If you don't know what eval() is and know what PHP is, the eval() function is kind of like embedding a PHP script.

Now, if you are a PHP programmer and plan to use eval() for anything, a warning for you is to not use it to embed $_GET or $_POST or anything that deals with the url string.

How I cam across this is by thinking about it when working on using eval() to rewrite a custom variable using a variable. I used the $_GET inside the eval() and when thinking, I thought that it could easily be injected in so I decided to add in echo 'Hello World' in the query of the url and when the page loaded, it printed. And I was just using $_GET to assign to a variable, not to print it raw.

This quick blog post is to share my experiment that eval() is not safe toward using things such as $_GET and $_POST. Also, even though you cannot see $_POST, doesn't mean it can use that to inject code into your webpage.

Thursday, October 1, 2020

Evidence that you might be related to royality

 Everyone here should know about kings and queens, correct? If you watched the infographic channel on youtube about kings and queens and incest included in them then you should get a idea of what everything might mean.

It is possible that about above half of the population is related to royalty in some way or another through common ancestry.

As I am probably guessing, it is possible to see how close you were towards king henry VIII. Back then, kings and queens wanted their blood of generations to be as pure as possible, which means that they commit such acts as incest. Meaning that they procreate with their siblings, they may also just procreate with their uncles, aunts, cousins, etc. A lot of people may think this may be harmless and has no consequences to it, well you are wrong. Procreating with with someone closely related to you is bad, as the baby will most indeed have a lot of health problems and may not live very long. An example of this is king Tut, he died at the mere age of 19. And if you have done research, you can see that his parents were actually siblings. But that is not the only example, you can see more examples from videos of the infographic channel on youtube as they did a whole video on the topic.

So you are probably wondering why I am telling you all of this and probably just figure that this is clickbait. Well, my friend, this is just showing that most health problems may just be a result of incest. Depending on you, if you have recent family history that has health problems at a young age, you may just be related to royalty of some sort. Either that or some of your ancestors were doing some illegal stuff. But yeah, you might just be related to royalty quite close, depending on your circumstance.