SQL Injections: The Full Course

Поделиться
HTML-код
  • Опубликовано: 9 июл 2024
  • Welcome to this course on SQL injection attacks! In this course, we explore one of the biggest risks facing web applications today.
    We start out by creating a safe and legal environment for us to perform attacks in. Then, we cover the core concepts of SQL and injections. After that, we learn SQL injection techniques with the help of cheat sheets and references. At that point, we start to gather information about our target in order to find weaknesses and potential vulnerabilities.
    Once we've gathered enough information, we go full-on offensive and perform SQL injections both by hand and with automated tools. These attacks will extract data such as tokens, emails, hidden products, and password hashes which we then proceed to crack.
    After successfully attacking and compromising our targets, we take a step back and discuss defensive controls at the network, application, and database layers. We also look at actual vulnerable code and show ways of fixing that vulnerable code to prevent injections.
    Please note: Performing these attacks on environments you do not have explicit permissions for is illegal and will get you in trouble. That is not the purpose of this course. The purpose is to teach you how to secure your own applications.
    Join Cybr's Discord: / discord
    Cybr Courses: cybr.com/courses/
    Pre-Requisites:
    To understand how SQL injections work and how to perform them as well as defend against them, you must have:
    - Experience working with web applications
    - Experience with SQL
    Suggestion: You may also wish to take our free Introduction to Application Security (AppSec) course (cybr.com/courses/introduction...) to familiarize yourself with the concepts of Application Security.
    Timestamps:
    About the course - 00:00 - 04:15
    Setting up a safe & legal environment - 4:16 - 14:20
    Getting started with OWASP ZAP - 14:21 - 18:41
    SQL Concepts - 18:42 - 25:16
    SQL Injections Explained - 25:17 - 35:27
    SQL Injections Cheatsheets - 35:28 - 45:08
    Information Gathering - 45:09 - 58:36
    SQL Injections Hands-On - 58:37 - 01:14:41
    SQL Injections with SQLMap - 01:14:42 - 01:23:29
    Defenses at the Network Layer - 01:23:30 - 01:25:58
    Defenses at the Application Layer - 01:25:59 - 01:37:49
    Defenses at the Database Layer - 01:37:50 - 01:41:40
    Ending Screen - 01:41:41 - 01:41:50

Комментарии • 147

  • @Cybrcom
    @Cybrcom  3 года назад +15

    Here's an update on how to install Docker on the new Kali version. It's actually much simpler now!
    cybr.com/app-data-security-archives/how-to-set-up-the-dvwa-on-kali-with-docker/
    TL;DR:
    sudo apt update
    sudo apt install -y docker.io
    sudo systemctl enable docker --now
    sudo usermod -aG docker $USER
    newgrp docker

  • @AbhishekkumarSir
    @AbhishekkumarSir 3 года назад +29

    I am really glad that there are people like you in this world. Thank you so much for your Video.

    • @Cybrcom
      @Cybrcom  3 года назад +2

      You are very welcome! Happy learning

  • @eyeinthesky1050
    @eyeinthesky1050 3 года назад +5

    Thanks dude, i learned a lot by watching your videos, it is still difficult with those codes and stuff but the way you explains makes it easier! Thanks again :)

    • @Cybrcom
      @Cybrcom  2 года назад +1

      How's your learning journey been so far?

    • @eyeinthesky1050
      @eyeinthesky1050 2 года назад +1

      @@Cybrcom hello sir!
      I have been working a lot lately and i have not been studying so much past few weeks but i gotta tell you i have learned so much in such short time while i was watching/studying the SQL Injection on your website and i really appreciate it, i am almost done with that course, thanks for your concern Christoph

    • @Cybrcom
      @Cybrcom  2 года назад +1

      @@eyeinthesky1050 awesome! Keep it up and good luck!

  • @islamkaram463
    @islamkaram463 Год назад +8

    The most powerful and professional course I've ever seen. Thanks a lot

    • @Cybrcom
      @Cybrcom  Год назад

      That's really nice. Thanks so much!

  • @vandamieespadero6633
    @vandamieespadero6633 3 года назад +7

    Your channel was arrived in my RUclips screen in time. I recommend this to my group so they can watch it too. Thank you very much. Wishing you all the best in life. Cheers!!!

    • @Cybrcom
      @Cybrcom  3 года назад +1

      Thank you for recommending! People like you are what helps us keep going!

  • @nagizah8
    @nagizah8 Год назад +2

    found your video while researching for materials for my undergrad paper about SQL Injections. You are a better teacher than my college one xD

    • @Cybrcom
      @Cybrcom  Год назад +1

      That's so sweet, tyvm! Glad you found the video!

  • @9jacafe118
    @9jacafe118 4 месяца назад +1

    Woow, that was educative and informative. You have done a great job.

  • @deadoralive8296
    @deadoralive8296 2 года назад +1

    Still watching your videos
    Thank you so much

  • @che3tah205
    @che3tah205 3 года назад +24

    feeling lucky to find you even before you hit your first 100 subscribers.
    Wishing you for 1M subscribers.

    • @Cybrcom
      @Cybrcom  3 года назад +2

      Thank you for the kind words!

  • @rockguru6656
    @rockguru6656 3 года назад

    Your life saver .. bro surely u will grow .. plz make videos on kali tutorials

  • @Cybrcom
    @Cybrcom  3 года назад

    Our free eBook covers the topics reviewed in our course. It explores one of the biggest risks facing web applications today: SQL injections. Think of this as your reference guide that includes concepts to understand, attacks you can perform in safe & legal environments, and defense controls you can implement for your network, applications, and databases.
    Download your free eBook here: cybr.com/ebooks/sql-injection-attacks/

  • @WickedTwitches
    @WickedTwitches 3 года назад +1

    Holy crap this is exactly what I wanted.

    • @Cybrcom
      @Cybrcom  3 года назад

      Haha awesome! Glad you found it :D

  • @7838007133
    @7838007133 3 года назад +1

    your English is so clear to understand non-English native speakers like me. Thank you so much!

    • @Cybrcom
      @Cybrcom  3 года назад

      So happy to hear that! Glad you enjoyed it!

  • @mynamejeff2880
    @mynamejeff2880 3 года назад +3

    what not even 1 k subscribers cmon man this guy deserves better

    • @Cybrcom
      @Cybrcom  3 года назад

      Haha thank you, that's very kind! The best way to help us grow is to help share our videos if you think someone could benefit from it! Thanks!!

  • @mohsenbaarzegar
    @mohsenbaarzegar 3 месяца назад +1

    Very awesome

  • @janekmachnicki2593
    @janekmachnicki2593 2 года назад +2

    I brought your course from Udemy so well spent money THANKS

    • @Cybrcom
      @Cybrcom  2 года назад +1

      Thank you for your support ♥

    • @janekmachnicki2593
      @janekmachnicki2593 2 года назад

      @@Cybrcom iv just brought another one form udemy " The Practical Guide to sqlmap for SQL Injections"

  • @justkiddieng6317
    @justkiddieng6317 2 года назад +1

    1:39:24. LOL, well a lot of time this is true but we need it. LOL. thanks for this, course I hope you will upload more video to help us especially for beginners. THAANNKSKSSSS

  • @user-gg8sj2ck3o
    @user-gg8sj2ck3o 4 месяца назад +1

    is that working if i apply this union sqli query param=')) union select name,name,name,name,name,name,name,name,name from sqlite_master where type='table' -- in login field to get all tables?, im asking because i've been tried it out but nothing happend, is that because the login field doesn't vulnerable to this query?

  • @mahesh6307
    @mahesh6307 4 месяца назад +2

    Most underrated

  • @user-wu1qj6uu5n
    @user-wu1qj6uu5n 5 месяцев назад

    is there a course to get more advanced on this attack? like for example bypass some stuff that very common in sql injection attack?

  • @FLUFFYCAT_PNW
    @FLUFFYCAT_PNW Год назад +1

    Really great and informative video.

    • @Cybrcom
      @Cybrcom  Год назад

      Thank you! Glad you liked it

  • @lichking5834
    @lichking5834 Год назад

    thank you sooo much man

  • @profesurtom
    @profesurtom 13 дней назад +1

    Hey if we shut down our system or close the docker seession do we need to download them again
    . and btw i love your videos and content you provide . THANKS FOR THEM , you are just helping us more than you think.!!!

    • @Cybrcom
      @Cybrcom  12 дней назад +1

      You don't need to re-download the docker images, you can just re-launch a new container with the same image(s). But if you take actions in the container, those actions will get wiped every time you shut down the system or destroy the container. You can get around this if you need to by setting up persistent storage though: docs.docker.com/guides/docker-concepts/running-containers/persisting-container-data/

  • @uuusa7
    @uuusa7 3 года назад +2

    Bro great job help me too much to learn, hopefully more video of you.
    Thanks

    • @Cybrcom
      @Cybrcom  3 года назад

      Glad it helped :-)

  • @nimcoabdi8822
    @nimcoabdi8822 Год назад

    Thanks I’m here to prepare my interview for cyber security consultant

    • @Cybrcom
      @Cybrcom  Год назад

      Good luck! Hope it goes well

  • @user-fu6nj8lv5b
    @user-fu6nj8lv5b 4 месяца назад

    In 53:12 what is % refering to? Is that encoded of single quote or empty?

  • @zaksam3745
    @zaksam3745 2 года назад +1

    thanks

  • @profesurtom
    @profesurtom 9 дней назад

    isn't the scaning a target is a 2nd phase for pentesting?? while not Info Gathering?

  • @bricer4894
    @bricer4894 2 года назад +3

    woow, am half way through but enjoying it. I feel like i can hack any database now haha. Thanks for this content

    • @Cybrcom
      @Cybrcom  2 года назад

      Glad you're enjoying it!

  • @bricer4894
    @bricer4894 2 года назад

    Does the order matter when writting commands for sqlmap eg (-u, --batch, --threads) or the command can run regardless of the arrangement ? Thanks

    • @Cybrcom
      @Cybrcom  2 года назад

      The order of options doesn't matter much in terms of running the command, nope!

  • @chizzlemo3094
    @chizzlemo3094 3 года назад +1

    hi mate, like your presenting style, does [arch=amd64] apply if the PC using intel, I'm confused? Thanks ya'll

    • @Cybrcom
      @Cybrcom  3 года назад

      Yes it does. Super confusing, I know. Here's a brief explanation of why it is what it is: wiki.debian.org/DebianAMD64Faq
      TL;DR: ""AMD64" is the name chosen by AMD for their 64-bit extension to the Intel x86 instruction set."

  • @justkiddieng6317
    @justkiddieng6317 2 года назад +1

    Please do more videos. That would be great.

  • @user-gg8sj2ck3o
    @user-gg8sj2ck3o 3 месяца назад

    how do you know that we should use a lot of column based on target table, or that what w should do in every union attack?

    • @Cybrcom
      @Cybrcom  3 месяца назад

      This would require a lot of trial and error to get the number of columns matching right if you were doing a blackbox test. Otherwise, this is information you could get from the engineering (app/database) team

  • @SEYIDMOHAMEDELKORY
    @SEYIDMOHAMEDELKORY Год назад +1

    waiting for your course about the new version of zap. it's completely different

  • @itsksujan
    @itsksujan 7 месяцев назад +1

    Great video on SQL injection, appreciate your effort 👏

  • @justkiddieng6317
    @justkiddieng6317 2 года назад +1

    If you can upload more full course about web security thanksss....

  • @mdzyrd407
    @mdzyrd407 Год назад +1

    Hello! I am having a problem when pressing the launch browser in the manual explore. The browser displays, however, the zap hud is not showing and the search bar is color red instead of yellow or orange like in the video. It only displays the OWASP Juice Shop web application. Any help will be appreciated!
    Edit: changed OWSAP to OWASP

    • @Cybrcom
      @Cybrcom  Год назад +1

      I’ve had a few other reports of this issue and believe it’s caused by an update to Firefox. Honestly, the HUD is not that useful once you start getting more familiar with ZAP, so learning how to use the HUD instead of the main ZAP client is not very important and could definitely be skipped. If you want to try a prior Firefox version though, that should fix it. Up to you!

    • @mdzyrd407
      @mdzyrd407 Год назад

      @@Cybrcom thanks for the reply, I recently knew that I do not really need the hud, I can use the desktop client which is for me is better. Btw really great video and tutorial, I learned a lot and thanks again for replying to my message!!! Cheers!

  • @xanvong1501
    @xanvong1501 2 года назад +1

    Thanks! So awesome of you! Learning so much!

    • @cyberone14
      @cyberone14 2 года назад

      your studying cyber security ?

    • @xanvong1501
      @xanvong1501 2 года назад

      @@cyberone14 yes, I recently graduated in Cybersecurity certification ( 30 credits). It is a competitive field to enter as an entry-level. I am thinking of pursuing Cloud certification with Azure or AWS. Application security job is in high demand and less competitive with others job applicants.

    • @cyberone14
      @cyberone14 2 года назад

      @@xanvong1501 well done :)

    • @Cybrcom
      @Cybrcom  2 года назад

      @@xanvong1501 congratuations, and that's a great idea. The cloud is in high demand and will remain so for the long-term, especially security!

    • @xanvong1501
      @xanvong1501 2 года назад

      @@Cybrcom Thanks so much 🙏

  • @sigge.g2193
    @sigge.g2193 Год назад +1

    If you having troubles with virtualbox and it is "aborted" make sure to enable "amd v" in bios setting

  • @ivanshyshkevich9301
    @ivanshyshkevich9301 9 месяцев назад +1

    Question: why are you deploying Kali Linux through VirtualBox? Wouldn't it be easier to pull it through Docker as well? Great course, thank you!

    • @Cybrcom
      @Cybrcom  8 месяцев назад

      Hey, normally I use VMs (something like VirtualBox for local or else cloud-based ones) for anything requiring a GUI, and Docker when I just need to run a server, an app, or scripts, either locally or as part of deployment pipelines... it entirely depends on what you want/need and your comfort level, but you have many options nowadays!

  • @sgshanks
    @sgshanks 2 года назад +1

    Solid content with clear explanation

    • @Cybrcom
      @Cybrcom  2 года назад

      Thank you ♥

  • @AfricanMemes-oq9eu
    @AfricanMemes-oq9eu 3 месяца назад

    Good morning,please at the beginning while trying to set up docker ..
    When I run the command...docker run --rm -it -p 80:80 vulnerables/web-dvwa
    I get am error messages saying Error starting userland proxy
    Address already in use
    Docker: error response from daemon

    • @Cybrcom
      @Cybrcom  21 день назад

      Hi, did you get this resolved? Just in case for others who may have that problem: the error message tells you that port 80 is already in use. You either already ran that command the didn't kill the container before re-running it, or you have another service on your computer running on port 80. You can simply map it to a different port, like this: -p 8084:80

  • @aadilroshan7822
    @aadilroshan7822 Год назад +1

    I love you man

  • @smert6379
    @smert6379 8 месяцев назад

    When i do the automated scan on ZAP, it just crashed after a while every time. And i need to restart my VM to get it to open again. Any help?

    • @Cybrcom
      @Cybrcom  8 месяцев назад

      Take a look at the error log and see what’s causing the issue. More details here: www.zaproxy.org/faq/somethings-not-working-what-should-i-do/

  • @user-fu6nj8lv5b
    @user-fu6nj8lv5b 5 месяцев назад

    Is that possible to sql injection the impossible level on dvwa blind sqli?

    • @Cybrcom
      @Cybrcom  5 месяцев назад

      It’s not supposed to be but you never know ;)

  • @user-wu1qj6uu5n
    @user-wu1qj6uu5n 5 месяцев назад

    Is DROP query can delete database and column?

    • @Cybrcom
      @Cybrcom  5 месяцев назад +1

      www.w3schools.com/sql/sql_drop_table.asp

  • @syamakella1297
    @syamakella1297 3 года назад +1

    bro can u make a video on how to run dvwa on aws kali instance

  • @fluidman777
    @fluidman777 2 года назад

    Hello, Thanks a lot. at 53:30 after executing the union payload am getting "Invalid HTML header" any solution.? I have cross-checked everything.

    • @Cybrcom
      @Cybrcom  2 года назад +1

      Try copy/pasting directly from here. It's possible that a weird character snuck in: ')) UNION SELECT name,name,name,name,name,name,name,name,name FROM sqlite_master WHERE type='table' --
      Alternatively, make sure you didn't accidentally modify or delete any of the other headers, and make sure the GET request is on a separate line from the User-Agent line

    • @fluidman777
      @fluidman777 2 года назад

      @@Cybrcom thank you!

    • @fluidman777
      @fluidman777 2 года назад +1

      @@Cybrcom it worked!thanks.

    • @Cybrcom
      @Cybrcom  2 года назад

      @@fluidman777 awesome!

    • @fluidman777
      @fluidman777 2 года назад

      @@Cybrcom could you be the one who was teaching Redhat sysadmin prep on udemy? had bought the course but i can no longer find it.

  • @johncracker6934
    @johncracker6934 3 года назад +1

    Actually in the minute 32:44 it will fail because it still got a closing quote the workijng payload will be something like : 346'%20OR%20'1'='1

    • @Cybrcom
      @Cybrcom  2 года назад

      Thanks! Must have missed that one

  • @zbgh7693
    @zbgh7693 2 года назад +2

    Might be late but question, can mastering this tool get me a start up job?
    Great video 🔥🙏🏼

    • @Cybrcom
      @Cybrcom  2 года назад

      It certainly wouldn't hurt, but you will need more than just mastering this specific tool (assuming you are referring to sqlmap). Most job postings will require knowledge of multiple tools and other concepts

    • @zbgh7693
      @zbgh7693 2 года назад

      @@Cybrcom I see yeah makes sense, would it be possible if you make a video on what are the things you should know in order to land a start up job or an internship in cyber security, I’m currently a 3rd year software engineering students and I’m all over the place. Would really appreciate it

  • @ingriedsiegbert9799
    @ingriedsiegbert9799 6 месяцев назад

    What is „Chi Chi“?

  • @user-fu6nj8lv5b
    @user-fu6nj8lv5b 4 месяца назад

    In 53:12 , what the % stand for?

    • @Cybrcom
      @Cybrcom  3 месяца назад

      in SQL, it acts as a wildcard. So since it's paired with LIKE '%' it means match everything. If it were instead LIKE 's%' it would match every column that starts with the character s, and so on

  • @mohammadpatel2315
    @mohammadpatel2315 3 года назад

    When I try sqlmap I get parameter 'id' is not injectable

    • @Cybrcom
      @Cybrcom  3 года назад

      At which step in the course are you getting this message? And are you running the same command as shown in the video?

    • @pratibhasharma5935
      @pratibhasharma5935 2 года назад

      @@Cybrcom I am getting the same error. This error is shown when I use the same command as shown at 1:21:10

  • @user-wu1qj6uu5n
    @user-wu1qj6uu5n 5 месяцев назад

    Can I create a new table in SQL Fiddle?

    • @Cybrcom
      @Cybrcom  5 месяцев назад +1

      Yes

    • @Cybrcom
      @Cybrcom  5 месяцев назад

      @@user-fu6nj8lv5bI'm not sure what you mean or what you're referring to

  • @geuxmer2355
    @geuxmer2355 9 месяцев назад +6

    Idk why but it feels like every second im not learning cybersecurity, things are getting more secure and one day soon hscking will be phased out completely

    • @Cybrcom
      @Cybrcom  9 месяцев назад

      I wouldn’t worry about it anymore because that’s definitely not the case :)

    • @Louisianish
      @Louisianish 6 месяцев назад +1

      Cybersecurity professionals are more in demand than ever, and that demand is only growing.

    • @kuil
      @kuil 6 месяцев назад

      It is getting harder to hack, but as new technologies are created, new exploits will be too.

    • @night0x1
      @night0x1 6 дней назад

      Always be creative on your payloads and think out the box

  • @user-gg8sj2ck3o
    @user-gg8sj2ck3o 3 месяца назад

    name is a column or function?

    • @Cybrcom
      @Cybrcom  3 месяца назад

      Timestamp please

  • @francisdonald4298
    @francisdonald4298 2 года назад +1

    Why here seems easier but in live targets doesn't work!!!!?????????

    • @Cybrcom
      @Cybrcom  2 года назад

      It’s part of the grind & hunt!

  • @footballforall3113
    @footballforall3113 3 года назад +1

    make of xxe tooo please

    • @Cybrcom
      @Cybrcom  3 года назад

      I've actually got a brief section on XXE in the full version of this course here: cybr.com/courses/injection-attacks-the-free-guide/
      (Check out the "XML and XPATH injections" section)

  • @raviranjan5519
    @raviranjan5519 3 года назад +1

    can you teach me digital forensic

    • @Cybrcom
      @Cybrcom  3 года назад

      We're talking to a couple of potential authors who are knowledgeable in digital forensics, and are hoping that will lead to courses on that topic!

  • @medorrah
    @medorrah 10 месяцев назад

    I need anyone that is very good in injecting sql to come to my aid

  • @emochain75
    @emochain75 2 года назад

    brother I got this video ..Does it need to have wireless adapter for sql injection ? Cause I donot have money so that I can buy it ,,,, And my laptop dont have that ..plzz reply😪😊

    • @Cybrcom
      @Cybrcom  2 года назад +1

      No wireless adapter is needed for SQL injection

  • @rtzgf67games7
    @rtzgf67games7 2 года назад +1

    Note to myself: 1:22:47

  • @karthikiyer1309
    @karthikiyer1309 3 года назад

    Right now you don't have 1k subs but I'm seeing ads on your video...how???

    • @Cybrcom
      @Cybrcom  3 года назад

      RUclips just announced a change to their ToS so they are now monetizing videos even if the channel isn't monetizing :(

    • @Cybrcom
      @Cybrcom  3 года назад

      From RUclips's announcement:
      "RUclips’s right to monetize: RUclips has the right to monetize all content on the platform and ads may appear on videos from channels not in the RUclips Partner Program."

  • @SQLxGuy
    @SQLxGuy Год назад

    How is it like being a good guy hacker?

  • @god9233
    @god9233 3 года назад

    brother but like this you teaching people how to sql attack.....

    • @Cybrcom
      @Cybrcom  3 года назад +1

      You have to understand how attacks can be carried out in order to truly protect your assets. The hope is that more people do good things with their skillset than bad, but ultimately you don't prevent bad things from happening by limiting training. Quite the opposite!

    • @belharra5756
      @belharra5756 3 года назад

      @@Cybrcom yes your right also i would appriciate if you could make sql injection video with the New kali Linux because many things changed like the docker download

    • @Cybrcom
      @Cybrcom  3 года назад

      @@belharra5756 here's an update on how to install Docker on the new Kali version. It's actually much simpler now!
      cybr.com/app-data-security-archives/how-to-set-up-the-dvwa-on-kali-with-docker/
      TL;DR:
      sudo apt update
      sudo apt install -y docker.io
      sudo systemctl enable docker --now
      sudo usermod -aG docker $USER
      newgrp docker

    • @god9233
      @god9233 3 года назад +1

      @@Cybrcom brother could you Pls make an updated version of sql injection on how to bypass waf

    • @Cybrcom
      @Cybrcom  3 года назад

      @@god9233 I'm actually working on one right now that will include that :-D

  • @Puseyeater69
    @Puseyeater69 Год назад +2

    🙂👍

  • @turalkanal2113
    @turalkanal2113 Год назад

    could you please assist me to solve this error: Failed to load R0 module D:\/VMMR0.r0: The path is not clean of leading double slashes: 'D:\/VMMR0.r0' (VERR_SUPLIB_PATH_NOT_CLEAN).
    Failed to load VMMR0.r0 (VERR_SUPLIB_PATH_NOT_CLEAN).
    Result Code:
    E_FAIL (0x80004005)
    Component:
    ConsoleWrap
    Interface:
    IConsole {872da645-4a9b-1727-bee2-5585105b9eed}
    I have been trying to solve for 3 days .

    • @turalkanal2113
      @turalkanal2113 Год назад

      when I want to start the machine

    • @Cybrcom
      @Cybrcom  Год назад

      Did you figure this out? You might want to uninstall/reinstall

    • @turalkanal2113
      @turalkanal2113 Год назад

      @@Cybrcom I installed VB to c:/

    • @GodsGreatest
      @GodsGreatest Год назад

      Ask Chatgpt

  • @user-cn2uv1ms2t
    @user-cn2uv1ms2t 5 месяцев назад

    do you have video to prevent sql injection using ML

    • @Cybrcom
      @Cybrcom  5 месяцев назад

      I do not and haven’t seen one I can recommend