{"id":16488479,"url":"https://github.com/stellarbear/stringssharp","last_synced_at":"2025-09-18T19:32:31.759Z","repository":{"id":95077091,"uuid":"133503557","full_name":"stellarbear/StringsSharp","owner":"stellarbear","description":"Extract strings from files","archived":false,"fork":false,"pushed_at":"2018-08-23T07:49:26.000Z","size":63,"stargazers_count":2,"open_issues_count":1,"forks_count":1,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-08-01T07:40:16.455Z","etag":null,"topics":["csharp","extraction","net","strings"],"latest_commit_sha":null,"homepage":null,"language":"C#","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/stellarbear.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":"2018-05-15T11:02:50.000Z","updated_at":"2021-07-28T19:53:16.000Z","dependencies_parsed_at":"2023-04-30T10:47:37.070Z","dependency_job_id":null,"html_url":"https://github.com/stellarbear/StringsSharp","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/stellarbear/StringsSharp","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stellarbear%2FStringsSharp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stellarbear%2FStringsSharp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stellarbear%2FStringsSharp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stellarbear%2FStringsSharp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/stellarbear","download_url":"https://codeload.github.com/stellarbear/StringsSharp/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stellarbear%2FStringsSharp/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":275820524,"owners_count":25534815,"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-09-18T02:00:09.552Z","response_time":77,"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":["csharp","extraction","net","strings"],"created_at":"2024-10-11T13:39:02.343Z","updated_at":"2025-09-18T19:32:31.729Z","avatar_url":"https://github.com/stellarbear.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# StringsSharp\nExtract strings from files. [Nuget package](https://www.nuget.org/packages/StringsSharp) is available. Sample are files included.\n\n## Description\nSmall utility that will extract strings from PE and other files. Useful for malware analisis.\n\nYou can set up pagecode, character range, minimum and maximum extraction strings length. See example below.\n\nHuge files are processed by splitting them into fixed size chunks. Every subsequent chunk overlaps previous one, i.e. strings located at chunks border won't be lost\n\nIt has the ability to filter the results. It is based on configuration file, containing regular expressions.\n\n## Usage\n```C#\n//\tDesired file\nstring filename = \"\u003cfilename\u003e\";\n\n//  Unicode. Char range: [\\u0020-\\u007E]. Min string length: 4. Max string length: 16\nusing (StringsSharp.StringsSharp ss = new StringsSharp.StringsSharp(1200, \"[\\u0020-\\u007E]\", 4, 16))\n{\n    //\tDefault chunk size is used\n    foreach (MatchCollection matches in ss.Scan(filename))\n    {\n        //  Process matches here\n    }\n}\n\n//  ASCII. Char range: [\\x20-\\x7E]. Min and string length are set to default\nusing (StringsSharp.StringsSharp ss = new StringsSharp.StringsSharp(1251, \"[\\x20-\\x7E]\"))\n{\n    using (StringsSharp.StringFilter sf = new StringFilter(configurationFile))\n    {\n\t//    Chunk size is set to 256\n        foreach (MatchCollection matches in ss.Scan(filename, 256))\n        {\n\t\t    foreach (Match match in matches)\n\t\t\t{\n\t\t\t    //\tResult filtration in action\n                if (sf.Scan(match.Value))\n                {\n                    //  Process string here\n                }\n                foreach (string regexpTag in sf.Scan(match.Value))\n                {\n                    //  Process tags here\n                }\n\t\t\t}\n\t    \n        }\n    }\n}\n```\n\n## Other\nBuild in vs 2017\n\nSpecial thanks to [EricZimmerman](https://github.com/EricZimmerman/bstrings).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstellarbear%2Fstringssharp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstellarbear%2Fstringssharp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstellarbear%2Fstringssharp/lists"}