https://github.com/sharp119/demo_repo
https://github.com/sharp119/demo_repo
Last synced: 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/sharp119/demo_repo
- Owner: sharp119
- License: mit
- Created: 2023-10-23T20:50:46.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-10-23T23:50:20.000Z (over 1 year ago)
- Last Synced: 2025-02-05T03:51:15.127Z (4 months ago)
- Language: Shell
- Size: 34.2 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
![]()
Demo Repository: Unveiling Hidden Threats 🕵️
An educational repository unveiling the potential risks lurking in GitHub repositories.
Explore the accompanying Medium article »
## Table of Contents
- [Disclaimer](#disclaimer)
- [Repository Structure](#repository-structure)
- [Seemingly Innocent Section](#️seemingly-innocent-section)
- [Getting Started](#getting-started)## :warning: Disclaimer
This repository is created for educational purposes only. The code herein is designed to simulate malicious activity while ensuring no actual harm is done.
## Repository Structure 📂
- `setup.sh` - Shell script to install packages from `requirements.txt` and executes `malicious.py`.
- `malicious.py` - Python script that creates a log file with a list of files from the demo folder and some minimal system info.
- `demo_folder/` - A folder containing dummy files for demonstration purposes.
- `.asset/` - Folder containing above mentioned files.## 🕊️ Seemingly Innocent Section
### Hello World Project 🌍
This section is crafted to mimic a typical GitHub repository. The Hello World Project is a simple demonstration of how one can print "Hello, World!" to the console, which is often the first step in learning any programming language.
## 🚀 Getting Started
**Step 1:** Clone the repository to your local machine
```bash
git clone https://github.com/sharp119/demo_repo.git
```**Step 2:** Navigate to the project directory
```bash
cd demo_repo
```**Step 3:** Run chmod +x to get necessary permissions
```bash
chmod +x setup.sh
```**Step 4:** Run setup.sh to install necessary packages and set up the environment
```bash
./setup.sh
```**Step 5:** Once setup is complete, run hello_world.py to print "Hello, World!" to the console
```bash
python3 hello_world.py
```