[red sun Day12 CTF] SQL injection caused by htmlentities

Exercise notes Recurrence Code: index.php <?php require 'config.php'; if(isset($_REQUEST['username'])){ if(preg_match("/(?:\w*)\W*?[a-z].*(R|ELECT|OIN|NTO|HERE|NION)/i", $_REQUEST['username'])){ die("Attack detected!!!"); } } if(isset($_REQUEST['password'])){ if(preg_match( ...

Posted on Sun, 19 Jan 2020 09:50:36 -0500 by Kingskin

Operator '= =' and object's equals() method

Operator '= =' and object's equals() method brief introduction The operator "= =" compares whether the two operands are equal. The two operands can be either basic type or reference type. For example > int a1=1,a2=3; > boolean b1=a1==a2;//The operand of "= =" is of basic ...

Posted on Sun, 19 Jan 2020 08:57:01 -0500 by megavolt

raft Theory and Practice [4]-lab2b

Dead work1. Reading raft paper2. Reading raft Theory and Practice [1] - Theory Paper3. Reading raft Theory and Practice [2]-lab2a4. Reading raft theory and practice [3]-lab2a explanation5. Check out this article I wrote: Simulate RPC remote procedure calls Execution Log We need to execute the commands in the log, so in the make function, we ha ...

Posted on Sun, 19 Jan 2020 11:13:21 -0500 by sales@gmba.dk

Talk about StringBuffer and StringBuilder

As we know, String is a read-only String. Once the referenced String is defined, it cannot be modified. Splicing or intercepting a String will create a new String object. If you need to make a lot of changes to the String, the performance of using String is extremely low. As an example, String is splice ...

Posted on Sun, 19 Jan 2020 09:42:23 -0500 by gth759k

vue notes-provide & inject (2)

1. Usage: provide: Used in ancestor components; a value is an object or a function that returns an object; inject: Used in descendant components; value is an array of keys or an object in the provider object whose key value is the local binding name and value is the key or an object in the provider object: {from:'key in the p ...

Posted on Sun, 19 Jan 2020 11:26:32 -0500 by omprakash