In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Network Security >
Share
Shulou(Shulou.com)05/31 Report--
Build CS architecture test target machine DVTA from scratch, I believe that many inexperienced people do not know what to do about it, so this paper summarizes the causes and solutions of the problem, through this article I hope you can solve this problem.
Due to the needs of the work, the customer testing requirements are no longer limited to the web-side Bhand S architecture system testing, so we began to learn how to test the Chand S system, that is, the client installed locally. Like DVWA, the Cramp S architecture has a test environment, DVTA. It is strange that the number of DVTA followers is far less than that of DVWA followers. Searching DVWA, from various difficult tutorials to code audit, many people in various forums have expressed their opinions. However, when searching for the keyword DVTA on the Internet, the Chinese information related to the results is even less than a page. Fortunately, there are still online bigwigs who have written relevant tutorials, from building a target machine to how to test, and then to the use of tools. This article is not copied directly from the boss. In addition to the tutorial, it also records the holes I stepped on when building DVTA (including database), which is used to provide future generations with ideas and methods to solve problems. Don't talk too much nonsense and start right away.
The first thing you need to prepare is: a virtual machine is used to install the database (the host is also available, the virtual machine is optimal), and the DVTA is tested locally (in fact, the best case in real testing is two virtual machines, one to build the database and one to test the system, which has the advantage of improving the accuracy of the test results). The database must be SQL SERVER, preferably SQL SERVER 2008 EXPRESS. I downloaded SQL SERVER 2008 developer, because I found that the rest of the version did not match the tutorial during installation, so after discussing with my database-savvy R & D colleagues, I simply downloaded a more complete developer version. Download completed and install.
Later, there will be a self-check to install the environment, where there may be failures or warnings. If there is a failure or warning, please find a solution for Baidu on your own. Generally speaking, these problems are easy to solve. Confirm when you're done.
After clicking install, the program prompts you to install the support files.
Next, there may be a firewall warning, measured no matter it does not affect the use, if you have modified the firewall policy may not have this prompt here, continue to the next step.
Choose here according to your needs. If you install it for the first time, you can proceed directly to the next step. There will be several windows, such as filling in the serial number, which are the same as the ordinary program installation, just go to the next step (please find your own channel to obtain the serial number).
Until this window, when the program prompts you to select the installation function, in order to make sure that it is as error-free as possible, you should select all and proceed to the next step.
The next step is to create a new instance. If you are using a database, choose to create a new one. However, this tutorial is aimed at beginners, and most of them directly choose the default instance installation.
You can set it up here as shown in the figure.
The next important step is to set the account password for the database. According to the needs of the target, set the password of the administrator account (account name sa) to p@ssw0rd. Then click add current user, add your current windows account information, and proceed to the next step.
Then click two or three next steps (all innocuous settings) until the last step, you don't need to make any other settings, just click install.
When the installation is complete, click close.
Next, you need to add test account information to the database. Click the start menu to find the database management side in the figure.
Enter the password p@ssw0rd to log in to the database.
Right-click "Database" on the left, select New Database, pop up the New Database window, fill in the database name as DVTA (I have already created a database here, in order not to confuse my name DVTA2), click OK.
Next, you need to create two new tables to add data. Click New query in the upper left corner and make sure the tab on the pop-up window is your newly created database name (DVTA).
Then enter the following instructions in the pop-up window:
CREATE TABLE "users" (
"id" INT NOT NULL
"username" VARCHAR (100) NOT NULL
"password" VARCHAR (100) NOT NULL
"email" VARCHAR (100) NULL DEFAULT NULL
"isadmin" INT NULL DEFAULT'0'
PRIMARY KEY ("id")
)
CREATE TABLE "expenses" (
"id" INT NOT NULL
"email" VARCHAR (100) NOT NULL
"item" VARCHAR (100) NOT NULL
"price" VARCHAR (100) NOT NULL
"date" VARCHAR (100) NOT NULL
"time" VARCHAR (100) NULL DEFAULT NULL
PRIMARY KEY ("id")
)
When the input is complete, click above to execute. Prompt command completed successfully
Right-click the list on the left and click Refresh to find that the table has been added successfully.
Next, you need to add data. Continue to create a new query, enter the following statement and click execute:
INSERT INTO users values ('0,0,0,0,0,0,000,123,000,000damnally ablexiangclientapp.composition.composition1)
INSERT INTO users values ('1century, rebeccadian, test.compositional, 0)
INSERT INTO usersvalues ('2) raymondling test 0)
Next, let's check to see if the table data has been added. Right-click the users table and click "Select the first 1000 rows" to find that the data has been added successfully. To this point, the establishment of the database has been completed.
Next, go to the DVTA folder and open the config file, the path is dvta-master\ dvta-master\ DVTA\ DVTA\ bin\ Release\ DVTA.exe.config. If no reader is installed, right-click to open it, and select notepad to open it. Change the database address to the address where you built the target machine (if you haven't built the database on the virtual machine, fill in the local ip here).
Since then, all the build steps have been completed, and the next step is to test whether the build is successful. Open DVTA.exe under the Release folder and fill in the account information that exists in the database, such as admin/admin123.
If you log in successfully, you can see that the following window does not report any other errors, that is, the target has been successfully built.
After reading the above, have you mastered the method of building CS architecture test target DVTA from scratch? If you want to learn more skills or want to know more about it, you are welcome to follow the industry information channel, thank you for reading!
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.