Skip to content

Commit 23ad3ae

Browse files
committed
Create an example
1 parent b75cd6f commit 23ad3ae

File tree

2 files changed

+23
-0
lines changed

2 files changed

+23
-0
lines changed

example/index.php

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<?php
2+
3+
declare(strict_types=1);
4+
5+
require_once $_GET['file'];
6+
7+
shell_exec('ping ' . $_GET['host']);
8+
9+
echo file_get_contents($_GET['file']);
10+
11+
$url = "http://example.com";
12+
13+
$hash = sha1($user->password);

example/phpcs.xml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
<?xml version="1.0" encoding="utf-8" ?>
2+
<ruleset xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3+
xsi:noNamespaceSchemaLocation="../vendor/squizlabs/php_codesniffer/phpcs.xsd">
4+
<arg name="colors"/>
5+
<arg name="extensions" value="php"/>
6+
7+
<file>.</file>
8+
9+
<rule ref="Security"/>
10+
</ruleset>

0 commit comments

Comments
 (0)