{"id":19045394,"url":"https://github.com/marirs/ioc_extract-rs","last_synced_at":"2025-04-23T23:44:50.113Z","repository":{"id":62441031,"uuid":"451011956","full_name":"marirs/ioc_extract-rs","owner":"marirs","description":"Extract indicators like urls,domains,ip,emails,etc... from a given string","archived":false,"fork":false,"pushed_at":"2024-12-06T04:34:56.000Z","size":101,"stargazers_count":3,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-18T08:39:34.897Z","etag":null,"topics":["indicators","information-extraction","information-gathering","information-security","ioc","rust","rust-crate","rust-lang","rust-library"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/marirs.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,"zenodo":null}},"created_at":"2022-01-23T05:22:03.000Z","updated_at":"2025-01-22T23:50:53.000Z","dependencies_parsed_at":"2024-06-03T11:50:59.312Z","dependency_job_id":"7ed7c866-1ffd-44f7-9fb5-25711daebf20","html_url":"https://github.com/marirs/ioc_extract-rs","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marirs%2Fioc_extract-rs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marirs%2Fioc_extract-rs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marirs%2Fioc_extract-rs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marirs%2Fioc_extract-rs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/marirs","download_url":"https://codeload.github.com/marirs/ioc_extract-rs/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250535056,"owners_count":21446504,"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":["indicators","information-extraction","information-gathering","information-security","ioc","rust","rust-crate","rust-lang","rust-library"],"created_at":"2024-11-08T22:50:01.523Z","updated_at":"2025-04-23T23:44:49.860Z","avatar_url":"https://github.com/marirs.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# IOC Extract\n[![Linux x86_64](https://github.com/marirs/ioc_extract-rs/actions/workflows/linux_x86_64.yml/badge.svg)](https://github.com/marirs/ioc_extract-rs/actions/workflows/linux_x86_64.yml)\n[![Linux Arm7](https://github.com/marirs/ioc_extract-rs/actions/workflows/linux_arm.yml/badge.svg)](https://github.com/marirs/ioc_extract-rs/actions/workflows/linux_arm.yml)\n[![macOS](https://github.com/marirs/ioc_extract-rs/actions/workflows/macos.yml/badge.svg)](https://github.com/marirs/ioc_extract-rs/actions/workflows/macos.yml)\n[![Windows](https://github.com/marirs/ioc_extract-rs/actions/workflows/windows.yml/badge.svg)](https://github.com/marirs/ioc_extract-rs/actions/workflows/windows.yml)\n[![GitHub license](https://img.shields.io/github/license/marirs/ioc_extract-rs)](https://github.com/marirs/ioc_extract-rs/blob/master/LICENSE)\n\nExtract indicators like urls,domains,ip,emails,etc... from a given string or a Text file.\n\n### Requirements\n\n- Rust 1.56+ (edition 2021)\n\n### Example\n```rust\nuse ioc_extract::Artifacts;\n\nfn main() {\n    let x = \"there are ips in this test\\nexample.ini\\n192.168.21.21 and ::ffff:127.0.0.1\\nthe cidrs are:\\n2001:0DB8:1234::/48 and \\n10.0.0.0/8\\n\\n\";\n    let x = x.to_owned() + \"check out https://www.google.com or www.google.com\";\n    let ioc = Artifacts::from_str(\u0026x);\n    println!(\"IOC's:\\n{:#?}\", ioc);\n}\n```\n\n### Running the Example\n```bash\n$ cargo r --example xtract\n     Running `target/debug/examples/xtract`\nIOC's:\nSome(\n    Indicators {\n        urls: Some(\n            [\n                \"https://www.google.com\",\n            ],\n        ),\n        domains: Some(\n            [\n                \"www.google.com\",\n            ],\n        ),\n        emails: None,\n        ip_address: Some(\n            [\n                \"10.0.0.0/8\",\n                \"192.168.21.21\",\n                \"2001:0DB8:1234::/48\",\n                \"::ffff:127.0.0.1\",\n            ],\n        ),\n        crypto: None,\n        registry: None,\n    },\n)\n```\n\n---\nLICENSE: MIT","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarirs%2Fioc_extract-rs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmarirs%2Fioc_extract-rs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarirs%2Fioc_extract-rs/lists"}