-
Notifications
You must be signed in to change notification settings - Fork 424
Test script
ron190 edited this page Jan 28, 2025
·
1 revision
Spring test scripts are running during the continuous integration on GitHub Actions. It starts the server and create API endpoints connected to the databases available.
Use the PHP test scripts to learn injection on your local PHP environment.
Install a development environment like EasyPHP or deploy a LAMP stack on 🐳Docker
, then download the PHP scripts into folder www/
.
Here is script sample for Union union-based injection on a local environment:
<?php
# http://127.0.0.1/mysql/strategy/get-union.php?id=0
$link = mysqli_connect('localhost', 'root', '', 'my_database');
$result = $link->query("SELECT col1, col2 FROM my_table where id=$_GET[id]");
while ($row = $result->fetch_array($result, MYSQLI_NUM))
echo join(',', $row);
Previous topic: Programming jSQL, Next topic: Roadmap