2.4.3 Exploiting In-Band SQL Injection
Exploiting In-Band SQL Injection
SELECT <field list> FROM <table> UNION SELECT <field list> FROM <another table>;First Scenario
CreditCards
|id(int)|username(string)|password(string)|real_name(string)|
|-------|----------------|----------------|-----------------|
| 1 | admin | strongpass123 | Armando Romeo |
| 2 | fred | wowstrongpass123| Fred Flintstone|
Users
|user_id(int)|Cc_num(int) |CVS(int)|
|------------|---------------------|--------|
| 1 | 0000 1111 2222 3333 | 123 |
| 2 | 0123 4567 8901 2345 | 321 |