{"id":15877742,"url":"https://github.com/zimbatm/curlsh","last_synced_at":"2025-04-01T23:24:18.701Z","repository":{"id":66382092,"uuid":"148931822","full_name":"zimbatm/curlsh","owner":"zimbatm","description":"WIP: better than `curl \u003curl\u003e | sh`","archived":false,"fork":false,"pushed_at":"2018-09-15T23:31:43.000Z","size":4,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-07T15:16:10.225Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/zimbatm.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":null,"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-09-15T19:08:01.000Z","updated_at":"2018-09-15T23:31:44.000Z","dependencies_parsed_at":null,"dependency_job_id":"bd04a3b2-6270-4c65-ae5b-279fa212c2f8","html_url":"https://github.com/zimbatm/curlsh","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/zimbatm%2Fcurlsh","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zimbatm%2Fcurlsh/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zimbatm%2Fcurlsh/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zimbatm%2Fcurlsh/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zimbatm","download_url":"https://codeload.github.com/zimbatm/curlsh/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246726114,"owners_count":20823737,"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":[],"created_at":"2024-10-06T02:03:32.988Z","updated_at":"2025-04-01T23:24:18.680Z","avatar_url":"https://github.com/zimbatm.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# curlsh - better than `curl \u003curl\u003e | sh`\n\nThere is a common installation method that is quite controversial. Run\n`curl https://url | sh`.\n\nThis installation method is dangerous and insecure.\n\nThis installation method is not going away.\n\nThis project's aim is to make things a bit better.\n\n## Usage\n\n```\nUsage of ./curlsh:\n  -hash value\n        SRI hash\n  -pager string\n        select pager (CURLSH_PAGER, PAGER) (default \"less -R\")\n  -sudo\n        run the script with sudo\n  -trusted\n        whenver the script is trusted\n  -url value\n        URL to fetch\n```\n\n## Example\n\n```\n$ ./curlsh -url https://zimbatm.github.io/curlsh/sri_test.js \\\n  -hash \"sha256-ySadHRVML1LfcwlPIxXx4CQpk64arq0Yv32cBpu9CFQ=\"\n```\n\n## Features\n\n### No timing attachs\n\nBecause the script is fully fetched before being executed.\n\nTODO: add reference\n\n### Secure by default\n\nNudges the user towards the right things: read the script and check the hashes\n\n## ChangeLog\n\n* [CHANGELOG](CHANGELOG.md)\n\n## Research\n\n\u003chttps://github.com/chrisgreg/sri-gen\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzimbatm%2Fcurlsh","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzimbatm%2Fcurlsh","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzimbatm%2Fcurlsh/lists"}