ym104432846
Вставьте ссылку на видео из Youtube, Rutube, VK видео
Задайте вопрос по видео
Что вас интересует?
00:00:06
SQL инъекции и техника Union:
  • Объяснение атаки SQL-инъекцией через использование оператора UNION
  • Примеры использования UNION для объединения данных из разных таблиц
  • Демонстрация определения количества столбцов в запросе
  • Практическое применение техники ORDER BY для выявления структуры базы данных
0: Lab numbers фри, зис лаб вилла, Жекшен, юнион атак, за will, алавес ту, экстракт информейшн, Фром бибан датабейс, ей летс лук at the дискрипшен со зис лаб контейнс, асик ejection Ван ебали.
1: The product категории филтер со вив год and sql, and its and the product категории филтер её result from the korea а. Return in the.
2: Браузер.
3: So what the?
4: Now, the way we wanna экспози фолтер оо the из by running as энджен юнион, эта and эвеншли бин эйбл ту ретри. Дата from other тейбл соу Вена. Interested in for example, the.
5: Table the more interested in table like user, стейбл контейнс, айс to the user, кейн, Софрон.
6: Its tuning малтипл стапс энд one of the first stop in order to access to die a of b. By the korea он and stop.
7: Бидана н. Тракт фо так, so in order to learn how do one this attack, its на take a believe it to free before we can экшли экстракт, а from the
8: Right so the end goal of here for today exercise is to the lab, термин the number of me by the court by forming же так in additional рок континен на вальюс.
9: Со the angle is to determine the number of коланс?
10: We turn by the korea.
11: And will do that by exporting the сиканд Жекшен, онеба райт, соу бифор, ви аксес, элаб ви нид, э лилли, Абакан нолидж он хау ди юнион, оперейтор воркс.
12: Array so take. For example, you got to table table one and table to.
13: Table one has to коланс эй b and table to has to Коллам сиэнди.
14: Now тейбл Ван Ван ту ту ту 3 and one free for and tell to.
15: Four five.
16: Now imagine you have the квери оври хир.
17: Select эмби Фром тейбл Ван соу селект калам эмби Фром тейбл Ван Зее резалт оф зе скори вот би ди валю эндокам соу вот b Ван ту.
18: And 3 for now watch to корриде из is the union опреде.
19: So the same кори эбав со селект эй би.
20: From table он.
21: Union select cd from table to write so what the union оперетте дас офер хир из кон катине резортс азетту корис ИНН ту a single.
22: So the ab from one so Ван ту фри фо.
23: Two and out by.
24: Two, three, and four five and the results are displayed in to one single резалтсет о in the same table right so, now you may be wondering.
25: Ту сиквел инжекшен атак нау эмадин ю хэв диски овер энд ол и das is it, displays продактс, Фром, э продакт, тэйбл нау айм нот интерестин.
26: The products in the product тейбл, ай кер эбаут, мой тейблс фор экзампл, зи юзер, тейбл зе contains the username and hush паспортс офф all the users of this application over here and so what i can do.
27: If this is ванел ту сиквл инжекшен ай кэн эд дикори о here lets say союзер стейбл.
28: Jack the скоро за dont just give me the the products and the product тейбл, а also give me the username and passport from the user, стейбл энд, зис, вей, эллас, Мите.
29: Extract information from other tables are by you by now before this thing таким to know you need to фо.
30: Using the union апрейтер энд Вилл get from the official microsoft документейшен.
31: Union притёр цикл со iv you go down, you cat c over here.
32: The the function of the union н.
33: Union со the first truly is that the number and the order of the калом маст би зе сейм энд ол корис.
34: And we start this is the case for harry or so the number of colors, the calling the first кори, ту and the art of Кола, колин зе секонд и table to a also to see eddie so we are the rule.
35: A second ролл из ai Тара тайпс.
36: Must be. Compatible. And we совер хир оо the колом эйбиси энди ар тайп энтир энд затс вай зе скорю воркс энд да фроу эн эр орэн эксепшен райт окей.
37: Now that we know how do use the union кори хау кэн ви аплай иное, те. Our and go what is to determine the number of calls return by the korea соу летс сей сиквл инжекшен атак.
38: Imagine you have in application is running you has to the code and you dont know.
39: March over and its from сей тейбл Ван нау иф зис криз Ван тусик инжекшен ю can use the union оперейтор энд оде ту детермин зе намбер оф колом бай.
40: Это бли.
41: Doing do юнион факт, но well, you now, if the number of calm is not the same in the скори соу ин зе секонд кори.
42: If we get and r.
43: Then we know that the number of collins, is not just one, so we know that its incorrect, number of collins, and so will keep running the.
44: Quest оо ли and tell we no use to us and again, if you get there is инкомпатибле, зе намбер, оф колм и and so.
45: You and tell you.
46: Then you five Риш коррект, намбер оф калом энд Вил си хау ту ду за in the exercise рейт соу, затс вей намбер one, and that is how do свигер, ванес ту комплит зи exercise.
47: A. В. Ccleaner.
48: Ева.
49: The number, two.
50: And what are us as the ордабай класс солет сей одеб сико.
51: And again we look at t. Майкрософт документейшен.
52: So, it sort data written by аквари ин зе сиквел сервер white so, if youve got.
53: Экори зет с select ab from table one and says ордер buy Ван вот that will do из it will order by the first колом иф ай сэд ордер бай ту.
54: И order by the second колом вич из by if i said ордер бай фри за колом и nat эксист энд соу ит Вил то and r. And this is another way of determining the number of Кола за been us by the korea биказ.
55: What i can do as i can тратили кип ин Крисин, зис намбер ту юноу Ван ту фри фор сон Энта, трай ту ордер бай нот экзе энд the for keep the way за numbers of.
56: And so ввиду Бо тд. In the size.
57: Max allaps?
58: Ok, so it looks like we've got shopping аппликейшен ю can find search категории лук к this is the feel.
59: Application and so with internal server it think i enter into the seeker.
60: So now i need a to buy the.
61: Way lets play they намбер Ван Веч юзес Зина вельюс.
62: So many close the korea and se union select now.
63: And i enter i getting интернал сервер, a which leads me to believe that there isnt only Ван Коллам, ин зе кори нат микс санс.
64: Product and н. And so my.
65: Every case and to do you be sweet you dont know what this as its proxy, н. The метал, битвин, май браузер and the application.
66: Stand my brother клик но here.
67: А вот козе ес рейт.
68: My brother.
69: Right, so over here?
70: Смекта.
71: Right so овере?
72: We эксоде зе сик инжекшн бассейн юнион.
73: Select
74: No.
75: The праксис, итс контрол ю and and her scent.
76: And in the response you get an internal server айс и они
77: Now lets ада назер Ван.
78: Nt. Савокс.
79: So for the space watch r plus.
80: With internal server has more to i have three right now энтер ви и get an internal server.
81: We forgot акана эген энд ви ту хандред окей респонс.
82: Come in this квери матч из the number of колёс in the кризе из респонсибл фо filtering бессон категории n со на within the number of колом из Икол ту фри, да first they doing at the second way was.
83: И order by class so order by.
84: So what the stars as ill order by the first колом.
85: So контрол юту юрал инкод хет сант.
86: And we got an invalid, request and that is because i was incorrectly дан хер и go, and the enter сори спейс, окей, перфект.
87: Right so this is ordering by the first come this is much to do to the brothers со ввиду прокси.
88: Ok, so, no other nothing, ордер. Вич ли my to believe the first калам из one that we don't see, which is likely to be the id ка юниклин, и try to.
89: Now to should be the скалам орихи соу, зис энтри шуд би ордер, истан зе ферст латте оф the alphabet and we саде хапен о perfect now let's ту фри энда шуд би зе прайс Коллам.
90: Nine nine перфект свиное 3, come lets you for n v r and there is again we н и.
91: And this резалте ИНН n r, the application level right so now we know that the number of colors из for minus one which is free so we successful комплите зи энгл оф зис аксесас иф ю.
92: Check the video ли on the screen.