Skip to content

Commit

Permalink
Adding error_reporting till lesson 20
Browse files Browse the repository at this point in the history
  • Loading branch information
Audi-1 committed Oct 31, 2014
1 parent 84a2d5d commit e96f217
Show file tree
Hide file tree
Showing 23 changed files with 87 additions and 21 deletions.
4 changes: 2 additions & 2 deletions Less-1/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<?php
//including the Mysql connect parameters.
include("../sql-connections/sql-connect.php");

error_reporting(0);
// take the variables
if(isset($_GET['id']))
{
Expand All @@ -32,7 +32,7 @@

if($row)
{
echo '<font color= "#0000ff">';
echo "<font size='5' color= '#99FF00'>";
echo 'Your Login name:'. $row['username'];
echo "<br>";
echo 'Your Password:' .$row['password'];
Expand Down
1 change: 1 addition & 0 deletions Less-10/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
<?php
//including the Mysql connect parameters.
include("../sql-connections/sql-connect.php");
error_reporting(0);

// take the variables
if(isset($_GET['id']))
Expand Down
2 changes: 1 addition & 1 deletion Less-11/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
<?php
//including the Mysql connect parameters.
include("../sql-connections/sql-connect.php");

error_reporting(0);

// take the variables
if(isset($_POST['uname']) && isset($_POST['passwd']))
Expand Down
2 changes: 1 addition & 1 deletion Less-12/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
<?php
//including the Mysql connect parameters.
include("../sql-connections/sql-connect.php");

error_reporting(0);

// take the variables
if(isset($_POST['uname']) && isset($_POST['passwd']))
Expand Down
2 changes: 1 addition & 1 deletion Less-13/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
<?php
//including the Mysql connect parameters.
include("../sql-connections/sql-connect.php");

error_reporting(0);

// take the variables
if(isset($_POST['uname']) && isset($_POST['passwd']))
Expand Down
2 changes: 1 addition & 1 deletion Less-14/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
<?php
//including the Mysql connect parameters.
include("../sql-connections/sql-connect.php");

error_reporting(0);

// take the variables
if(isset($_POST['uname']) && isset($_POST['passwd']))
Expand Down
2 changes: 1 addition & 1 deletion Less-15/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
<?php
//including the Mysql connect parameters.
include("../sql-connections/sql-connect.php");

error_reporting(0);

// take the variables
if(isset($_POST['uname']) && isset($_POST['passwd']))
Expand Down
2 changes: 1 addition & 1 deletion Less-16/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
<?php
//including the Mysql connect parameters.
include("../sql-connections/sql-connect.php");

error_reporting(0);

// take the variables
if(isset($_POST['uname']) && isset($_POST['passwd']))
Expand Down
2 changes: 1 addition & 1 deletion Less-17/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
<?php
//including the Mysql connect parameters.
include("../sql-connections/sql-connect.php");

error_reporting(0);

function check_input($value)
{
Expand Down
2 changes: 1 addition & 1 deletion Less-18/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
<?php
//including the Mysql connect parameters.
include("../sql-connections/sql-connect.php");

error_reporting(0);

function check_input($value)
{
Expand Down
2 changes: 1 addition & 1 deletion Less-19/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
<?php
//including the Mysql connect parameters.
include("../sql-connections/sql-connect.php");

error_reporting(0);

function check_input($value)
{
Expand Down
4 changes: 2 additions & 2 deletions Less-2/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
<?php
//including the Mysql connect parameters.
include("../sql-connections/sql-connect.php");

error_reporting(0);
// take the variables
if(isset($_GET['id']))
{
Expand All @@ -35,7 +35,7 @@

if($row)
{
echo '<font color= "#0000ff">';
echo "<font size='5' color= '#99FF00'>";
echo 'Your Login name:'. $row['username'];
echo "<br>";
echo 'Your Password:' .$row['password'];
Expand Down
1 change: 1 addition & 0 deletions Less-20/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
<?php
//including the Mysql connect parameters.
include("../sql-connections/sql-connect.php");
error_reporting(0);
if(!isset($_COOKIE['uname']))
{
//including the Mysql connect parameters.
Expand Down
Binary file modified Less-27/result.txt
100755 → 100644
Binary file not shown.
52 changes: 52 additions & 0 deletions Less-28/result.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
ID:1
ID:1'
ID:1"
ID:1' AND 1=1 --
ID:1 AND 1=1 --
ID:1 AND 1=0 --
ID:1" AND 1=0 --
ID:1" AND 1=1 --
ID:1' AND 1=1 --
ID:1') AND 1=1 --
ID:1\
ID:1')
ID:1') --
ID:1 --
ID:1 AND 1 --
ID:1 AND 0 --
ID:1') AND 0 --
ID:1') AND 1 --
ID:1') AND 1 --
ID:1')
AND
1
--
ID:1')
AND
1
#
ID:1') #
ID:1') #
ID:1') #
ID:99')
uniunionon
selSelectect
1,@@port,3
OR ('1
ID:99')
UnIoN
SeLect
1,@@port,3
OR ('1
ID:99')
UnIoN
all
SeLect
1,@@port,3
OR ('1
ID:99')
UnIoN
all
SeLect
1,user(),3
OR ('1
4 changes: 2 additions & 2 deletions Less-3/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<?php
//including the Mysql connect parameters.
include("../sql-connections/sql-connect.php");

error_reporting(0);
// take the variables
if(isset($_GET['id']))
{
Expand All @@ -34,7 +34,7 @@

if($row)
{
echo '<font color= "#0000ff">';
echo "<font size='5' color= '#99FF00'>";
echo 'Your Login name:'. $row['username'];
echo "<br>";
echo 'Your Password:' .$row['password'];
Expand Down
4 changes: 2 additions & 2 deletions Less-4/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<?php
//including the Mysql connect parameters.
include("../sql-connections/sql-connect.php");

error_reporting(0);
// take the variables
if(isset($_GET['id']))
{
Expand All @@ -32,7 +32,7 @@

if($row)
{
echo '<font color= "#0000ff">';
echo "<font size='5' color= '#99FF00'>";
echo 'Your Login name:'. $row['username'];
echo "<br>";
echo 'Your Password:' .$row['password'];
Expand Down
2 changes: 1 addition & 1 deletion Less-5/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<?php
//including the Mysql connect parameters.
include("../sql-connections/sql-connect.php");

error_reporting(0);
// take the variables
if(isset($_GET['id']))
{
Expand Down
11 changes: 11 additions & 0 deletions Less-54/result.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,14 @@ ID:1
ID:1'
ID:-1' union select 1,2,3 --
ID:
ID:1
ID:2
ID:3
ID:4
ID:5
ID:6
ID:7
ID:8
ID:9
ID:10
ID:11
2 changes: 1 addition & 1 deletion Less-6/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<?php
//including the Mysql connect parameters.
include("../sql-connections/sql-connect.php");

error_reporting(0);
// take the variables
if(isset($_GET['id']))
{
Expand Down
2 changes: 1 addition & 1 deletion Less-7/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<?php
//including the Mysql connect parameters.
include("../sql-connections/sql-connect.php");

error_reporting(0);
// take the variables
if(isset($_GET['id']))
{
Expand Down
2 changes: 1 addition & 1 deletion Less-8/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<?php
//including the Mysql connect parameters.
include("../sql-connections/sql-connect.php");

error_reporting(0);
// take the variables
if(isset($_GET['id']))
{
Expand Down
1 change: 1 addition & 0 deletions Less-9/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
<?php
//including the Mysql connect parameters.
include("../sql-connections/sql-connect.php");
error_reporting(0);

// take the variables
if(isset($_GET['id']))
Expand Down

0 comments on commit e96f217

Please sign in to comment.