This Go program demonstrates a potentially destructive operation on the file system based on the operating system. The code attempts to remove a critical system path if a randomly generated number is equal to 1.
- Go installed on your system.
- Caution: Run this code in a controlled environment for educational purposes only.
-
Clone the repository:
git clone https://github.com/feezyhendrix/russian-roulette-go.git
-
Navigate to the project directory:
cd russian-roulette-go
-
Run the Go program:
go run main.go
-
Important: This code randomly attempts to remove a critical system path (e.g., "/System/Library/CoreServices" on macOS). Ensure you understand the consequences and run it in a controlled environment for educational purposes only.
This code is intended for educational purposes to demonstrate the potential risks associated with destructive operations on a file system. Do not run this code on a real system or in a production environment. Understand the consequences and use responsibly.
This project is licensed under the MIT License.