Skip to content

To be used in a lesson teaching about security to simulate an SQL injection

Notifications You must be signed in to change notification settings

cyberpunkych/SQL-Injection-Simulator

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

This is intended as an example to be used in a lesson to simply (and safely) demonstrate a common way of 'hacking' into a website - SQL Injection ( http://en.wikipedia.org/wiki/SQL_injection )

As you attempt to log in to the site, it displays 'behind the scenes' information about the SQL query being run and the results generated.

You need to host the file 'sqlinjectsim.php' on a server (with PHP enabled).

The login details for the 3 fake accounts are stored inside a file.

You can simulate an SQL injection with the username: ' OR '1'='1
(make sure all 4 ' symbols are included).

It should also work fine with anything else substituted for the number 1 - as long as they both match.

If you think you can improve on this, please feel free to do so.

If you want to get in contact with me, please visit http://www.davodev.co.uk/contact

About

To be used in a lesson teaching about security to simulate an SQL injection

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published