-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsql inj
104 lines (71 loc) · 1.63 KB
/
sql inj
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
OWASP ::open web application security project
LDAP
there is firewall b/w webserver and database
Drupal sql vulnerablility
wordpress slq inj
Types of sql injection
error based
union based
blind based(types)
ask db for question (boolean based)
just looking for certain time for executing(Time based)
single character
input senetization
tautologies is important for sql injections
union based injection
comment in sql --
query system object
for sys in mysql
selct * from sys,table
selct * from sys,column
advance injection
boolean based injection
time based injection
select * from table order by case when .. then .. else .. end
desc
using ascii tables
tools::
fiddler
1==@@version-- version info after select
current_user
is_rolemember
db_owner
sysdatabases
PWDCOMPARE
select * from syslogins
wherre pwdcompare('passwod',password)=1
OPENROWSET
by default it is off we configure it in 6 video of advance
exec xp_cmdshell 'commd'
by default it also off
for on
exec sp_configure 'xp_cmdshell' ,1 RECONFIGURE
SQL INJECTION FOR NETWORK RECONNAISSAN
denfending
using query parms
store procedure
object relation mapper
isolating database to network segmentation
allow inbound ips in azure sql server
ussing IDS and WAF
URL SCAN TOOLS
barracuda firewall
cloud flare
drupal 7
web site
msdn.microsoft.com/library
parameterize query
inline sql query
envasion tech..
Envasion technique:::
white space diversity
inline comments
variables
Automating attacks::
add ons firefox::sql inject me
burp suite free edition tools
fuzz db project on google code
Havij tool
sqlmap tool github repo
netsparker dynamic analysis tool
crossite scripting