{"id":18044785,"url":"https://github.com/will/stripe-ctf","last_synced_at":"2025-04-05T03:27:04.679Z","repository":{"id":66425583,"uuid":"86002901","full_name":"will/stripe-ctf","owner":"will","description":null,"archived":false,"fork":false,"pushed_at":"2017-03-23T22:19:50.000Z","size":173,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-10T11:45:34.053Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","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/will.png","metadata":{"files":{"readme":"README.md","changelog":null,"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":"2017-03-23T22:19:14.000Z","updated_at":"2017-03-23T22:19:53.000Z","dependencies_parsed_at":"2023-02-22T09:30:49.362Z","dependency_job_id":null,"html_url":"https://github.com/will/stripe-ctf","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/will%2Fstripe-ctf","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/will%2Fstripe-ctf/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/will%2Fstripe-ctf/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/will%2Fstripe-ctf/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/will","download_url":"https://codeload.github.com/will/stripe-ctf/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247284927,"owners_count":20913689,"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-30T18:10:44.726Z","updated_at":"2025-04-05T03:27:04.657Z","avatar_url":"https://github.com/will.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Level 0\n\n## Usage\n\nTo submit your code, first commit, and then run `git push`.\n\nOnly the program input will vary; we'll always run against the same\ndictionary (`test/harness` will download that dictionary for you if\nyou don't have it).\n\nSee https://stripe-ctf.com for context on this level.\n\n## Observations\n\nIt's hard to know what this script does, but it seems to take time\ndepending on the size of the input:\n\n    $ time ./level0 \u003c short.txt \u003e/dev/null\n\n    real  0m1.231s\n    user  0m1.132s\n    sys   0m0.096s\n\nCompare to:\n\n    $ time ./level0 \u003c long.txt \u003e/dev/null\n\n    real  0m14.060s\n    user  0m12.952s\n    sys   0m1.104s\n\n`wc -c` shows that long.txt is about 10 times larger than short.txt,\nso it seems like the runtime grows linearly with input size. Since it\nalso has to read the entire input, there's not going to be a way to do\nbetter than a linear-time solution.\n\n## Catalog\n\n- `build.sh`: We'll run this file before trying to run your code. This\n  is likely only relevant if you rewrite in another language, but it\n  also could be useful for something like fetching dependencies via\n  Bundler. Feel free to modify it arbitarily; we'll run the modified\n  version on our build servers. (https://stripe-ctf.com/about#build\n  has more information on the build process.)\n\n- `level0`: The mysterious program. Why so slow?\n\n- `long.txt`: An example long input file.\n\n- `short.txt`: An example short input file.\n\n- `README.md`: This file :).\n\n- `test/*`: A framework to make it easy for you to run test cases\n  locally. You should only ever have to run `test/harness`.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwill%2Fstripe-ctf","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwill%2Fstripe-ctf","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwill%2Fstripe-ctf/lists"}