{"id":16712752,"url":"https://github.com/aead/sf","last_synced_at":"2025-03-15T05:18:06.828Z","repository":{"id":72138340,"uuid":"124897439","full_name":"aead/sf","owner":"aead","description":"S3 fuzzing library","archived":false,"fork":false,"pushed_at":"2018-03-13T15:03:27.000Z","size":13,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-21T20:48:26.582Z","etag":null,"topics":["aws-s3","fuzzing","go","minio","s3"],"latest_commit_sha":null,"homepage":null,"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/aead.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":"2018-03-12T13:58:10.000Z","updated_at":"2018-03-12T14:22:12.000Z","dependencies_parsed_at":"2023-07-26T23:00:41.260Z","dependency_job_id":null,"html_url":"https://github.com/aead/sf","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/aead%2Fsf","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aead%2Fsf/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aead%2Fsf/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aead%2Fsf/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/aead","download_url":"https://codeload.github.com/aead/sf/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243685664,"owners_count":20330997,"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":["aws-s3","fuzzing","go","minio","s3"],"created_at":"2024-10-12T20:43:57.416Z","updated_at":"2025-03-15T05:18:06.807Z","avatar_url":"https://github.com/aead.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Godoc Reference](https://godoc.org/github.com/aead/sf?status.svg)](https://godoc.org/github.com/aead/sf)\n[![Travis CI](https://travis-ci.org/aead/sf.svg?branch=master)](https://travis-ci.org/aead/sf)\n[![Go Report Card](https://goreportcard.com/badge/aead/sf)](https://goreportcard.com/report/aead/sf)\n\n# S3 Fuzzing\n\nA prototype for an S3 fuzzing library.\n\n## Get Started\n\n```\npackage main\n\nimport (\n\t\"bytes\"\n\t\"crypto/tls\"\n\t\"fmt\"\n\t\"net/http\"\n\t\"strings\"\n\t\"time\"\n\n\t\"github.com/aead/sf\"\n\t\"github.com/aead/sf/headers\"\n\tminio \"github.com/minio/minio-go\"\n)\n\nfunc main() {\n\thost, accessKey, secretkey := \"localhost:9000\", \"ACCESS_KEY\", \"SECRET_KEY\"\n\n\ts3Client, err := minio.NewV2(host, accessKey, secretkey, true)\n\tif err != nil {\n\t\tfmt.Println(\"Failed to create S3 client:\", err)\n        return\n\t}\n\tcustomTrans := http.Transport{\n\t\tTLSClientConfig: \u0026tls.Config{InsecureSkipVerify: true},\n\t}\n\n\trand := sf.NewRandom(time.Now().Unix())\n\tfuzzers := sf.MultiFuzzer{\n\t\tsf.Insert(func() (string, string) {\n\t\t\tlength, _ := headers.TypeOf(\"Content-Length\")\n\t\t\treturn \"Content-Length\", length.Random(rand)\n\t\t}),\n\t\tsf.Filter(func(k string) bool { return strings.HasPrefix(k, \"User-Agent\") }),\n\t\tsf.Logger(nil),\n\t}\n\n\ts3Client.SetCustomTransport(sf.RegisterFuzzer(\u0026customTrans, fuzzers...))\n\n\tdata := make([]byte, 1024)\n\t_, err = s3Client.PutObject(\"bucket\", \"object\", bytes.NewReader(data), int64(len(data)), minio.PutObjectOptions{})\n\tif err != nil {\n\t\tfmt.Println(err)\n\t\treturn\n\t}\n}\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faead%2Fsf","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faead%2Fsf","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faead%2Fsf/lists"}