Welcome, Guest.

Author Topic: PHP SQL Injection Explained  (Read 117 times)

Offline ERP_Advocate

  • Level 0 - Leacher Skid
  • Posts: 8
  • MAL:
    • View Profile
  • United States
PHP SQL Injection Explained
« on: July 08, 2018, 07:10:43 pm »
To get started, SQL is essentially using website Queries to run commands within a website, and requires the website to be run by someone incompetent. You'll need two things:
1: An incompetent website with PHP vulnerability
2: Some basic knowledge of coding, any language is fine (except batch, because seriously?)

Start by writing the PHP to check if email exists, and if it does exist write it to a variable. Use an if check in order to determine whether the user actually exists or not. This step is where most websites begin to become suspicious, too many submissions from the same IP can get you locked out, though there are ways around it.

Then you can write the valid emails to a list, preferably compatible with something like Medusa or John the Ripper. Unless you enjoy manually checking emails for days on end :)

In order to simply cause damage, use '; DROP TABLE (Name of table to remove); --
What this does is essentially runs the initial check, then once it completes the check it deletes the table listed.

Kepp in mind these are extremely outdated, and anyone with a shred of PHP knowledge would be able to prevent this from happening so don't expect much. But it's still a fun way to mess with a friends forum or such.
MAL: https://myanimelist.net/profile/ERP_Advocate
Steam: xcrysdale

Filthy Weeb UwU

Offline Genm999

  • Level 0 - Leacher Skid
  • Posts: 6
    • View Profile
  • United States
Re: PHP SQL Injection Explained
« Reply #1 on: July 27, 2018, 05:10:28 pm »

Offline Genm999

  • Level 0 - Leacher Skid
  • Posts: 6
    • View Profile
  • United States
Re: PHP SQL Injection Explained
« Reply #2 on: July 27, 2018, 05:13:25 pm »

Offline Genm999

  • Level 0 - Leacher Skid
  • Posts: 6
    • View Profile
  • United States
Re: PHP SQL Injection Explained
« Reply #3 on: July 27, 2018, 05:37:27 pm »

Offline tyraid

  • Level 1 - Noob
  • *
  • Posts: 10
    • View Profile
  • United States
Re: PHP SQL Injection Explained
« Reply #4 on: July 30, 2018, 03:41:10 am »
Thankfully there are a few devs out there that aren't the brightest, so a few sites are easily exploitable. Interesting post!




Total Members


  • Youtube Youtube
  • Facebook Facebook
  • Twitter Twitter
  • Steam Steam

  • Powered by SMF | SMF © 2018, Simple Machines

    2018 BigPackets. All rights reserved. All other trademarks, logos and copyrights are the property of their respective owners. This site is not associated with any company in any way.