How can I prevent SQL injection in PHP?

Gunnard/ November 4, 2020/ Development, hacking, PHP, Security/ 0 comments

Preventing SQL injections is a popular topic. #1 on stackoverflow (for php) and also listed on the OWASP top 10. So what is an SQL Injection? The first part “SQL” refers to Sequential Query Language which is used in querying databases like Mysql, Postgres SQL or mariaDB. The term is meant to be used as a generalization for any database

Read More

Twitter Alternatives

Gunnard/ October 30, 2020/ Fun, hacking, Security/ 0 comments

Believe it or not, Twitter is not the only way to share your thoughts on the internet. Well, in light of recent behavior we’ve come to understand that Twitter is the adult and we all are the teenagers living under their roof. But just like a teenager, there are ways to get away from these rules. Enter Mastadon. No, not

Read More

PHP filter functions

Gunnard/ October 26, 2020/ Development, PHP/ 0 comments

Filtering in PHP is super easy with the built in filter_var() function. Filtering is essential when taking in form input or applying logic to any set of data. This is especially crucial when sanitizing user input in order to prevent XSS and Sql injection attacks. filter_var ( mixed$variable [, int $filter = FILTER_DEFAULT [, mixed$options ]] ) : mixed Grab the code below to see how these functions work and

Read More

What is the difference between GET and POST? {Developer Interview Questions}

Gunnard/ October 12, 2020/ Development, Full Stack, Learning/ 0 comments

Interview questions for developers are by nature “trick questions”. I say this because I have seen it too many times. On one hand, the question will be a complex narrative with multiple variables and things to consider, yet the answer is clear and straight forward. And on the other hand there is a very basic questions like this one “What

Read More

Free PHP Malware and Security scanners [Part 1]

Gunnard/ October 8, 2020/ Development, Devops, PHP, Security/ 0 comments

Exakat Exakat is a tool for analyzing, reporting and assessing PHP code source efficiently and systematically. Exakat processes PHP 5.2 to 7.4 and 8.0 code, as well as reporting on security, performance, code quality, migration. –Exakat docs Static analysis of code is a great tool to use whether for unit testing or in this case security vulnerabilities and malware infestations.

Read More

HTTP/3 and IETF QUIC coming to a chrome near you

Gunnard/ October 8, 2020/ Development, Devops/ 0 comments

But first…. Are we really at http/3? and what the heck is IETF QUIC? QUIC is a new networking transport protocol that combines the features of TCP, TLS, and more. HTTP/3 is the latest version of HTTP, the protocol that carries the vast majority of Web traffic. HTTP/3 only runs over QUIC. Why do we need this? Blame the xennials.

Read More

Practice typing by typing a book

Gunnard/ October 6, 2020/ Fun, Learning, Random/ 0 comments is a fantastic idea. This site will let you improve your typing skills by typing actual books. No more typing about foxes and jumping. Typelit will let you choose from 1984, Alice in Wonderland and even the King James Bible.

Android on Linux

Gunnard/ October 5, 2020/ Development, Docker, Linux, Random/ 0 comments

ANDROID IN A BOX is here to bring any Android OS to your Linux box. Android in a box (Anbox) is a brand new player to the scene making use of containers instead of emulators to bring Android to Linux. Here’s a quick video of it in action. To get started with Anbox your system needs to first use snaps.

Read More

Escaping strings in Bash using !:q

Gunnard/ October 2, 2020/ Linux/ 0 comments

This amazing Bash trick comes from Pascal Hirsch on Twitter. It goes like this: Enter a line of Bash starting with a # comment, then run !:q on the next line to see what that would be with proper Bash escaping applied. How does this work? James Coglan explains: The ! character begins a history expansion; !string produces the last command beginning with string, and :q is a modifier that quotes the result;

Read More

PHP 8.0 Release Candidate Available

Gunnard/ October 2, 2020/ PHP/ 0 comments

“The PHP team is pleased to announce the eighth testing release of PHP 8.0.0, Release Candidate 1.” This RC can be found on the official release site php-8.0.0rc1.tar.bz2 2020-09-29 22:46 13M   php-8.0.0rc1.tar.bz2.asc 2020-09-29 22:46 866   php-8.0.0rc1.tar.gz 2020-09-29 22:46 16M   php-8.0.0rc1.tar.gz.asc 2020-09-29 22:46 866   php-8.0.0rc1.tar.xz 2020-09-29 22:46 10M   php-8.0.0rc1.tar.xz.asc 2020-09-29 22:46 866