2.2.3.1 对Access数据库的判断与其特征
ps:虽然我没说明版权,但是转载也要说明下啊,至少给我点面子行不? www.2cto.com编外:我们希望作者给个总的题目。。。免得读者看起来不系统 作者:幻泉 2.2.3 数据库 类型的 判断 与各种 数据库 特征 在注入入侵前需要先 判断 数据库 类型,因为各种 数据
ps:虽然我没说明版权,但是转载也要说明下啊,至少给我点面子行不?
www.2cto.com编外:我们希望作者给个总的题目。。。免得读者看起来不系统
作者:幻泉
2.2.3 数据库类型的判断与各种数据库特征
在注入入侵前需要先判断数据库类型,因为各种数据库的SQL注入都各有不同,所以判断数据库类型有利于我们针对特定数据库进行入侵检测。
2.2.3.1 对Access数据库的判断与其特征
通过错误页面判断:
这是上面讲过的图片,其中Microsoft JET Database Engine 错误 80040e14说明他是用JET数据库引擎连接的数据库,而JET是Microsoft Access和Visual Basic使用的一种数据库引擎,所以可以肯定这个页面连接的数据库是微软的Access数据库。
通过查询判断:
加入容错处理的程序不会显示错误信息。所以无法从网页中判断是什么数据库。但是Access存在几个默认系统表我们可以通过查询其默认数据表,来与其他数据库区分。(因为Access数据库的系统表大部分都是唯一的)
正常情况下access是不允许查看系统表的,所以我们需要进行设置来让数据库显示系统表。打开数据库点击工具栏中的工具-选项,勾选“系统对象”选项点确定就会看到系统表了。
Access总共有6个系统表,如下表格:
系统表名 |
系统列名 |
MSysAccessObjects |
ID |
Data |
|
MSysAccessXML |
Id |
LValue |
|
ObjectGuid |
|
ObjectName |
|
|

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

AI Hentai Generator
Generate AI Hentai for free.

Hot Article

Hot Tools

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics



DeepSeek cannot convert files directly to PDF. Depending on the file type, you can use different methods: Common documents (Word, Excel, PowerPoint): Use Microsoft Office, LibreOffice and other software to export as PDF. Image: Save as PDF using image viewer or image processing software. Web pages: Use the browser's "Print into PDF" function or the dedicated web page to PDF tool. Uncommon formats: Find the right converter and convert it to PDF. It is crucial to choose the right tools and develop a plan based on the actual situation.

Apple's latest releases of iOS18, iPadOS18 and macOS Sequoia systems have added an important feature to the Photos application, designed to help users easily recover photos and videos lost or damaged due to various reasons. The new feature introduces an album called "Recovered" in the Tools section of the Photos app that will automatically appear when a user has pictures or videos on their device that are not part of their photo library. The emergence of the "Recovered" album provides a solution for photos and videos lost due to database corruption, the camera application not saving to the photo library correctly, or a third-party application managing the photo library. Users only need a few simple steps

To handle database connection errors in PHP, you can use the following steps: Use mysqli_connect_errno() to obtain the error code. Use mysqli_connect_error() to get the error message. By capturing and logging these error messages, database connection issues can be easily identified and resolved, ensuring the smooth running of your application.

How to use MySQLi to establish a database connection in PHP: Include MySQLi extension (require_once) Create connection function (functionconnect_to_db) Call connection function ($conn=connect_to_db()) Execute query ($result=$conn->query()) Close connection ( $conn->close())

JSON data can be saved into a MySQL database by using the gjson library or the json.Unmarshal function. The gjson library provides convenience methods to parse JSON fields, and the json.Unmarshal function requires a target type pointer to unmarshal JSON data. Both methods require preparing SQL statements and performing insert operations to persist the data into the database.

How to integrate GoWebSocket with a database: Set up a database connection: Use the database/sql package to connect to the database. Store WebSocket messages to the database: Use the INSERT statement to insert the message into the database. Retrieve WebSocket messages from the database: Use the SELECT statement to retrieve messages from the database.

Solve the problem of third-party interface returning 403 in Node.js environment. When we use Node.js to call third-party interfaces, we sometimes encounter an error of 403 from the interface returning 403...

To avoid PHP database connection errors, follow best practices: check for connection errors and match variable names with credentials. Use secure storage or environment variables to avoid hardcoding credentials. Close the connection after use to prevent SQL injection and use prepared statements or bound parameters.
