当前位置:网站首页>Penetration tool environment - installing sqli labs in centos7 environment
Penetration tool environment - installing sqli labs in centos7 environment
2022-06-25 12:33:00 【Litbai_ zhang】
A particularly attentive introduction
sqli-labs It's a SQL Penetration environment for injection testing
The installation process
Before building, we need to have lamp Environment
install Apache Server for
yum install httpd
Then start Apache
service httpd start
see Apache state
service httpd status
Set up httpd At run level 2、3、4、5 In all cases on The state of ( If you find a test php When the web page displays the source code , Try this code again )
chkconfig --level 2345 httpd on
firewall-cmd --permanent --zone=public --add-service=httpd
install MySQL
// Because the latest version linux The system starts , The default is Mariadb
instead of mysql~//
Check whether the system is equipped with mysql, Returning a null value indicates that... Is not installed
rpm -qa |grep mysql
//yum install Although executable , But it's just for updating Mariadb Of //
wget
http://repo.mysql.com/mysql-community-release-el7-5.noarch.rpm
install mysql-community-release-el7-5.noarch.rpm
rpm -ivh mysql-community-release-el7-5.noarch.rpm
install Mysql
yum install mysql-server
Check again after installation MySQL
rpm -qa | grep mysql
If the error message contains
Error: Package: mysql-community-libs-5.6.35-2.el7.x86_64 (mysql56-community) Requires: libc.so.6(GLIBC_2.17)(64bit) Error: Package: mysql-community-server-5.6.35-2.el7.x86_64 (mysql56-community) Requires: libc.so.6(GLIBC_2.17)(64bit) Error: Package: mysql-community-server-5.6.35-2.el7.x86_64 (mysql56-community) Requires: systemd Error: Package: mysql-community-server-5.6.35-2.el7.x86_64 (mysql56-community) Requires: libstdc++.so.6(GLIBCXX_3.4.15)(64bit) Error: Package: mysql-community-client-5.6.35-2.el7.x86_64 (mysql56-community) Requires: libc.so.6(GLIBC_2.17)(64bit) You could try using --skip-broken to work around the problem You could try running: rpm -Va --nofiles --nodigest
solve :
yum install glibc.i686
yum list libstdc++*
Reset password
First log in
mysql -u root
It is possible to report such an error when logging in :
ERROR 2002 (HY000): Can’t connect to local MySQL server through socket ‘/var/lib/mysql/mysql.sock’ (2)
as a result of /var/lib/mysql The access rights of . Here's the order /var/lib/mysql The owner of is changed to the current user
chown -R root:root /var/lib/mysql
Restart the service
service mysqld restart
land MySQL Reset password
mysql -u root
mysql > use mysql;
mysql > update user set password=password(‘123456’) where user=‘root’;
mysql > exit;
restart Mysq service
service mysqld restart
install PHP
yum install php.x86_64 php-mysql.x86_64 php-pear php-pear-DB php-gb
download sqli-labs
https://github.com/Audi-1/sqli-labs
After that, unzip it and put it in the directory of the website , Xiaobai's is in /home/www/htdocs/ Next . Then open the file sqli-labs/sql-connections/db-creds.ins, hold IP Change the address and database password to correct to access .
边栏推荐
- 19、wpf之事件转命令实现MVVM架构
- 一款好用的印章设计工具 --(可转为ofd文件)
- The dist function of R language calculates the distance between two samples in dataframe data, returns the distance matrix between samples, and specifies the distance calculation method through the me
- Tidb common commands
- 【OceanBase】OceanBase简介及其与MySQL的比较
- Upgrade opsenssh to 8.8p1
- ARM V7 连续加载/存储
- JS monitors the width and height changes of div
- Windows下MySQL的安装和删除
- [oceanbase] Introduction to oceanbase and its comparison with MySQL
猜你喜欢
一款好用的印章设计工具 --(可转为ofd文件)
Pd1.4 to hdmi2.0 adapter cable disassembly.
ECSHOP quickly purchases goods, simplifies the shopping process, and improves the user experience through one-step shopping
K8s, docker compose install MySQL 8.0.18
刷入Magisk通用方法
ECSHOP video list_ ECSHOP uploading video, video classification, video list playing video function
plt. GCA () picture frame and label
Execution order of MySQL query statements join, on and where
Dark horse shopping mall ---2 Distributed file storage fastdfs
What is the primordial universe
随机推荐
Execution order of MySQL query statements join, on and where
Fun pocket mall -- sharing the development source code of fun pocket app system
ECSHOP video list_ ECSHOP uploading video, video classification, video list playing video function
Understanding and construction of devsecops and Devops
ECSHOP commodity page multi-attribute batch purchase plug-ins ECSHOP wholesale plug-ins multi-attribute order placing, multi-attribute batch purchase of commodities
thinkphp3.2.5 GIF. class. php for php7.4
ECSHOP product attribute color specification size stock item No. automatic combination
R语言dist函数计算dataframe数据中两两样本之间的距离返回样本间距离矩阵,通过method参数指定距离计算的方法、例如欧几里得距离
Mpai data science platform random forest classification \ explanation of regression parameter adjustment
R language uses the multinom function of NNET package to build an unordered multi classification logistic regression model, and uses the summary function to obtain the summary statistical information
Dynamic proxy
ARM V7 ldr str 内存访问
ECSHOP commodity wholesale multi attribute multi specification multi inventory batch purchase ECSHOP wholesale plug-in ECSHOP multi attribute order
Zunpin Yongyao advertising e-commerce system -- Zunpin Yongyao advertising e-commerce app system development source code sharing
Rank sum ratio comprehensive evaluation method for common models in mathematical modeling
19、wpf之事件转命令实现MVVM架构
High imitation blue playing network disk file sharing to make money network disk PHP system source code
R语言使用glm函数构建泊松对数线性回归模型处理三维列联表数据构建饱和模型、epiDisplay包的poisgof函数对拟合的泊松回归模型进行拟合优度检验(检验模型效果)
The source code of the hottest online disk money making system in 2022 imitates Lanzou online disk / Chengtong online disk / sharing money making cloud disk system / online disk VIP Download System
揭秘GaussDB(for Redis):全面對比Codis