https://github.com/evilbytecode/evil-go
A malicous Golang Package
https://github.com/evilbytecode/evil-go
av evasion evil fud grabber red red-teaming stealer teaming
Last synced: 9 months ago
JSON representation
A malicous Golang Package
- Host: GitHub
- URL: https://github.com/evilbytecode/evil-go
- Owner: EvilBytecode
- License: mit
- Created: 2024-06-20T06:46:22.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-06-27T06:43:51.000Z (over 1 year ago)
- Last Synced: 2025-03-26T08:47:30.523Z (9 months ago)
- Topics: av, evasion, evil, fud, grabber, red, red-teaming, stealer, teaming
- Language: Go
- Homepage:
- Size: 8.79 KB
- Stars: 14
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
- A malicious Golang Package
## Introduction
Evil-Go is a sample Golang package designed to illustrate potentially malicious behavior, akin to "evil-pip" in Python. It demonstrates how a package could execute commands that may harm or compromise a system.
---
## Functionality
The package includes the `utilities` module, which contains a function named `ExecuteCommand`. Depending on the operating system it detects, this function performs different actions:
- **Windows:** Initiates a new `cmd.exe` process to execute commands.
- **Linux:** Prints a message indicating command execution and then exits.
- **Unsupported Operating Systems:** Notifies that the system is not supported and then exits.
This package intentionally demonstrates unsafe practices and potential security risks associated with executing system commands based on system detection within a programming environment. It serves as a cautionary example rather than a recommended practice in software development.
Always exercise caution and adhere to best practices when handling command execution or system interactions in any software project.
### Why I Made This?
- Educational Purposes
- Encourages reviewing source code before execution, promoting best practices.
> :warning: THIS CAN BE VERY DANGEROUS IF USED FOR MALICIOUS PURPOESES