Wrote a Python script to ensure users passwords are long enough and complex enough to withstand brute-force attacks. This means each password requires a length of at least 8 characters and utilizes at least one special character. Additionally, the script keeps the website protected by safeguarding against common web attacks such as cross site scripting, SQL injection, directory traversal, and bash shell injections.
Cross site scripting is the process of implementing malicious code as input, which can then manipulate the site to perform unwanted actions. a SQL injection deals with either updating, reading, writing, or deleting information via a relational database. Directory traversal is the process of moving throughout directories to access files that should not be easily obtainable. Lastly a bash shell injection is what happens when an adversary utilizes bash commands to gain information about the user or host server.