Jump to content
M4T3!

ajutor sqli

Recommended Posts

As vrea sa mi explice cineva la sqli cand se foloseste cuvantul null.

id=-1'+UNION+SELECT+1,’2’,3,NULL,NULL,NULL+WHERE+1=2—
id=-1' UNION ALL SELECT 1,null,null --

Se mai pot folosi si alte metode cu null? Si va rog sa mi explicati cele 2, cand e folosesc si daca aveti rabdare si un exemplu ceva. Doresc sa invat, dar tutorialele gasite nu sunt foarte bine explicate, am vointa dar nu am si ''material''

Multumesc anticipat.

Link to comment
Share on other sites

MySQL :: MySQL 5.0 Reference Manual :: 3.3.4.6 Working with NULL Values

In principiu, cam asta e. Poti folosi de exemplu null pentru aflarea dintr-o tabela, a datelor unor user ce nu au, de exemplu, setat numarul de telefon

Exemplu (pentru coloana vulnerabila 5):

.php?id=-1 UNION SELECT 1,2,3,4,group_concat(username,0x3a,passwd,0x3a,email),6 FROM users WHERE numartel=NULL--

Sau, un alt exemplu. Daca sunt mai multe coloane vulnerabile, si vrei sa fie afisat doar numarul unei singure coloane, inlocuiesti numerele celorlalte coloane, cu NULL.

De exemplu, daca avem 10 tabele, stim ca , coloana 4 este vulnerabila, si vrem sa o afisam doar pe aceasta, folosim:

.php?id=UNION ALL SELECT NULL,NULL,NULL,4,NULL,NULL,NULL,NULL,NULL,NULL--

Sper sa te ajute.

Daca am gresit cumva cu ceva, va rog sa ma corectati.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...