-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathchecks.php
More file actions
25 lines (22 loc) · 722 Bytes
/
Copy pathchecks.php
File metadata and controls
25 lines (22 loc) · 722 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
<?php
// check injection 0x01
$tableName = "injection0x01";
$checkTable = "SHOW TABLES LIKE '$tableName'";
$result = $conn->query($checkTable);
if ($result->num_rows == 0) {
$errorMessage = "Error: Could not find injection0x01 table.";
}
// check injection 0x02
$tableName = "injection0x02";
$checkTable = "SHOW TABLES LIKE '$tableName'";
$result = $conn->query($checkTable);
if ($result->num_rows == 0) {
$errorMessage = "Error: Could not find injection0x02 table.";
}
// check injection 0x03
#$tableName = "injection0x03";
#$checkTable = "SHOW TABLES LIKE '$tableName'";
#$result = $conn->query($checkTable);
#if ($result->num_rows == 0) {
# $errorMessage = "Error: Could not find injection0x03 table.";
#}