Skip to content

Commit a169c10

Browse files
committed
update readme
1 parent 6b8b1d1 commit a169c10

File tree

1 file changed

+22
-20
lines changed

1 file changed

+22
-20
lines changed

README.md

Lines changed: 22 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -11,26 +11,6 @@ This project can also be called Java vulnerability code.
1111

1212
Each vulnerability type code has a security vulnerability by default unless there is no vulnerability. The relevant fix code is in the comments or code. Specifically, you can view each vulnerability code and comments.
1313

14-
## Authenticate
15-
16-
### Login
17-
18-
[http://localhost:8080/login](http://localhost:8080/login)
19-
20-
If you are not logged in, accessing any page will redirect you to the login page. The username & password are as follows.
21-
22-
```
23-
admin/admin123
24-
joychou/joychou123
25-
```
26-
27-
### Logout
28-
29-
[http://localhost:8080/logout](http://localhost:8080/logout)
30-
31-
### RememberMe
32-
33-
Tomcat's default JSESSION session is valid for 30 minutes, so a 30-minute non-operational session will expire. In order to solve this problem, the rememberMe function is introduced, and the default expiration time is 2 weeks.
3414

3515
## Vulnerability Code
3616

@@ -143,6 +123,28 @@ mvn clean package -DskipTests
143123
java -jar target/java-sec-code-1.0.0.jar
144124
```
145125

126+
## Authenticate
127+
128+
### Login
129+
130+
[http://localhost:8080/login](http://localhost:8080/login)
131+
132+
If you are not logged in, accessing any page will redirect you to the login page. The username & password are as follows.
133+
134+
```
135+
admin/admin123
136+
joychou/joychou123
137+
```
138+
139+
### Logout
140+
141+
[http://localhost:8080/logout](http://localhost:8080/logout)
142+
143+
### RememberMe
144+
145+
Tomcat's default JSESSION session is valid for 30 minutes, so a 30-minute non-operational session will expire. In order to solve this problem, the rememberMe function is introduced, and the default expiration time is 2 weeks.
146+
147+
146148
## Contributors
147149

148150
Core developers : [JoyChou](https://github.com/JoyChou93).

0 commit comments

Comments
 (0)