Java Date Tool Class–Get the number of working days between two dates (only Saturdays and Sundays are removed, but holidays are not removed)…

Get the number of working days between two dates (only Saturdays and Sundays are removed, but holidays are not removed) Other references: Workday calculation tool class between two dates https://www.cnblogs.com/zzlp/p/5166605.html https://blog.csdn.net/weixin_30731305/article/details/99756422 Method 1. Use a loop to traverse each day of the two dates. When the date does not belong to a Saturday or Sunday, […]

It’s 2023! Don’t make these mistakes again, WEB automated testing implementation and misunderstandings!

Foreword: With the continuous development and popularization of Internet technology, the development and testing of WEB applications are becoming increasingly important. WEB automated testing is an important part of Web application testing, and it is also a popular testing method currently. This article will introduce in detail the implementation of WEB automated testing and misunderstandings. […]

Understanding sun.misc.Unsafe

Foreword The following sun.misc.Unsafe source code and demo are based on jdk1.7; Recently, I have been looking at the source code in J.U.C. Many of them use the sun.misc.Unsafe class. I don’t know much about it, but it seems a bit unsatisfactory, so I plan to do an analysis of the source code and usage […]

PKIX path building failed, SunCertPathBuilderException: unable to find valid certification path to re…

Background: There is a project that needs to call the API of gitlab, and the development phase is carried out on Windows. After development is completed and deployed to Linux, the following error is reported when requesting the gitlab interface: 2023.03.22 10:30:39.522 ERROR [http-nio-8089-exec-2] org.apache.juli.logging.DirectJDKLog 181 log – Servlet.service() for servlet [dispatcherServlet] in context with […]

OSCP Series Shooting Range-Esay-SunsetNoontideNanny Level

OSCP series shooting range-Esay-SunsetNoontide Directory OSCP Series Shooting Range-Esay-SunsetNoontide Summarize Preparation Information collection-port scanning Target open port collection Target port corresponding service detection Information collection-port testing chatgpt learning Exploit-getwebshell Exploit-unrealircd Intranet travel-getshell interactive shell FLAG1 Get Information collection-Intranet basic information collection Detect the distribution version of Linux operating system Detecting the kernel version of a […]

OSCP series shooting range-Esay-SunsetDecoy nanny level

OSCP series shooting range-Esay-SunsetDecoy nanny level Directory OSCP series shooting range-Esay-SunsetDecoy nanny level Summarize Preparation Information collection-port scanning Target open port collection Target port corresponding service detection Information collection-port testing 22-SSH port information collection 22-SSH port version information and MSF utilization 22-Login methods supported by SSH protocol 22-SSH manual login attempt (none) 22-SSH weak password […]

Sunshine mental health website based on Java+ssm+vue

Project introduction This Sunshine Mental Health website system is aimed at the actual needs of the current Sunshine Mental Health website. Based on actual work, it analyzes the problems existing in the Sunshine Mental Health website system in the past and improves the user experience. Using a computer system to manage information replaces the manual […]

Two-dimensional array arr[][] and secondary pointer **arr Personal misunderstanding

Recently, a former colleague asked: “How does a function return a two-dimensional array pointer, and how does the outer application receive this pointer so that it can access the array elements in the form arr[][]?” I haven’t dealt with it before. After experiencing similar cases, I mistakenly thought that two-dimensional array names and secondary pointers […]

Detailed steps for setting up the Red Sun shooting range environment

1: Environment setup# 1. Download the image file. 2. Just start vmware directly. Here I use my win10 virtual machine as the attack machine, set to dual network card NAT, vm2 (192.168.234.131) Set win7 as dual network cards, vm1(192.168.52.143), vm2(192.168.234.130) Set win08 single network card vm1 (192.168.52.138), win2k3 as single network card vm1 (192.168.52.141) In […]