{"id":17099818,"url":"https://github.com/jxck-s/pyscanvlan","last_synced_at":"2025-05-13T02:53:19.341Z","repository":{"id":206084289,"uuid":"715436090","full_name":"Jxck-S/PyScanVLAN","owner":"Jxck-S","description":"Python VLAN Scanner for Linux","archived":false,"fork":false,"pushed_at":"2023-11-09T03:03:59.000Z","size":10,"stargazers_count":5,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-01T06:03:08.919Z","etag":null,"topics":["dhcp","lan","network","penetration-testing","pentest","pentesting","python","scanner","vlan"],"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/Jxck-S.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":"2023-11-07T06:15:55.000Z","updated_at":"2025-01-06T03:42:07.000Z","dependencies_parsed_at":null,"dependency_job_id":"5720329e-36ad-4892-98a3-87796c65ba12","html_url":"https://github.com/Jxck-S/PyScanVLAN","commit_stats":null,"previous_names":["jxck-s/pyscanvlan"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Jxck-S%2FPyScanVLAN","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Jxck-S%2FPyScanVLAN/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Jxck-S%2FPyScanVLAN/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Jxck-S%2FPyScanVLAN/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Jxck-S","download_url":"https://codeload.github.com/Jxck-S/PyScanVLAN/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253862777,"owners_count":21975587,"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","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":["dhcp","lan","network","penetration-testing","pentest","pentesting","python","scanner","vlan"],"created_at":"2024-10-14T15:11:29.718Z","updated_at":"2025-05-13T02:53:19.333Z","avatar_url":"https://github.com/Jxck-S.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"## PYScanVLAN\n\nPYScanVLAN is a Python3 program designed for scanning VLANs on a network port by checking all or specified VLAN tags. It is designed to be run on a Linux system that supports the iproute2 commands like `ip`\n\n### Usage\n\n1. Configure the options in the `config.ini` file.\n2. Run the program using the command `python3 PYScanLAN.py`.\n3. The program will scan the specified VLANs and output the results to a JSON.\n\n# Configuration Options\n\nThis section provides explanations for the various configuration options available in the script. Set in the config.ini file\n\n#### `INTERFACE`\n\n- **Description**: Set this variable to the desired network interface.\n- **Example**: `INTERFACE = 'eth1'`\n\n#### `DHCP_WAIT_TIME`\n\n- **Description**: Specifies the wait time (in seconds) for DHCP lease acquisition.\n- **Example**: `DHCP_WAIT_TIME = 15`\n\n#### `CALCULATE_POSSIBLE_HOSTS`\n\n- **Description**: When set to `True`, the script calculates the total possible hosts in each network based on the subnet mask.\n- **Example**: `CALCULATE_POSSIBLE_HOSTS = True`\n\n#### `CALCULATE_SUBNET_MASK`\n\n- **Description**: When set to `True`, the script adds the regular subnet mask (e.g., \"255.255.255.0\") from the CIDR notation (e.g., \"/24\").\n- **Example**: `CALCULATE_SUBNET_MASK = True`\n\n#### `VLAN_CHECK_RANGE_START` and `VLAN_CHECK_RANGE_END`\n\n- **Description**: Specifies the range of VLAN IDs to check.\n- **Example**:\n  ```python\n  VLAN_CHECK_RANGE_START = 1\n  VLAN_CHECK_RANGE_END = 4096\n\n#### `LEASE_FILE_PATH`\n\n- **Description**: Path to the DHCP client lease file. The script uses this file to obtain DHCP configuration details.\n- **Example**: `LEASE_FILE_PATH = '/var/lib/dhcp/dhclient.leases'`\n\nEnsure that this path points to the correct location of the DHCP client lease file on your system. The script relies on the information stored in this file for DHCP-related operations.\n\n### Requirements\n\n- Python 3.x\n- Linux operating system (Preferably Debian; it was developed on Debian)\n- iproute2 on linux\n\n\n#### Example Output\n```json\n{\n    \"detected_networks\": [\n        {\n            \"vlan_id\": \"default\",\n            \"ip_address\": \"100.110.152.81\",\n            \"domain\": \"he.orld.fl.wtsky.net\"\n        },\n        {\n            \"vlan_id\": 6,\n            \"rx_bytes\": 38725,\n            \"ip_address\": \"10.110.6.109\",\n            \"cidr_subnet_mask\": 24,\n            \"possible_host_count\": 254,\n            \"subnet_mask\": \"255.255.255.0\",\n            \"domain\": \"orld.fl.wtsky.net\"\n        },\n        {\n            \"vlan_id\": 10,\n            \"rx_bytes\": 901,\n            \"ip_address\": \"10.110.10.245\",\n            \"cidr_subnet_mask\": 24,\n            \"possible_host_count\": 254,\n            \"subnet_mask\": \"255.255.255.0\"\n        }\n    ]\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjxck-s%2Fpyscanvlan","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjxck-s%2Fpyscanvlan","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjxck-s%2Fpyscanvlan/lists"}