Skip to content

Commit 869d4e1

Browse files
Merge pull request #17 from StrangeRanger/dev
2 parents f020d4d + 36ed5d2 commit 869d4e1

File tree

6 files changed

+77
-60
lines changed

6 files changed

+77
-60
lines changed

CHANGELOG.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
# Changelog
1+
# Changelog Information
22

3-
All notable changes to each individual script is located on it's corresponding [wiki page](https://github.com/StrangeRanger/macos-security-scripts/wiki).
4-
5-
The format is (mostly) based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
3+
This repository consists of multiple tools and scripts, each with its own lifecycle and changelog. Please refer to the changelog of the respective tool or script for more information.

CODE_OF_CONDUCT.md

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -14,22 +14,22 @@ appearance, race, religion, or sexual identity and orientation.
1414
Examples of behavior that contributes to creating a positive environment
1515
include:
1616

17-
* Using welcoming and inclusive language
18-
* Being respectful of differing viewpoints and experiences
19-
* Gracefully accepting constructive criticism
20-
* Focusing on what is best for the community
21-
* Showing empathy towards other community members
17+
- Using welcoming and inclusive language
18+
- Being respectful of differing viewpoints and experiences
19+
- Gracefully accepting constructive criticism
20+
- Focusing on what is best for the community
21+
- Showing empathy towards other community members
2222

2323
Examples of unacceptable behavior by participants include:
2424

25-
* The use of sexualized language or imagery and unwelcome sexual attention or
26-
advances
27-
* Trolling, insulting/derogatory comments, and personal or political attacks
28-
* Public or private harassment
29-
* Publishing others' private information, such as a physical or electronic
30-
address, without explicit permission
31-
* Other conduct which could reasonably be considered inappropriate in a
32-
professional setting
25+
- The use of sexualized language or imagery and unwelcome sexual attention or
26+
advances
27+
- Trolling, insulting/derogatory comments, and personal or political attacks
28+
- Public or private harassment
29+
- Publishing others' private information, such as a physical or electronic
30+
address, without explicit permission
31+
- Other conduct which could reasonably be considered inappropriate in a
32+
professional setting
3333

3434
## Our Responsibilities
3535

@@ -55,7 +55,7 @@ further defined and clarified by project maintainers.
5555
## Enforcement
5656

5757
Instances of abusive, harassing, or otherwise unacceptable behavior may be
58-
reported by contacting the project team at [email protected]. All
58+
reported by contacting the project team at [email protected]. All
5959
complaints will be reviewed and investigated and will result in a response that
6060
is deemed necessary and appropriate to the circumstances. The project team is
6161
obligated to maintain confidentiality with regard to the reporter of an incident.

LICENSE

Lines changed: 2 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,3 @@
1-
MIT License
1+
# Repository License Information
22

3-
Copyright (c) 2020-2024 Hunter T. (StrangeRanger)
4-
5-
Permission is hereby granted, free of charge, to any person obtaining a copy
6-
of this software and associated documentation files (the "Software"), to deal
7-
in the Software without restriction, including without limitation the rights
8-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9-
copies of the Software, and to permit persons to whom the Software is
10-
furnished to do so, subject to the following conditions:
11-
12-
The above copyright notice and this permission notice shall be included in all
13-
copies or substantial portions of the Software.
14-
15-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21-
SOFTWARE.
3+
This repository contains multiple tools and scripts, each governed by its own license. Please refer to the individual files for more information.

hardening/Root Locker/CHANGELOG.md

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# Changelog
2+
3+
All notable changes to this project will be documented in this file.
4+
5+
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
6+
7+
## v1.0.3 - 2024-04-13
8+
9+
### Changed
10+
11+
- Improved documentation of code.
12+
13+
## v1.0.2 - 2022-07-12
14+
15+
### Changed
16+
17+
- Changed how the variables used to change the color of output text, are formatted, in the hopes of increasing portability.
18+
19+
## v1.0.1 - 2020-09-20
20+
21+
### Changed
22+
23+
- Renamed file.
24+
25+
## v1.0.0 - N/A
26+
27+
- Initial creation.

hardening/Root Locker/root-locker

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
#!/usr/bin/env bash
2+
#
3+
# This script locks and removes the root account's password (if one is set). This
4+
# prevents users from successfully logging into the root account via su. Note that it
5+
# doesn't not prevent users from becoming root via methods such as sudo su.
6+
#
7+
# Version: v1.0.3
8+
# License: MIT License
9+
# Copyright (c) 2020-2024 Hunter T. (StrangeRanger)
10+
#
11+
########################################################################################
12+
####[ Variables ]#######################################################################
13+
14+
15+
red="$(printf '\033[1;31m')"
16+
nc="$(printf '\033[0m')"
17+
18+
19+
####[ Prepping ]########################################################################
20+
21+
22+
## Check if the script was executed with root privilege.
23+
if [[ $EUID = 0 ]]; then
24+
echo "${red}Do NOT run this script as root or with root privilege${nc}" >&2
25+
echo -e "\nExiting..."
26+
exit 1
27+
fi
28+
29+
####[ Main ]############################################################################
30+
31+
read -rp "We will now disable the root account. Press [Enter] to continue."
32+
dsenableroot -d

hardening/root-locker

Lines changed: 0 additions & 22 deletions
This file was deleted.

0 commit comments

Comments
 (0)