1.1.0 • Published 5 years ago

cschardening v1.1.0

Weekly downloads
1
License
MIT
Repository
-
Last release
5 years ago

CSCHARDENING


Running cschardening will complete the following tasks:

  1. Install Python, Fail2Ban, IPTState, and SSH
  2. Configure SSH with a secure configuration file
  3. Secure sysctl file
  4. Check for empty passwords, lock accounts with empty passwords, and log locked accounts in /var/log/cschardening
  5. Sets important file permissions
  6. Disables system accounts for non-root users
  7. Checks for files without owners and logs them
  8. Checks for users with UID set to 0 and locks them if not root.

How to run without npm


Run the following commands:

  1. sudo apt-get install git python
  2. git clone https://github.com/chamilitary-man/cschardening.git
  3. cd cschardening
  4. sudo python scrap.py

How to run with npm


Run the following commands:

  1. sudo apt-get install npm
  2. sudo npm i cschardening -g
  3. sudo cschardening

Logs


Logs are stored in /var/log/cschardening.


Configuration


You may configure this code to whatever will work best for you. The SSH, Sysctl, and sysauth/passwordauth configuration files can be found in config_tmp. Shell scripts can be found in shell. You may disable parts of this code in the scrap.py file. Simply remove, add classes as you see fit.

1.1.0

5 years ago

1.0.9

5 years ago

1.0.8

5 years ago

1.0.7

5 years ago

1.0.6

5 years ago

1.0.5

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago