{"id":36446149,"url":"https://github.com/lende/127","last_synced_at":"2026-01-11T22:44:51.472Z","repository":{"id":57528706,"uuid":"103130837","full_name":"lende/127","owner":"lende","description":"127 is a tool for mapping hostnames to random loopback addresses","archived":false,"fork":false,"pushed_at":"2023-11-22T10:22:25.000Z","size":74,"stargazers_count":8,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-06-20T03:40:14.386Z","etag":null,"topics":["cli","hosts","hostsfile","ip","linux","localhost"],"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/lende.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":"2017-09-11T12:05:00.000Z","updated_at":"2023-11-08T10:26:11.000Z","dependencies_parsed_at":"2024-06-20T02:57:13.720Z","dependency_job_id":"e776abbb-7b31-4c43-9599-1cad90b3a8a0","html_url":"https://github.com/lende/127","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/lende/127","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lende%2F127","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lende%2F127/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lende%2F127/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lende%2F127/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lende","download_url":"https://codeload.github.com/lende/127/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lende%2F127/sbom","scorecard":{"id":584167,"data":{"date":"2025-08-11","repo":{"name":"github.com/lende/127","commit":"d940a79d7d4ce1b5b86cee44c5e5866fb1e73769"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.2,"checks":[{"name":"Code-Review","score":0,"reason":"Found 0/30 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":0,"reason":"Project has not signed or included provenance with any releases.","details":["Warn: release artifact v0.5.0 not signed: https://api.github.com/repos/lende/127/releases/130967437","Warn: release artifact v0.4.0 not signed: https://api.github.com/repos/lende/127/releases/127390937","Warn: release artifact v0.3.0 not signed: https://api.github.com/repos/lende/127/releases/8482623","Warn: release artifact v0.5.0 does not have provenance: https://api.github.com/repos/lende/127/releases/130967437","Warn: release artifact v0.4.0 does not have provenance: https://api.github.com/repos/lende/127/releases/127390937","Warn: release artifact v0.3.0 does not have provenance: https://api.github.com/repos/lende/127/releases/8482623"],"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Vulnerabilities","score":6,"reason":"4 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GO-2024-2687 / GHSA-4v7x-pqxf-cx7m","Warn: Project is vulnerable to: GO-2024-3333","Warn: Project is vulnerable to: GO-2025-3503 / GHSA-qxp5-gwg8-xv66","Warn: Project is vulnerable to: GO-2025-3595 / GHSA-vvgc-356p-c3xw"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-20T19:58:42.510Z","repository_id":57528706,"created_at":"2025-08-20T19:58:42.511Z","updated_at":"2025-08-20T19:58:42.511Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28326144,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-11T22:11:01.104Z","status":"ssl_error","status_checked_at":"2026-01-11T22:10:58.990Z","response_time":60,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["cli","hosts","hostsfile","ip","linux","localhost"],"created_at":"2026-01-11T22:44:50.908Z","updated_at":"2026-01-11T22:44:51.452Z","avatar_url":"https://github.com/lende.png","language":"Go","readme":"# 127\n\n_127_ is a tool for mapping easy-to-remember hostnames to random\n[loopback addresses].\n\nThe tool reads and modifies the standard [hosts file] on your system. There is\nalso a [Go API] available. Tested on Linux, but may work on other Unix-like\nsystems.\n\n## Installation\n\nTo install the latest version from source:\n\n```console\ngit clone https://github.com/lende/127.git\ncd 127; make \u0026\u0026 sudo make install\n```\n\nYou may also [download a binary release].\n\n## Usage and options\n\n```console\n$ 127 -h\n127 is a tool for mapping hostnames to random loopback addresses.\n\nUsage: 127 [option ...] [hostname]\nPrint IP mapped to hostname, assigning a random IP if no mapping exists.\n\nOptions:\n  -e    echo hostname\n  -f string\n        path to hosts file (default \"/etc/hosts\")\n  -u    unmap hostname\n  -v    print version\n```\n\n## Examples\n\n### A simple demonstration\n\n```console\n# Map example.test to a random loopback address:\n$ sudo 127 example.test\n127.2.221.30\n\n# Running the command again simply returns the same IP address:\n$ 127 example.test\n127.2.221.30\n\n# Ping the new host to check that it worked:\n$ ping example.test\nPING example.test (127.2.221.30) 56(84) bytes of data.\n64 bytes from example.test (127.2.221.30): icmp_seq=1 ttl=64 time=0.042 ms\n\n# Delete the mapping by specifying the -d flag:\n$ 127 -u example.test\n127.2.221.30\n$ ping example.test\nping: example.test: Name or service not known\n\n# Running the command without any arguments simply returns a random IP:\n$ 127\n127.167.166.218\n```\n\n### Testing a third party service\n\nLet's say you want to try out [ownCloud]. Simply run:\n\n```console\nsudo docker run --rm -p `sudo 127 owncloud.test`:80:80 owncloud:latest\n```\n\n... and your _ownCloud_ instance should be available at `http://owncloud.test`.\n\n[loopback addresses]: https://en.wikipedia.org/wiki/Localhost#Name_resolution\n[hosts file]: https://en.wikipedia.org/wiki/Hosts_(file)\n[download a binary release]: https://github.com/lende/127/releases\n[Go API]: https://godoc.org/github.com/lende/127/lib127\n[ownCloud]: https://owncloud.org/\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flende%2F127","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flende%2F127","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flende%2F127/lists"}