{"id":24159453,"url":"https://github.com/exfil0/5g-network-slicing-vulnerability","last_synced_at":"2025-08-30T16:13:29.335Z","repository":{"id":271477290,"uuid":"913586776","full_name":"exfil0/5G-NETWORK-SLICING-VULNERABILITY","owner":"exfil0","description":"Below is a complete Python script that implements a single-node or distributed 5G slicing lab wizard.","archived":false,"fork":false,"pushed_at":"2025-01-08T02:41:27.000Z","size":431,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-02T02:34:19.356Z","etag":null,"topics":["5g-core-network","5g-simulation","5gvulnerability","dos-attack","fuzzing","location-tracking","poc","slicing"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/exfil0.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2025-01-08T01:18:31.000Z","updated_at":"2025-02-10T14:19:05.000Z","dependencies_parsed_at":null,"dependency_job_id":"28b2e5f4-eac1-499d-9db4-40562fe8365b","html_url":"https://github.com/exfil0/5G-NETWORK-SLICING-VULNERABILITY","commit_stats":null,"previous_names":["exfil0/5g-network-slicing-vulnerability"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/exfil0/5G-NETWORK-SLICING-VULNERABILITY","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/exfil0%2F5G-NETWORK-SLICING-VULNERABILITY","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/exfil0%2F5G-NETWORK-SLICING-VULNERABILITY/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/exfil0%2F5G-NETWORK-SLICING-VULNERABILITY/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/exfil0%2F5G-NETWORK-SLICING-VULNERABILITY/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/exfil0","download_url":"https://codeload.github.com/exfil0/5G-NETWORK-SLICING-VULNERABILITY/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/exfil0%2F5G-NETWORK-SLICING-VULNERABILITY/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":272873343,"owners_count":25007512,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-30T02:00:09.474Z","response_time":77,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["5g-core-network","5g-simulation","5gvulnerability","dos-attack","fuzzing","location-tracking","poc","slicing"],"created_at":"2025-01-12T15:17:31.957Z","updated_at":"2025-08-30T16:13:29.329Z","avatar_url":"https://github.com/exfil0.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 5G NETWORK SLICING VULNERABILITY (PoC) - RESEARCH IN PROGRESS...\n\n## 5G Lab Setup \u0026 Wizard Script (Single-Node or Distributed)\n\n## Overview\nThis script sets up a 5G slicing lab with the following features:\n\n- **Dependency Installation**: Automatically installs required packages and updates the system.\n- **Builds Components**: Compiles and installs open5GS (5G Core) and srsRAN (RAN simulator).\n- **Wizard Interface**: Provides interactive menus for single-node or distributed testing scenarios.\n- **Pentesting Tools**: Includes basic scanning, location tracking demos, and DoS simulations.\n\n### **Important Notes**\n- Designed for **Ubuntu/Debian-based systems** (e.g., Ubuntu 20.04, 22.04).\n- Must be run as **root** or via **sudo**.\n- For distributed deployments, ensure **SSH connectivity** and `paramiko` are configured.\n- Intended for **lab or demonstration purposes only**. Do not use on production systems.\n\n---\n\n## Script Details\n\n### Script Description\n```python\n#!/usr/bin/env python3\n\"\"\"\n5G Lab Setup \u0026 Wizard Script (Single-Node or Distributed)\nAuthor: ScaryByte\n\nDescription:\n  - Installs and upgrades necessary packages.\n  - Builds open5GS (5G Core) and srsRAN (RAN simulator) from source.\n  - Provides a wizard for single or distributed scenarios.\n  - Allows basic pentesting tasks (Nmap, Hydra, log checks, DoS scripts).\n\nUsage:\n  sudo ./LAB-PoC.py\n\nDisclaimer:\n  This script is intended for demonstration in an isolated lab environment only.\n  Unauthorized testing on production systems is illegal and unethical.\n\"\"\"\n```\n\nFor the complete script, refer to the [source code](./LAB-PoC.py).\n\n---\n\n## Usage Instructions\n\n### Make the Script Executable\n```bash\nchmod +x LAB-PoC.py\n```\n\n### Run the Script\n```bash\nsudo ./LAB-PoC.py\n```\n\n### Select Scenario\n\n#### **Option 1: Single-Node Setup**\n- Installs open5GS and srsRAN locally.\n- Configures and starts open5GS services.\n- Launches a wizard for:\n  - Basic Nmap scans\n  - Hydra brute force demos\n  - Location tracking (log search)\n  - Sample DoS attach flood simulation\n\n#### **Option 2: Distributed Setup**\n- Prompts for remote host details (IP, username, password/key, role).\n- Builds open5GS or srsRAN on remote hosts based on roles.\n- Configures distributed environments.\n- Launches a wizard for:\n  - Remote scanning\n  - Remote log searches\n  - Distributed DoS demonstrations\n\n---\n\n## Wizard Features\n\n### Single-Node Wizard\n1. Perform basic Nmap scan on localhost.\n2. Launch Wireshark.\n3. Hydra brute force example on local orchestrator.\n4. Location tracking demo (log search).\n5. DoS attach flood simulation.\n\n### Distributed Wizard\n1. Nmap scan orchestrator/core node.\n2. Launch Wireshark locally.\n3. Hydra brute force on remote orchestrator.\n4. Remote location tracking log search on core node.\n5. Local DoS script demonstration.\n\n---\n\n## Notes\n\n1. For the fake attach flood (`fake_attach.py`), ensure you provide your own script in `~/fake_attach.py`.\n2. Proper IP addressing, routing, and SCTP ports must be configured between AMF/SMF/UPF and the RAN node in distributed setups.\n3. This script forcibly updates and upgrades packages, which may alter your system. Use a clean lab environment.\n4. Missing dependencies (e.g., `paramiko`) are installed automatically during execution.\n\n---\n\n## Disclaimer\nThis script is intended for research and educational purposes only. Unauthorized use on production systems is both illegal and unethical. Always use in a controlled lab environment.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fexfil0%2F5g-network-slicing-vulnerability","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fexfil0%2F5g-network-slicing-vulnerability","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fexfil0%2F5g-network-slicing-vulnerability/lists"}