TAILIEUCHUNG - hack proofing your network second edition phần 4

một bước riêng biệt. Diffing có thể được thực hiện tại đĩa, tập tin, và mức độ cơ sở dữ liệu. Ở cấp độ đĩa, bạn có thể khám phá ra các tập tin đã được sửa đổi. Ở cấp độ tập tin, bạn có thể khám phá ra những byte đã được thay đổi. Ở cấp cơ sở dữ liệu, bạn có thể khám phá ra những | Unexpected Input Chapter 7 213 into a table that she can read from directly. And of course the query may not need to be seen such as a DROP command. Figure Some Database Servers such as Microsoft SQL Server Allow for Multiple SQL Commands in One Query When trying to submit extra commands the attacker may need to indicate to the data server that it should ignore the rest of the query. Imagine a query such as this SELECT FROM table WHERE x data AND z 4 Now if you submit the same data as mentioned earlier the query would become this . WHERE x 1 SELECT FROM table WHERE y 5 AND z 4 This results in the AND z 4 being appended to the second query which may not be desired. The solution is to use a comment indicator which is different with every database some may not have any . On MS SQL Server including a double hyphen tells the database to ignore the rest as shown in Figure . 214 Chapter 7 Unexpected Input On MySQL the pound sign is the comment character. So for a MySQL server an attacker would submit 1 SELECT FROM table WHERE y 5 which results in the following final query of . WHERE x 1 SELECT FROM table WHERE y 5 AND z 4 causing the server to ignore the AND z 4. Figure Escaping the First Query by Submitting blah select from sales - Which Makes Use of the Comment Indicator -- in MS SQL Server In these examples you know the name of your target table which is not always the may have to know table and column names in order to perform valid SQL queries because this information typically isn t publicly accessible it can prove to be a crux. However all is not databases have different ways to query system information to gain lists of installed tables. For example querying the sysobjects table with a Select from sysobjects query in Unexpected Input Chapter 7 215 Microsoft SQL Server will return all objects registered for that database including stored procedures and table names. When involved in SQL hacking it s .

TỪ KHÓA LIÊN QUAN
TAILIEUCHUNG - Chia sẻ tài liệu không giới hạn
Địa chỉ : 444 Hoang Hoa Tham, Hanoi, Viet Nam
Website : tailieuchung.com
Email : tailieuchung20@gmail.com
Tailieuchung.com là thư viện tài liệu trực tuyến, nơi chia sẽ trao đổi hàng triệu tài liệu như luận văn đồ án, sách, giáo trình, đề thi.
Chúng tôi không chịu trách nhiệm liên quan đến các vấn đề bản quyền nội dung tài liệu được thành viên tự nguyện đăng tải lên, nếu phát hiện thấy tài liệu xấu hoặc tài liệu có bản quyền xin hãy email cho chúng tôi.
Đã phát hiện trình chặn quảng cáo AdBlock
Trang web này phụ thuộc vào doanh thu từ số lần hiển thị quảng cáo để tồn tại. Vui lòng tắt trình chặn quảng cáo của bạn hoặc tạm dừng tính năng chặn quảng cáo cho trang web này.