Based on laravel architecture

Architecture diagram1. Request log the request message log. The reason for adding the request message here is that in many cases, the BUG is difficult to reproduce at low frequency. The original request message can well troubleshoot the problem. This layer can also be placed in Middleware to handle the reference example:<?php namespace App\ ...

Posted on Mon, 01 Nov 2021 22:38:50 -0400 by adunphy

Generating PHP Flame Diagram Based on Xdebug

In 2012, you just started learning PHP. At that time, the application of PHP was very simple, there were not too many complex design modes, such as dependent injection, factory mode, which were few. Reflection API was just coming out at that time. A PHP application was some script files that packed the front-end code. Just because PHP was simpl ...

Posted on Mon, 01 Nov 2021 13:24:45 -0400 by andr923

The 16th level of upload Labs

Pass16 When you open the 16th level, there is still no difference in tasks. Then look at the tips.   Rendered the picture? What is rendering? What can it do for upload vulnerability defense? With a bunch of question marks, I silently opened the source code. $is_upload = false;$msg = null;if (isset($_POST['submit'])){ // Get the basic ...

Posted on Thu, 28 Oct 2021 09:56:04 -0400 by gabe33

One file upload, two sites!

catalogue Site 1: file upload Site 2: file upload If the article is helpful to you, you are welcome to pay attention, like and collect. One click three links support the following Oh! If you want to communicate and learn together, you can add zkaq222 (note CSDN, but you can't pass it) to learn and make progress together Site 1: file ...

Posted on Mon, 25 Oct 2021 22:50:08 -0400 by tnan

Thinkphp model operation

13, Other query methods (focus: where method) 1. where method (query syntax) See the manual -- Database -- Query constructor -- query syntax where('Field name','expression','query criteria'); whereOr('Field name','expression','query criteria'); expressionmeaningEQ,=Equal to (=)NEQ,<>Not equal to (< >)GT,>Greater than (>) ...

Posted on Fri, 15 Oct 2021 22:25:05 -0400 by haydndup

ThinkPHP5 RCE vulnerability code audit

preface thinkphp Download Vulnerability impact version: 5.0.0<=ThinkPHP5<=5.0.23 ,5.1.0<=ThinkPHP<=5.1.30 RCE caused by not enabling forced routing build In depth analysis of ThinkPHP 5.1 framework combined with RCE vulnerabilities thinkphp-5.1.29 tp version: 5.1.29 php version: 7.2.10 (must be above 7) Test: http://www.yn8 ...

Posted on Tue, 12 Oct 2021 14:43:31 -0400 by mikeyinsane

How nginx adds substitutions_filter module, subs_ The filter instruction is replaced multiple times

Author: Uncle Sunan [Beijing, non famous Internet practitioners]Source: How nginx adds substitutions_filter module, subs_ The filter instruction is replaced multiple times The article continues to talk about the anti generation function of nginx. The majority of readers already know that nginx can use sub_ The filter instruction replaces the te ...

Posted on Mon, 11 Oct 2021 22:38:16 -0400 by cHinshaw

Attack and defense world -- Web advanced -- Web_ php_ Deserialize -- deserialize -- regular expression -- wakeup -- bypass -- base64 encryption

catalogue Train of thought analysis payload Bypass preg_match Bypass__ wakeup   Get the flag Pay attention to the details     A web advanced problem from the attack and defense world is called Web_php_unserialize The title gives a php code, which should be part of the background source code: <?php class Demo { ...

Posted on Sun, 10 Oct 2021 05:14:56 -0400 by shah

Ten PHP advanced engineering classic interview questions

1. How to implement PHP to issue cookies to clients without using its own cookie function. For distributed systems, how to save the session value. This question is a little convoluted. The basic knowledge of cookie and SESSION was also tested. The server notifies the client to save the cookie through the set cookie command. Just use the heade ...

Posted on Wed, 06 Oct 2021 22:04:19 -0400 by serverman

Build Discuz forum based on LAMP Architecture -- Linux, Apache, Mysql, PHP, Discuz

1. Introduction to lamp architecture 1.1 general LAMP architecture is one of the mature enterprise website application modes at present. It refers to a complete set of systems and related software working together, which can provide dynamic Web site services and its application development environmentLAMP is an abbreviation, including L ...

Posted on Tue, 05 Oct 2021 14:28:14 -0400 by psychotomus