Técnicas de SQL Injection: Un Repaso - index-of.es

27 jul. 2002 -
369KB Größe 6 Downloads 88 vistas
!

! #$%&

" ' " * +"

( ,# . / "0#$% ' " , * ) 1 % )" + ! " , * , ") - ** 2 #$% ' "- " " 3 #$% 4 )

? @ B C

) 5 , ! ) %" " 5 " 67" * 8* " . 5 9 ", # :) * * #. 8< + " " ) >; ) 5 4 ' " ; 4 # ! 4 ! ', * #$% 4 : "' " ' " "A " * "+% "' ; " A " "' ) " 5. "

""

) " " " ! 6 . " #$% 4 + ;7

"

.

/ ; " =

" " " .> ", " " " 8< " "

#

,

"

!

,

"

"

"

" "

#

8

"

)4 " 7

# )

"

"

+ = ) & " +

. " ! . 7

6

& " "+

"

9 & "

" " . " ( "

&

D "

9 &

"

"

(

* 6

+

*

"

6 . " " 6 ( "" " 4 "" " 7< " ) "

"

" "

"

&" " "& "= . (( #

+

2 ;

" " "

* 5 "

. "

6 " .

"

"

" 6 "

)

&

" (

"

")

)

* 9

"

7 " 6 (& . 4 #$%& " " " "

" *

"

9

"

"

$

!% & ' 5 * " D C 2 . 6 " . ' " * 9 " " 9 ( " ) 4 & " * ) 4 " " % #8$ 8% * * & !

% . . = 4 " " " " +&

"& +

"

D "

"

" & .

"

) " "

*

( & "

"

" )4 "

) 4 ) 6 9 "

( ) "

+ 8 . " 6 7 " 6 " . "&

*

9

" &

"

>#

" " ) " " 9 . 4 #$% " 6 E#+) " & : + " 51# CB@ + "

9 "

.& 9 +" " ")

"

*

"

)

" . 4 "& 9

" ") " " .

"

4 " . 4 + % . . > * 6 D C & #8$ 8% #$% E# $ + % . . F

$

" D " ,-

&

9 9

+ = *

! #$%> " 9 4 " ) ) " 6 " " . " 4 " "= 9 " #$%2 . 6 "& 9 " + 6 6 " 6 . 4

( ) * # +, $ ( " " " " " ) " " " 9 - + " *& ) 4 ) 4 " " 9 " = " " = ,:# ! 9 "& 9 " * " & " ) ) 4 9 " 6 " 2 G " E, . * & " 6 " " " " "" F& " * ) " D= " " ) " ) :# & " " " ) " ) " . " 6 " !' " " %51

3 5

) & ( ) "

"C & 9 " & ) 9 . ) " 6" 9 4 & " 9 " ) * " . = " 6 6 " # & ) " 6 " 2F " 9 " * 9 " ) :# 2 %

" ) 7

" 9 " ") "

) " " 9

"

8 ""

:# " 6 &

6 '

" 9

&

- " *

" "

*

"

, " " 6 "6 " " #$% @

& " "

. "

"

" "

" . "

" "& " "&

"-

.#

' *

"

/

" .

) = .

!

0

9 6 "& +

9 6 "

" "

" . )

*

=

9

"

6

6

"

#+) " :#

+

G

+ 9

" " 1;& + " * 0 " "

" * #$%& " * 9 ( " . CC? " "9 . ) "

#0#$%& ) 4 & " "

F&

"

"

" 6 " #$% .

&

" " *

,

) -

6 " ) " 1;> H " D CC2

" &" " G

&

#+) "

5

)=

" "

"

.

E#

%$6 "

"

9

. " "

)

) "

" 1;

67"

"

CCB . ) 9 9 " ) " - " 9 " . " " . " "

9

D CC = " * #$% # 6 3 * ( " "

) > ( =

& + 9 =

( ) . "9

"

. 6 , " G

&

"

" *

=

"

"

,

"

:#

" )

7" " " &" * * "9 " *& 2 G " 1;

" . " 9 " " E! 9 ) 4 =

"

" * #$% " 6 " & " I) & " " ) . ( #$% # 6 & "6 ) " " & " " " " 6 4 "" & 9 " " " " 4 6 " " =" "

* 9 9 #$% # 6

& " " " "

" ""
8" 9 " " * 6 P

& ,!

" ) < " "6

"

"

.

"

" +"

"

")

9

5

" "

"

" " )

! " Q " Q " Q .

9

"


M . 8< " G ) ** " ) " >" 6Q * EF>

""

Q M9 Q " Q < Q" "9 " Q"9 .

6= "

&

" ")

")

" < = > E #-1 B303B 022CB0@F )

< < < < <
; ) >F

UPADTE Tabla SET password = 'Juajuajua' WHERE user = 'admin' E8" " ( = "" " & 6 F 5 4 "

)

& " "

"

"&

"

" "

9

. 4 #$%& "

4

"

" ! 4

4

"

# )

"

&

"

6

"

&

9

6 "

" #$% "

" =

& " " "

" " ""

" 4

"

" "

+

#$% &

. * " ) &

"

& 7

9 "

+ 4

" *

*

"*

& " " 6 " 9

+ .

" 9

")

"5 # #

67 " H ) ")

" 9 = " &

.

(

.

" '

*

"

. 8 &

>& "

" "

9 "& " . " >5 9 " 9 * 6 & " "9 " #$% ) "& "

C "

6

"

" )

" " =

# )

&

)4


#$% #0#$%&

" * "

"

"".

"

" " 8 "

" =

"

* .

9

*

+

9 . )4 6

"

4

>

" "9

&

)

" "

.

J "

"

&

9
8 # 6 >F "6 " 9 + #$% " 6 ) " " 9 "& 9 ) " " ) 4 + " ( " ' " ' & " ) 4 > . #$% > EH B * " + " "F 9 " " * . ". "
6 * "6 & " " . 9 & 4 & ) "= 8 " *

" & ) " "

) . " * .

. >.

. >F

" > )

7

"6

#

"

"& " "& + "9 .J ) " E! " ." > >% " ' ">

"

) " "

" "

9

" " "

)

9

;:,5 * " " 6 (

!

" (

&" .

" =

& "

. .

" "

"

"&

)

"

"

" " " " "

" " "

9 7

= "

" "6 " ) " " * " *

" ) 6

& "=

" " "

"&

. "

" + =

" . " 7

9

.

&

6 " # ) & 1: ) ) " " & "6 " " ) E8" " " ) 6 "+ . F

*

+ =

) . "

"

"

" . " " " < #$% "& .J " " + ) 4 * " EH > % " ' ">F

" >

"

9

& "

6 " " 9 )7

"> " )

) " "

6 "

6= "> "

* *

" "& +J

" & .

"

. " = ) " 9 "

3 $

(!

6)

" "

"

"

"

"

/

!

"+

"

" " * " 6"

" H 7 " " ! " * =

"

. "&

"

" .

#$% ""

" . I) & E> L >F * " ) 6 "

+ "

=

(! "

.J "

" "

"6" + " 9

*

"

.

" " " " " ; % 5#!& * " " " " 9 6 "9 " " " 6 "& . " # 5 : + !5##G: , " " . 5#! 9 ) " + 6 #$% ; ) 7 = " 9 * " " 6 #$% " : > 9 " " ) . " "

& F&

, 0

4

Usuario : 'OR''=' Password : 'OR''=' 5 4/ '

) " > "

# )

"

&

" ">& " #$% "& . +

"


00 > E, ) & #$% 9 .

" "

6 &

.J "

& "

)

"

6 " &

6 4 . F " " " 9 6 .

9

.

" 6" "

"

"&

" " " *

"

/

" . " >5

>

9 >

L> " + > 00 > E, ) / F " < "& " )

"

"

"

" > " "

.

"> "

) 4) 5 " #$% 6 . " " "

#

' *

+ =

$ 7! . " + " )

" " . "

"& 9 6

"

J

"

" * "

) 4 " " 9 6

" *

" 6 .

. "" 5 6

!

"

9

" >

"

9 " < +

" " . ""

" 6 "

&

.

"

) " 9 D

"

( ) * "

) )

" "

*

"

< "

" ) 9 " .9

+

&

6

=

"

"

) ) "& "

"

. ". *

1 "

*

"

) " 6 " )4 ) "

" )4 "

"

8 ". * 6" "

"

+

% # #$% # 6 & + " & " 6 . " " 6 & " > " & " ) +> > " " ) " " #$% # 6 "

" " "

"&

" "9 "

.

"

"

"

) "

9

> 9 " + *. " " " " E' + < " F& " " " " " " " . & . 9 " " ) " " "& + " 9 " " & 4 & " 6 " " " " " 6 " " " & " 6 " 4 & " + * " " ) " < 6 . & " " " . "

' ; "" 6 ##$%#8 H8 < >< Q ) "

)Q

"&

"* . & " * "

$ 7! .

"

)

#

"

" " 17 !

"

".

& ) 4

! "

6

"

6

" " * "& + " *

) " " 8 4 .J " " "& " " " ) "+

B . 6 9# + & % " 9 " , . # 6 & " 6" " " " " E8 " " ) " = "& 4 " ( + ( & F 5 9

* 6 9

"

"

"

6 " &6 9 4

" " ) "

"9 .J 4

" & . " " 6

. & +

M #$%& "

"

&" " " D " " E' = " 5 9 " 9 " . " " 6

*

"

& "

= 8

"

. "

"6" " . 6 9 J " " "

) & "

"

=

4

& F

& * " 9

* &

&

Usuario : '; drop table usuarios-Password : # *

EH

"

) )

) &

' 6 "

* >8*

.J &

9 7

"

> "

&"

"

" "> "

! 6 &

"

*

+ ) ( , # " " ) "&

" "

"

" &

"

6

&

"

"9

)

. " >F & "

. " 9

*

"

" 9

"

6

"

" 5"= +

6 "

(

&

. ) = "

&

+ 1

$

%

+

67 )

: 3( ! ) ) 7 "

) & #

%$(

4 " D

# )

"

"

" " .

%

& 4/ .

$

! #& " * " " " " ( & " " ") " 9 ) " :,-' :%8 ,4 " #$% # 6 . "

9 &

& " " "E ) "6 & +

"

.

" "9 "& "

) . " ) " " ) "

. 7< "

"

& ( = & 9

"

"

*

F

C "9 1

"

"

"6

) "

8

& "

"

"9

) "

! " "

" " D

6 6") " . "

&" " &+

" 4 " " " +

"

6 ("

"&

+* "

*

.1)

8 6

+

"9

* " " " 6 (

". > L > E' *

" "

4 #

9

"

6

"

"


. >

& "

"

:,-'

"

" 9 "

6 + :,-' 8

" )Q

.

" "

9

6"

" "> " .

> *

)

3 % ) 010.8#* - "3.9$ (")-#)

123

:;