{"id":22156380,"url":"https://github.com/sumidcyber/netflowcrafter","last_synced_at":"2025-03-24T14:33:36.788Z","repository":{"id":239333412,"uuid":"799247490","full_name":"SUmidcyber/NetFlowCrafter","owner":"SUmidcyber","description":"This Go code is used to listen to network traffic, monitor and analyze certain protocols. Users can listen to live traffic from a specific network interface, monitor protocols such as TCP, UDP, ICMP, and record traffic. It can be used in various applications such as network security and performance monitoring.","archived":false,"fork":false,"pushed_at":"2024-05-11T15:32:55.000Z","size":8,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-29T19:26:19.782Z","etag":null,"topics":["cyber-analytics","cybersecurity","forensic-analysis","forensics-tools","malware","netowrk-tools","network","network-analysis","network-programming","networks","nmap","scanner"],"latest_commit_sha":null,"homepage":"https://www.linkedin.com/in/umid-mammadov-951968278/","language":"Go","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/SUmidcyber.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":"2024-05-11T15:11:48.000Z","updated_at":"2024-08-04T20:43:54.000Z","dependencies_parsed_at":"2024-05-11T16:28:11.838Z","dependency_job_id":"52afaaec-ff55-49a8-8102-f121eaaa09a7","html_url":"https://github.com/SUmidcyber/NetFlowCrafter","commit_stats":null,"previous_names":["sumidcyber/netflowcrafter"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SUmidcyber%2FNetFlowCrafter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SUmidcyber%2FNetFlowCrafter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SUmidcyber%2FNetFlowCrafter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SUmidcyber%2FNetFlowCrafter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SUmidcyber","download_url":"https://codeload.github.com/SUmidcyber/NetFlowCrafter/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245289999,"owners_count":20591174,"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":["cyber-analytics","cybersecurity","forensic-analysis","forensics-tools","malware","netowrk-tools","network","network-analysis","network-programming","networks","nmap","scanner"],"created_at":"2024-12-02T02:42:28.381Z","updated_at":"2025-03-24T14:33:36.761Z","avatar_url":"https://github.com/SUmidcyber.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Go Network Traffic Analyzer\n\nThe Go Network Traffic Analyzer is a versatile tool designed to monitor and analyze network traffic. It allows you to observe various network protocols, record traffic data, and analyze live traffic from specific network interfaces.\nFeatures\n\n    Protocol Monitoring: Monitor various network protocols such as TCP, UDP, ICMP, etc.\n    Live Traffic Monitoring: Analyze live traffic from a specified network interface.\n    Traffic Recording: Record traffic data to log files for later analysis.\n    Flexible Usage: User-friendly interface and simple command-line options for flexible usage.\n\nUsage\n\nSelect the desired network interface and specify the protocols you want to monitor by running the program. Traffic monitoring will start automatically.\n\nbash\n\n    go run interfaceP.go  and  go run onlyInterface.go\n\nRequirements\n\n    Go (version 1.13 or newer)\n    github.com/google/gopacket and github.com/google/gopacket/pcap libraries\n\nContributing\n\n    Fork the project and make your enhancements.\n    Open an issue on GitHub for bug reports and suggestions.\n    Read, understand, and improve the code.\n# Listening to the network interface and analyzing TCP packets:\n    interface := \"eth0\"\n    packetType := \"TCP\"\n    \n    // Ağ arabirimini ve paket türünü belirtin\n    handle, err := pcap.OpenLive(interface, 1600, true, pcap.BlockForever)\n    if err != nil {\n        log.Fatal(\"Error opening interface:\", err)\n    }\n    defer handle.Close()\n    \n    packetSource := gopacket.NewPacketSource(handle, handle.LinkType())\n    \n    // TCP paketlerini dinleme ve analiz etme\n    for packet := range packetSource.Packets() {\n        tcpLayer := packet.Layer(layers.LayerTypeTCP)\n        if tcpLayer != nil {\n            tcp, _ := tcpLayer.(*layers.TCP)\n            fmt.Printf(\"Source Port: %d, Destination Port: %d\\n\", tcp.SrcPort, tcp.DstPort)\n        }\n    }\n\n# Interacting with a specific network device and analyzing ICMP packets:\n    interface := \"eth0\"\n    packetType := \"ICMP\"\n    \n    // Ağ arabirimini ve paket türünü belirtin\n    handle, err := pcap.OpenLive(interface, 1600, true, pcap.BlockForever)\n    if err != nil {\n        log.Fatal(\"Error opening interface:\", err)\n    }\n    defer handle.Close()\n    \n    packetSource := gopacket.NewPacketSource(handle, handle.LinkType())\n    \n    // ICMP paketlerini dinleme ve analiz etme\n    for packet := range packetSource.Packets() {\n        icmpLayer := packet.Layer(layers.LayerTypeICMPv4)\n        if icmpLayer != nil {\n            icmp, _ := icmpLayer.(*layers.ICMPv4)\n            fmt.Printf(\"Type: %d, Code: %d\\n\", icmp.TypeCode.Type(), icmp.TypeCode.Code())\n        }\n    }\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsumidcyber%2Fnetflowcrafter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsumidcyber%2Fnetflowcrafter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsumidcyber%2Fnetflowcrafter/lists"}