{"id":22344039,"url":"https://github.com/jacopodl/dirtytext","last_synced_at":"2025-09-01T01:34:30.061Z","repository":{"id":57418299,"uuid":"135293086","full_name":"jacopodl/DirtyText","owner":"jacopodl","description":"Searches for [ab]using of Unicode glyphs.","archived":false,"fork":false,"pushed_at":"2018-06-25T13:37:42.000Z","size":144,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-08-25T13:56:46.287Z","etag":null,"topics":["dirty","glyphs","text","tool","unicode","utf-8"],"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/jacopodl.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}},"created_at":"2018-05-29T12:31:52.000Z","updated_at":"2021-10-20T17:31:54.000Z","dependencies_parsed_at":"2022-09-13T13:14:57.859Z","dependency_job_id":null,"html_url":"https://github.com/jacopodl/DirtyText","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/jacopodl/DirtyText","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jacopodl%2FDirtyText","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jacopodl%2FDirtyText/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jacopodl%2FDirtyText/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jacopodl%2FDirtyText/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jacopodl","download_url":"https://codeload.github.com/jacopodl/DirtyText/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jacopodl%2FDirtyText/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273064454,"owners_count":25039261,"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-08-31T02:00:09.071Z","response_time":79,"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":["dirty","glyphs","text","tool","unicode","utf-8"],"created_at":"2024-12-04T09:07:46.803Z","updated_at":"2025-09-01T01:34:30.040Z","avatar_url":"https://github.com/jacopodl.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# DirtyText # \nSearches for [ab]using of Unicode glyphs.\n\n## Installation\nDirtyText package can be installed through pip :snake: :\n\n    $ pip install dirtytext\n\nor downloaded from [GitHub](https://github.com/jacopodl/dirtytext).\n\n# Quick tour: #\n\n## Common options: ##\n- Read from file: -f \\\u003cfilename\u003e\n- Save modified text: -s \\\u003cfile\u003e\n- Text filter: --filter\n- Pipeline mode: -p\n\n### :mag_right: Looks for ZERO-WIDTH characters: ###\n    $\u003e echo \"This text‌‌‌‌‍‌‬‌‌‌‌‌‍‬‍‍ ‌‌‌‌‍‬﻿‌contains‌‌‌‌‍‬﻿‌‌‌‌‌‍‬﻿﻿‌‌‌‌‌‬‌‌‌‌‌‌‍‍‍﻿‌‌‌‌‍‬﻿﻿ ‌‌‌‌‍﻿‌‬‌‌‌‌‍‬﻿‌zero-width‌‌‌‌‍‬‍‌ chars\" | dirtytext --zero -v\n\nwill produce the following output:\n\n```text\nContains zero-width characters: True\nJSON:    \n[{\"idx\": 0, \"char\": \"\\ufeff\", \"cval\": \"FEFF\", \"infos\": null}, \n{\"idx\": 10, \"char\": \"\\u200c\", \"cval\": \"200C\", \"infos\": null}, \n{\"idx\": 11, \"char\": \"\\u200c\", \"cval\": \"200C\", \"infos\": null}, ...]\n```\n\n### :mag_right: Looks for CONFUSABLES characters: ###\n\n    $\u003e echo \"hello\" | dirtytext --confusables greek -v\n\nwill produce the following output:\n\n```text\nContains confusables characters: True\nJSON:\n[{\"idx\": 2, \"char\": \"l\", \"cval\": \"006C\", \"infos\": [{\"target\": \"0399\", \"description\": \"GREEK CAPITAL LETTER IOTA\"}]}, \n{\"idx\": 3, \"char\": \"l\", \"cval\": \"006C\", \"infos\": [{\"target\": \"0399\", \"description\": \"GREEK CAPITAL LETTER IOTA\"}]}, \n{\"idx\": 4, \"char\": \"o\", \"cval\": \"006F\", \"infos\": [{\"target\": \"03BF\", \"description\": \"GREEK SMALL LETTER OMICRON\"}, \n{\"target\": \"03C3\", \"description\": \"GREEK SMALL LETTER SIGMA\"}]}]\n```\n\n### :mag_right: Looks and filter anomalies in LATIN text: ###\n```text\nexample.txt:\n\nIt ⅽan be argueⅾ that the ⅽomputer ⅰs humanⅰty’s attempt to repⅼⅰⅽate the human brain.\nThis ⅰs perhaps an unattainable goal. \nHowever, unattainable goals often lead to outstanding accomplishment.\n```\n    $\u003e dirtytext -f example.txt --lsubs --filter -s out.txt\n\n```text\nout.txt:\n\nIt can be argued that the computer is humanity’s attempt to replicate the human brain.\nThis is perhaps an unattainable goal. \nHowever, unattainable goals often lead to outstanding accomplishment.\n```\n\n# UnicodeDB #\nThe unicode data that composes dirtytext database are extracted from unicode consortium, \nin particular there are two database files into dirtytext/data directory:\n\n- categories.json: built from data extracted from [here](https://unicode.org/Public/UNIDATA/Scripts.txt)\n- confusables.json: built from data extracted from [here](https://unicode.org/Public/security/latest/confusables.txt)\n\nIf dirtytext/data doesn't exist, DT downloads and build database before performing the required operations, \nafter which you can force the database update by adding the --update option\n\n# License #\nReleased under GPL-3.0\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjacopodl%2Fdirtytext","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjacopodl%2Fdirtytext","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjacopodl%2Fdirtytext/lists"}