Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Statistical database data volume statement

2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >

Share

Shulou(Shulou.com)06/01 Report--

In general, when server permissions or database permissions are obtained through a vulnerability, in order to verify the severity of the vulnerability, in most cases, we need to count the amount of data in the database (not query specific data values). The following query statements of the two databases can directly query the amount of data in all tables in the database, making it convenient for inspectors to query the amount of data.

Some information on the dark cloud

Oracle

Select table_name,num_rows from user_tables order by num_rows desc

-

Mysql

Select table_name,table_rows from information_schema.tables order by table_rows desc

-

Mssql

SELECT a.name, b.rowsFROM sysobjects AS an INNER JOIN sysindexes AS b ON a.id = b.idWHERE (a.type ='u') AND (b.indid IN (0,1)) ORDER BY b.rows DESC

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Database

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report