{"id":22188935,"url":"https://github.com/mauricelambert/networkcollectdfir","last_synced_at":"2025-07-24T07:08:58.104Z","repository":{"id":265325018,"uuid":"895763164","full_name":"mauricelambert/NetworkCollectDFIR","owner":"mauricelambert","description":"This script collects data for incident response and forensic (useful for CTF and DFIR challenges !).","archived":false,"fork":false,"pushed_at":"2025-01-27T08:36:52.000Z","size":38,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-24T20:16:33.980Z","etag":null,"topics":["dfir","forensic-analysis","forensics","incident-response","network","network-detection","python3","scapy"],"latest_commit_sha":null,"homepage":"","language":"Python","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/mauricelambert.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","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-28T21:14:08.000Z","updated_at":"2025-01-27T08:36:56.000Z","dependencies_parsed_at":"2024-11-28T23:22:16.441Z","dependency_job_id":"f976398f-29fd-475b-a06f-e30d87513d46","html_url":"https://github.com/mauricelambert/NetworkCollectDFIR","commit_stats":null,"previous_names":["mauricelambert/networkcollectdfir"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/mauricelambert/NetworkCollectDFIR","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mauricelambert%2FNetworkCollectDFIR","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mauricelambert%2FNetworkCollectDFIR/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mauricelambert%2FNetworkCollectDFIR/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mauricelambert%2FNetworkCollectDFIR/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mauricelambert","download_url":"https://codeload.github.com/mauricelambert/NetworkCollectDFIR/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mauricelambert%2FNetworkCollectDFIR/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266807198,"owners_count":23987427,"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-07-24T02:00:09.469Z","response_time":99,"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":["dfir","forensic-analysis","forensics","incident-response","network","network-detection","python3","scapy"],"created_at":"2024-12-02T11:13:37.928Z","updated_at":"2025-07-24T07:08:58.064Z","avatar_url":"https://github.com/mauricelambert.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"![NetworkCollectDFIR Logo](https://mauricelambert.github.io/info/python/security/NetworkCollectDFIR_small.png \"NetworkCollectDFIR logo\")\n\n# NetworkCollectDFIR\n\n## Description\n\nThis script collects data for incident response and forensic (useful for CTF and DFIR challenges !).\n\n\u003e This script has been written in forensic lessons and challenges for certification. It's a little script to reduce time for analysis and basic detection. Output are: the JSON report and extracted files.\n\u003e\u003e Detections for suspicious activity will added in the future (check the *to do* list)\n\n## Requirements\n\nThis package require:\n - python3\n - python3 Standard Library\n - Scapy\n\n## Installation\n\n### Git\n\n```bash\npython3 -m pip install scapy\ngit clone \"https://github.com/mauricelambert/NetworkCollectDFIR.git\"\ncd \"NetworkCollectDFIR\"\n```\n\n### Wget\n\n```bash\nwget https://github.com/mauricelambert/NetworkCollectDFIR/archive/refs/heads/main.zip\nunzip main.zip\ncd NetworkCollectDFIR-main\n```\n\n## Usages\n\n### Command line\n\n```bash\npython3 network_ir_collect.py \u003cfile.pcap\u003e\n```\n\n## To Do\n\n - [X] Extract SMB files and generates hashes (MD5, SHA1, SHA256)\n - [X] Extract HTTP files and generates hashes (MD5, SHA1, SHA256)\n - [ ] Extract HTTP Content disposition (https://www.ietf.org/rfc/rfc2183.txt)\n - [ ] Extract FTP files\n - [ ] Port scan (lot of TCP connection without `ACK`, statistcs are generated and reported)\n - [ ] HTTP bruteforce path (hacktools like `dirb`, `dirbuster`, `ffuf`, `gobuster`, bruteforce HTTP path to discover hidden or misconfigured files) (lot of 404 error pages and lot of path, statistcs are generated and reported)\n - [ ] Hostname spoofing (spoof local hostname to perform MITM attack, multiples local name for an IP address, data are parsed, there is no statistics)\n - [ ] ARP spoofing (multiples IP addresses for one MAC address (false positive with router), statistcs are generated and reported)\n - [ ] ARP scan (lot of requests for differents IP address wihtout responses)\n - [ ] Ping scan (lot of requests for differents IP address wihtout responses)\n - [ ] RPC SID bruteforce\n - [ ] LDAP enumeration\n - [ ] SMB enumeration\n - [ ] HTTP authentication bruteforce (lot of Authorization header value)\n - [ ] FTP authentication bruteforce (lot of user/password value)\n - [ ] Kerberos authentication bruteforce (lot of requests in short time)\n - [ ] NTLM authentication bruteforce\n - [ ] AS-REP roasting\n - [ ] Kerberoasting\n - [X] List TCP sessions (IP addresses, ports, data size, start, end, files, ...)\n - [X] Roles detections (DNS server, LDAP server, Kerberos server, NTP server)\n - [X] Statistics by IP (how many IP contected, how many ports contacted)\n - [X] IP statistics (how many packets with IP address (as source or destination))\n - [X] TCP statistics (SYN, ACK, CLOSE, RESET)\n - [X] UDP statistics\n - [X] HTTP statistics\n - [ ] RPC statistics\n - [ ] WinRM statistics\n - [X] List all flux between two IP addresses\n - [X] List all TCP flux\n - [X] List all UDP flux\n - [X] List all name resolution (DNS, mDNS, LLMNR, NetBios)\n - [X] Datetime of the first packet (IP, flux between two IP addresses, TCP by destination port and IP, UDP by destination port and IP, by protocol and IP, name resolution)\n - [X] SMB informations (IP, hostname, file path, share) with datetime for the first session\n - [X] HTTP informations (host, user-agent, path (by method), status code, server, content type) with datetime for the first session\n - [X] NTP with packet datetime (to identify problems with datetime, some hacktools can generate invalid kerberos tickets by datetime mistake)\n - [X] LDAP filters (hostname, domain, Domain GUID/SID, user) with datetime for the first session\n - [X] RPC informations (machine name) with datetime for the first session\n - [X] Kerberos informations (cname, sname, address/hostname) with datetime for the first session\n\n## Links\n\n - [Github](https://github.com/mauricelambert/NetworkCollectDFIR)\n\n## License\n\nLicensed under the [GPL, version 3](https://www.gnu.org/licenses/).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmauricelambert%2Fnetworkcollectdfir","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmauricelambert%2Fnetworkcollectdfir","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmauricelambert%2Fnetworkcollectdfir/lists"}