{"id":16703452,"url":"https://github.com/mtardy/pathgen","last_synced_at":"2026-04-28T09:05:32.840Z","repository":{"id":249835523,"uuid":"709417710","full_name":"mtardy/pathgen","owner":"mtardy","description":"A CLI tool for creating arbitrary long paths on Linux","archived":false,"fork":false,"pushed_at":"2025-02-20T15:55:35.000Z","size":4,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-20T16:40:26.990Z","etag":null,"topics":["filesystem","linux","path"],"latest_commit_sha":null,"homepage":"","language":"Go","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/mtardy.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":"2023-10-24T17:16:34.000Z","updated_at":"2025-02-20T15:55:39.000Z","dependencies_parsed_at":"2024-11-19T23:38:53.030Z","dependency_job_id":null,"html_url":"https://github.com/mtardy/pathgen","commit_stats":null,"previous_names":["mtardy/pathgen"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mtardy%2Fpathgen","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mtardy%2Fpathgen/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mtardy%2Fpathgen/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mtardy%2Fpathgen/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mtardy","download_url":"https://codeload.github.com/mtardy/pathgen/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243544649,"owners_count":20308169,"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":["filesystem","linux","path"],"created_at":"2024-10-12T19:08:22.874Z","updated_at":"2025-12-29T09:15:11.229Z","avatar_url":"https://github.com/mtardy.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Pathgen\n\nPathgen is a Golang CLI tool for generating arbitrary long paths on Linux\n\n## Installation\n\nYou need Golang to be installed in your environment. Pathgen has no external\ndependencies and only use the Go standard library.\n\n```bash\ngo install github.com/mtardy/pathgen@latest\n```\n\n## Usage\n\n```text\nUsage:\n  pathgen [flags] length\n\nFlags:\n  -b string\n        binary to put at the end of the random path, used when write is enabled\n  -c    cleanup everything under \"/tmp/pathgen\"\n  -d int\n        maximum length of a directory name (default 255)\n  -l    create a symlink at \"/tmp/pathgen/exe\" to the target file, used when write is enabled (default true)\n  -p string\n        prefix for the random path, you will need to cleanup manually (default \"/tmp/pathgen\")\n  -r    generate a random string for the path\n  -s string\n        suffix of the random path, name of the copied binary (default \"bin\")\n  -w    write the filepath on the filesystem\n```\n\nFor example, to generate a path of 512 bytes and put the binary `nc` at the end\nof random path under the name `bin` do:\n\n```shell-session\npathgen -w -b $(which nc) 512\n```\n\nThe output should be similar to:\n```\n/tmp/pathgen/fmblkzrkyvzbokvvwqxuzghimgzuhshccwetfneqsvvypjqocjnbzpvjdtvuszkjzugvrnhibjmfimniyujhagnkpykxcjrlfuelynkhnwfmpkztuvugynvaooktegdlpbtjumpzdznycpqsunbpeqomvdccokcbqbbgcnjllwncupxfoyiuofuywmiituxtsyzuewagurliurxfrdhnfbwvrizniuxwhajabtnuuvlsdhfgtxebzopisjydaoe/ouiefagfyastdxfjkxexpgfryogkqdrwtxpvhgoutwuqbehzhbmimoezrqsbkxfgjfpamonxvkkkohmmkehmmnxamuvmetgmlaxekvunksaqrtukatkcikbvmearvyvsksnsyrgdmcbkmdelwbuzlqrguzasaiwyjxhjzlotwowqdnfvqavrwvnpuzebwlkrcidxiitjvahpxlsysulhbeadmhntpfwnrifvssbjzzzumey/bin\n```\n\nYou will find a symlink at `/tmp/pathgen/exe` that points to the binary that you\ncan use to trigger execution from the arbitrary path.\n\n```shell-session\nls -l /tmp/pathgen\n```\n\nThe output should be similar to:\n```\nlrwxrwxrwx 1 mahe mahe  512 Oct 24 17:08 exe -\u003e /tmp/pathgen/fmblkzrkyvzbokvvwqxuzghimgzuhshccwetfneqsvvypjqocjnbzpvjdtvuszkjzugvrnhibjmfimniyujhagnkpykxcjrlfuelynkhnwfmpkztuvugynvaooktegdlpbtjumpzdznycpqsunbpeqomvdccokcbqbbgcnjllwncupxfoyiuofuywmiituxtsyzuewagurliurxfrdhnfbwvrizniuxwhajabtnuuvlsdhfgtxebzopisjydaoe/ouiefagfyastdxfjkxexpgfryogkqdrwtxpvhgoutwuqbehzhbmimoezrqsbkxfgjfpamonxvkkkohmmkehmmnxamuvmetgmlaxekvunksaqrtukatkcikbvmearvyvsksnsyrgdmcbkmdelwbuzlqrguzasaiwyjxhjzlotwowqdnfvqavrwvnpuzebwlkrcidxiitjvahpxlsysulhbeadmhntpfwnrifvssbjzzzumey/bin\ndrwx------ 3 mahe mahe 4096 Oct 24 17:08 fmblkzrkyvzbokvvwqxuzghimgzuhshccwetfneqsvvypjqocjnbzpvjdtvuszkjzugvrnhibjmfimniyujhagnkpykxcjrlfuelynkhnwfmpkztuvugynvaooktegdlpbtjumpzdznycpqsunbpeqomvdccokcbqbbgcnjllwncupxfoyiuofuywmiituxtsyzuewagurliurxfrdhnfbwvrizniuxwhajabtnuuvlsdhfgtxebzopisjydaoe\n```\n\n## License\n\n[MIT](https://choosealicense.com/licenses/mit/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmtardy%2Fpathgen","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmtardy%2Fpathgen","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmtardy%2Fpathgen/lists"}