{"id":26169029,"url":"https://github.com/eugeniogiusti/network-analyzer","last_synced_at":"2026-05-05T10:31:36.613Z","repository":{"id":265582150,"uuid":"896289302","full_name":"eugeniogiusti/network-analyzer","owner":"eugeniogiusti","description":"A versatile network troubleshooting script that performs ping, traceroute, DNS lookups, TCP port tests (via Nmap), and captures traffic using tcpdump for advanced analysis.","archived":false,"fork":false,"pushed_at":"2025-03-10T09:19:53.000Z","size":66,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-10T10:27:41.391Z","etag":null,"topics":["bash","bash-script","layer3","layer4","linux","network-analysis","networking","tcp-ip","troubleshooting"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/eugeniogiusti.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2024-11-30T01:06:19.000Z","updated_at":"2025-03-10T09:19:57.000Z","dependencies_parsed_at":null,"dependency_job_id":"584c5c2d-c10d-49b9-b67d-a4429649f7c0","html_url":"https://github.com/eugeniogiusti/network-analyzer","commit_stats":null,"previous_names":["eugeniogiusti/network_analyzer","eugeniogiusti/network-analyzer"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eugeniogiusti%2Fnetwork-analyzer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eugeniogiusti%2Fnetwork-analyzer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eugeniogiusti%2Fnetwork-analyzer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eugeniogiusti%2Fnetwork-analyzer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/eugeniogiusti","download_url":"https://codeload.github.com/eugeniogiusti/network-analyzer/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243095798,"owners_count":20235548,"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":["bash","bash-script","layer3","layer4","linux","network-analysis","networking","tcp-ip","troubleshooting"],"created_at":"2025-03-11T18:59:02.873Z","updated_at":"2025-12-24T10:12:24.328Z","avatar_url":"https://github.com/eugeniogiusti.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Network analyzer troubleshooting Script  \n\nThis script is designed to test a network resource and gather information for accurate troubleshooting.\n\n## Features  \n\n- Operates at the network and port levels.  \n- Launches `tcpdump` during all tests to sniff traffic sent to the target machine.  \n  - Provides a comprehensive overview for advanced network analysis.  \n- Performs the following tests:  \n  - **Ping**  \n  - **Traceroute**  \n  - Option to perform a DNS lookup (`dig`) on an IP or DNS name.  \n  - Option to test if the target's TCP port is open using **Nmap**.\n  - tcpdump that records all activies.\n\n## Recommended Usage  \n\n1. Run the script to perform initial network tests.  \n2. As a final step, test the target's service:\n   - Try to login if it's a webpage or try to reach it. \n   - Logging in via SSH or any other service the target has.  \n4. The ongoing `tcpdump` collects all traffic, allowing for advanced analysis.  \n5. When testing is complete, type `ok` and `ENTER` to terminate the script.\n\n## Compatibility  \n\n- This script has been tested on **MX Linux** and works perfectly.  \n- Feel free to test it on other systems.\n- If you encounter issues or want to improve the script, contributions are welcome!  \n\n## Prerequisites  \n\nEnsure the following packages are installed for full functionality:  \n- `tcpdump`  \n- `ping`  \n- `traceroute`  \n- `dig`  \n- `nmap`  \n\n## How to Use\n\n1. **Make sure that you have the necessary packets**  \n   Commands for debian and redhat distros:\n   ```bash\n   apt install traceroute nmap bind9utils tcpdump -y\n   \n   dnf install traceroute nmap bind-utils tcpdump -y\n\n2. **Clone or Download the Repository**  \n   Download the script to your system or clone the repository:\n   ```bash\n   git clone https://github.com/eugeniogiusti/network_analyzer.git\n   \n   cd network_analyzer\n\n\n3. Grant Execution Permissions\nGive the script executable permissions:\n   ```bash\n   chmod +x network_analyzer.sh\n\n\n4. Run the Script \u0026\nSwitch to the root user if you don't want to enter the password during the process:\n   ```bash\n   sudo su\n   ./network_analyzer.sh\n\n\n5. Step follow the instructions\n   ```bash\n   Follow the instruction of the script.\n   You have to put your ip target and its port and that's it!\n\n\n6. Step read and import\n   ```bash\n   Read the report .txt and import the .pcap in Wishareshark to analazite it or use tcpdump with this command:\n   tcpdump -r file.pcap\n\n\n  ![ksnip_20241225-142244](https://github.com/user-attachments/assets/9110b496-9acb-42c7-857e-1d3bb1c7e37a)\n\n  ![ksnip_20241225-142435](https://github.com/user-attachments/assets/abdf295c-6a94-4bd7-a4c5-aa98586be3c0)\n\n\n![layout-old-2048x1418](https://github.com/user-attachments/assets/b3ba04cb-5d7b-4662-b149-73156ea2ffbb)\n\n\n## Troubleshooting Tips\n\n1. **Check the target's firewall**  \n   Ensure the service ports for incoming connections are open.\n\n2. **Verify services and configurations**  \n   Confirm that the services are running and check for any misconfigurations at the application level.\n\n3. **Inspect Layer 3 and Layer 2 issues**  \n   Look for potential problems, such as:\n   - Improperly configured routing.\n   - VLAN ACLs blocking traffic.\n\n4. **Investigate software/firmware bugs**  \n   Check for any known bugs in the software or firmware.\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://www.youtube.com/watch?v=j3VJVN3bZCw\" target=\"_blank\" rel=\"noopener noreferrer\"\u003e\n    \u003cimg src=\"https://img.youtube.com/vi/j3VJVN3bZCw/hqdefault.jpg\" alt=\"Network Analyzer Demo\" /\u003e\n  \u003c/a\u003e\n\u003c/p\u003e\n\n\u003cem\u003eClick the thumbnail above to see the script in action on YouTube!\u003c/em\u003e\n\n## Full Article\n\n\u003cp\u003e\n  For an in-depth guide, including usage tips and additional insights, please visit my blog post:\n  \u003ca href=\"https://eugeniogiustitechsolutions.com/assets/blog/analyzer.html\" target=\"_blank\" rel=\"noopener noreferrer\"\u003e\n    \u003cstrong\u003eNetwork Analyzer – Deep Dive\u003c/strong\u003e\n  \u003c/a\u003e\n\u003c/p\u003e\n\n\n# Network Analyzer\n\n![Status](https://img.shields.io/badge/status-stable-brightgreen)\n![Last Commit](https://img.shields.io/github/last-commit/eugeniogiusti/network-analyzer)\n![License](https://img.shields.io/github/license/eugeniogiusti/network-analyzer)\n![Top Language](https://img.shields.io/github/languages/top/eugeniogiusti/network-analyzer)\n![Shell Script](https://img.shields.io/badge/made%20with-bash-1f425f.svg)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feugeniogiusti%2Fnetwork-analyzer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Feugeniogiusti%2Fnetwork-analyzer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feugeniogiusti%2Fnetwork-analyzer/lists"}