In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-25 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Network Security >
Share
Shulou(Shulou.com)06/01 Report--
Since the previous version of kali is newer, php7.0 (this is the problem) is installed by default.
Users of PHP 5 can use mysql extension,mysqli and PDO_MYSQL, but PHP 7 removes mysql extension, leaving only the latter two options.
Therefore, there will be some problems when Sqli-labs connects to the database and queries.
When we install Sqli-labs, we must change the function of the related database to mysqli.
When you click setup db at the beginning, it will stay on the page.
Enter the directory to view the code cd / var/www/html/sqli-labs/sql-connections
There are seven files under the directory
# steps
# 0x00 modification function
Change all mysql_xxx () to mysqli_xxx
Use the combination of sed+grep
Sed-I "s/mysql_/mysqli_/g" `grep mysql_-rl. / `
# 0x01 modifies function parameters
Since connection is optional under mysql_error () function, and connection becomes required under mysqli_error (), you need to change mysql_error () to mysql_error ($con).
Sed-I s / "mysql_error ()" / "mysqli_error (\ $con)" / g `grep "mysql_error ()"-rl. / `
Mysql_query ($sql) under php5.0 can be queried.
Mysql_query under php7.0 ($con,$sql)
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.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.