An open API service indexing awesome lists of open source software.

https://github.com/sharp119/demo_repo


https://github.com/sharp119/demo_repo

Last synced: 2 months ago
JSON representation

Awesome Lists containing this project

README

        


Logo

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
```