当前位置:网站首页>Necessary skills for test and development: actual combat of security test vulnerability shooting range
Necessary skills for test and development: actual combat of security test vulnerability shooting range
2022-06-28 04:33:00 【TEST_ Two black】
Security in the Internet industry , It's a professional one , And a sensitive area , So-called " A thought becomes a Buddha , I'm obsessed with it ", Security technology is used properly , For your product 、 Website better escort , And if the mind is not right , Take advantage of security loopholes to make profits , It is easy to cause unnecessary illegal liability .
In daily life, it's easy to be ignored , Without authorization , Test the website for penetration attack , It's also a non compliant operation , It's about laws and regulations . So for you in the process of learning security testing , Generally, it is recommended to set up a safety drill shooting range environment locally , Try to avoid testing unauthorized websites directly .
Mastering security testing is a hard skill for advanced test development engineers , Today's article , Let's share two common safety test and drill range projects .
▌ WebGoat
WebGoat By OWASP Developed by the organization to carry out Web The loophole experiment is Java Range procedures . The training courses offered are 30 Multiple , These include : Cross site scripting attacks (XSS)、 Access control 、 Thread safety 、 Operations hide fields 、 Control parameters 、 Weak conversation cookie、SQL Blind note 、 Digital SQL Inject 、 String type SQL Inject 、web service 、Open Authentication invalid 、 dangerous HTML Annotations, etc. .WebGoat Provides a range of web Safety learning course , Some courses also offer video demonstrations , Guide users to exploit these vulnerabilities .
Project address :
https://github.com/WebGoat/WebGoat
1.1 Instructions for installation preconditions
Go to the project address , choice WebGoat Of jar edition , because WebGoat 8 Of jar The file has been brought with it tomcat And the database , So there's no need to install anything else tomcat and mysql, Just install jdk Used to run the jar File can .

It should be noted that ,WebGoat8.0 Version above , Installation dependency required JDK11 above .
When the download is complete , among :
webgoat-server-8.1.0.jar The corresponding is webgoat service , Used to start WebGoat.
webwolf-8.1.0 Another secondary system with vulnerabilities , Non essential .
1.2 Starting method
adopt java -jar xxx.jar To start, respectively, webgoat and webwolf Two jar Program , for example :

After successful execution , You can use the link http://127.0.0.1:8080/WebGoat visit Webgoat.

First, you need to inject an account , And then after landing , according to WebGoat Test one by one in the side order of .
at present WebGoat Divided into three categories ,Lesson、Challenges/CTF、WebWolf.
among Lesson For the course , Each course includes vulnerability descriptions , origin , And practice ,

WebWolf The start-up mode is basically the same ,WebWolf The default port is 9090, The login address http://127.0.0.1:9090/WebWolf/login,WebWolf My account with WebGoat It is interlinked. , Use WebGoat Your account can be directly logged in WebWolf.
▌ DVWA
DVWA(Damn Vulnerable Web Application) It's a famous loophole range , use PHP+Mysql Write a set for routine WEB Loophole teaching and testing WEB Vulnerability test procedure . Contains SQL Inject 、XSS、 Blind injection and other common security vulnerabilities . It aims to provide a legal environment for security professionals to test their professional skills and tools , help web Developers have a better understanding of web The process of applying security precautions .
Official website :https://dvwa.co.uk/
DVWA There are ten modules , Namely :
1.Brute Force( violence ( Crack ))
2.Command Injection( Command line injection )
3.CSRF( Cross-site request forgery )
4.File Inclusion( File contains )
5.File Upload( Upload files )
6.Insecure CAPTCHA( Insecure verification code )
7.SQL Injection(SQL Inject )
8.SQL Injection(Blind)(SQL Blind note )
9.XSS(Reflected)( Reflection Cross Station script )
10.XSS(Stored)( Stored cross site scripts )
2.1 Construction method
If it's in Windows To build DVWA, The installation process is mainly divided into two steps :
phpstudy Download and install .
DVWA Download and configure .
1、 because DVWA Need to run in a database / Server and other environments , We generally choose the... Integrated with these environments phpStudy: https://www.xp.cn/, This tool can be downloaded from the official website , as follows :

2、 Download complete , according to requirements , It's just a fool installation , After installation , Turn on the boot Apache、MySQL Two services .

3、 download DVWA, Extract the package to phpstudy Of WWW Under the table of contents . And find DVWA\config Below config.ini.php.dist file , Change the user name and password , Modify as needed . Finally, the suffix .dist Delete , The file named :config.inc.php, The contents are as follows :
<?php
# If you are having problems connecting to the MySQL database and all of the variables below are correct
# try changing the 'db_server' variable from localhost to 127.0.0.1. Fixes a problem due to sockets.
# Thanks to @digininja for the fix.
# Database management system to use
$DBMS = 'MySQL';
#$DBMS = 'PGSQL'; // Currently disabled
# Database variables
# WARNING: The database specified under db_database WILL BE ENTIRELY DELETED during setup.
# Please use a database dedicated to DVWA.
#
# If you are using MariaDB then you cannot use root, you must use create a dedicated DVWA user.
# See README.md for more information on this.
$_DVWA = array();
$_DVWA[ 'db_server' ] = '127.0.0.1';
$_DVWA[ 'db_database' ] = 'dvwa';
$_DVWA[ 'db_user' ] = 'root';
$_DVWA[ 'db_password' ] = '123456';
$_DVWA[ 'db_port'] = '3306';
$_DVWA[ 'allow_url_include'] = 'on';
$_DVWA[ 'allow_url_fopen'] = 'on';
# ReCAPTCHA settings
# Used for the 'Insecure CAPTCHA' module
# You'll need to generate your own keys at: https://www.google.com/recaptcha/admin
$_DVWA[ 'recaptcha_public_key' ] = 'mikezhou';
$_DVWA[ 'recaptcha_private_key' ] = 'mikezhou';
# Default security level
# Default value for the security level with each session.
# The default is 'impossible'. You may wish to set this to either 'low', 'medium', 'high' or impossible'.
$_DVWA[ 'default_security_level' ] = 'impossible';
# Default PHPIDS status
# PHPIDS status with each session.
# The default is 'disabled'. You can set this to be either 'enabled' or 'disabled'.
$_DVWA[ 'default_phpids_level' ] = 'disabled';
# Verbose PHPIDS messages
# Enabling this will show why the WAF blocked the request on the blocked request.
# The default is 'disabled'. You can set this to be either 'true' or 'false'.
$_DVWA[ 'default_phpids_verbose' ] = 'false';
?>
4、 visit :http://localhost/dvwa/setup.php
Click create database .

5、 Create success , Will automatically jump to the login page , User name and password are required . Default user name :admin , Default password :password.

Come here , We're done , Security loopholes, the construction of range environment . What about? , Have you learned ?
边栏推荐
- [applet] solution document using font awesome Font Icon (picture and text)
- The growth summer challenge is coming | learn and create two major tracks, and start the tutor registration!
- 11_ Deliberate practice and elaboration
- Multithreading and high concurrency III: AQS underlying source code analysis and implementation classes
- OracleData安装问题
- Web3来临时的风口浪尖
- E-week finance Q1 mobile banking has 650million active users; Layout of financial subsidiaries in emerging fields
- Analyse complète annuelle du marché chinois de l'audio en 2022
- Go语言学习教程(十四)
- TFTLCD display experiment of mini plate based on punctual atom stm32
猜你喜欢

Secouer le son et se battre ~ prêter attention au blogueur

02 mongodb data types, important concepts and common shell instructions

From meeting a big guy to becoming a big guy, shengteng AI developer creation day brings infinite possibilities to developers

抖音实战~关注博主

27 years, Microsoft IE is over!

MySQL gets the current date of the year

Why is the frame rate calculated by opencv wrong?

From zero to one, I will teach you to build a "search by text and map" search service (I)

云厂商为什么都在冲这个KPI?

Recommended by Alibaba P8, Fiddler packet capturing tool (I)
随机推荐
leetcode:714. 买卖股票的最佳时机含手续费【dp双状态】
[small program practice series] e-commerce platform source code and function implementation
有人用cdc同步到mysql发生过死锁吗?
inherit
Multithreading and high concurrency six: source code analysis of thread pool
Aspnetcoreratelimit rate limit interface access limit current limit control
Multithreading and high concurrency II: detailed introduction to volatile and CAS
What is the process of en 1101 flammability test for curtains?
June 27, 2022: give a 01 string with a length of N. now please find two intervals so that the number of 1 and the number of 0 in the two intervals are equal. The two intervals can intersect, but not c
The growth summer challenge is coming | learn and create two major tracks, and start the tutor registration!
JVM I: introduction to JVM and understanding of class files
Learning about DC-DC step-down chip of sy8120i (12V reduced to 3.3V)
Principle of event delegation
【Proteus仿真】定时器1外部计数中断
Is it true that qiniu business school gives away securities accounts? Is it safe to open an account
JS逆向之巨量星图sign签名
Problems with cat and dog queues
Password encryption MD5 and salt treatment
RT-Thread 双向链表(学习笔记)
first. Net core MVC project