PHP classic interview questions, there are answers
1. There are several ways to merge two arrays. Try to compare their similarities and differencesMethod:1,array_merge()2,'+'3,array_merge_recursiveSimilarities and differences:array_merge simple merge arrayarray_merge_recursive merges two arrays. If there are exactly the same data in the array, they are merged recursivelyarray_combine and '+': m ...
Posted by tomo11 on Wed, 09 Feb 2022 10:10:16 +0100
Making graphic verification code based on GD Library in PHP
I'm a sophomore student. The purpose of writing this article is to make a certain record of my knowledge and technology, and I'm willing to share it with you. Because of my shallow qualifications and limited ability, there are inevitably some mistakes and omissions in this article. Please also read this article for forgiveness and correction. I ...
Posted by ishboo on Wed, 09 Feb 2022 05:25:55 +0100
How does PHP communicate with the Go language?
In such a scenario, the php project needs to use a third-party function, and there happens to be a class library written in Golang. So the question comes, how to realize the communication between different languages? Let's have a look.
Conventional scheme
1. Write an http/TCP service with Golang, and php communicates with Golang through ht ...
Posted by method_man on Wed, 09 Feb 2022 04:19:29 +0100
Jump the pit successfully. Touch your hand and take you to connect to Oracle database using PHP
It seems strange. Why are PHP and oracle? Generally, they are not PHP and Mysql. They are the golden partners 🤣, Everything comes from free. Oracle database is collected for free. As the saying goes, it's useless 🤩, Since there is this resource, it is like how to use it, and then start the whole process, because the articles on the netw ...
Posted by rochakchauhan on Wed, 09 Feb 2022 01:51:37 +0100
Golang implements the delay queue of RabbitMQ
Before reading this article, you should have understood some concepts of RabbitMQ, such as queues, switches and so on.Introduction to delay queueMessages in a queue are consumed by consumers after being delayed for a period of time. Such a queue can be called delay queue.The application scenario of delay queue is very wide, such as: if there is ...
Posted by SargeZT on Tue, 08 Feb 2022 18:08:38 +0100
ctfshow php feature web89-web115 web123-150wp
php features
Reference blogs are still Nanshen blog
web89
include("flag.php");
highlight_file(__FILE__);
if(isset($_GET['num'])){
$num = $_GET['num'];
if(preg_match("/[0-9]/", $num)){
die("no no no!");
}
if(intval($num)){
echo $flag;
}
}
Here is an intval function: get the integer value of the variab ...
Posted by Garcia on Thu, 03 Feb 2022 16:02:35 +0100
WEB vulnerability - full solution of PHP&JAVA deserialization
PHP Deserialization
Principle: the serialization string entered by the user is not detected, so that the attacker can control the deserialization process, resulting in code failure
Execution, SQL Injection, directory traversal and other uncontrollable consequences. Some magic methods are automatically triggered during deserialization. When ...
Posted by tbobker on Thu, 03 Feb 2022 07:20:57 +0100
ctfshow code audit web301-web310 wp
There may be a lot of nonsense. It mainly records the process of finding loopholes from so many files
Reference blog
https://blog.csdn.net/rfrder/article/details/113924013 https://blog.csdn.net/miuzzx/article/details/111352849 https://rainy-autumn.top/archives/913
web301
Audit the loopholes written by the group leader three years ago
se ...
Posted by greekhand on Thu, 03 Feb 2022 07:00:52 +0100
The ctfshow command executes web29-web77 web118-122 web124 wp
Nanshen blog
Command execution
web29
preg_match : Match regular expression
After pattern separator"i"Tag this is a case insensitive search
In mode\b Mark a word boundary, so only independent words will be matched, such as:
if (preg_match("/\bweb\b/i", "PHP is the web scripting language of choice.")) : True
if (preg_matc ...
Posted by rodin on Wed, 02 Feb 2022 22:16:41 +0100
[attack and defense world CTF | WP] ics-07
subject
thinking
View interface
Open the title and we can see a website that can be operated only through the project management interface. The project management interface is as follows
We see a source code link. The source code of the link is as follows
<?php
session_start();
if (!isset($_GET[page])) {
show_sour ...
Posted by pauleth on Tue, 01 Feb 2022 17:34:58 +0100