{"id":37117962,"url":"https://github.com/ratson/mallory","last_synced_at":"2026-01-14T13:47:38.477Z","repository":{"id":57553334,"uuid":"68426811","full_name":"ratson/mallory","owner":"ratson","description":"HTTP/HTTPS proxy over SSH","archived":false,"fork":true,"pushed_at":"2016-09-17T03:19:04.000Z","size":220,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-11-22T00:48:34.907Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"justmao945/mallory","license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ratson.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":"2016-09-17T02:11:34.000Z","updated_at":"2016-09-17T02:12:16.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/ratson/mallory","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/ratson/mallory","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ratson%2Fmallory","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ratson%2Fmallory/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ratson%2Fmallory/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ratson%2Fmallory/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ratson","download_url":"https://codeload.github.com/ratson/mallory/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ratson%2Fmallory/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28422319,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T13:30:50.153Z","status":"ssl_error","status_checked_at":"2026-01-14T13:29:08.907Z","response_time":107,"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":[],"created_at":"2026-01-14T13:47:37.656Z","updated_at":"2026-01-14T13:47:38.461Z","avatar_url":"https://github.com/ratson.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"## mallory\nHTTP/HTTPS proxy over SSH.\n\n\n## Installation\n* Local machine: `go get github.com/justmao945/mallory/cmd/mallory`\n* Remote server: need our old friend sshd\n\n\n## Configueration\n### Config file\nDefault path is `$HOME/.config/mallory.json`, can be set when start program\n```\nmallory -config path/to/config.json\n```\n\nContent:\n* `id_rsa` is the path to our private key file, can be generated by `ssh-keygen`\n* `local_smart` is the local address to serve HTTP proxy with smart detection of destination host\n* `local_normal` is similar to `local_smart` but send all traffic through remote SSH server without destination host detection\n* `remote` is the remote address of SSH server\n* `blocked` is a list of domains that need use proxy, any other domains will connect to their server directly\n\n```json\n{\n  \"id_rsa\": \"$HOME/.ssh/id_rsa\",\n  \"local_smart\": \":1315\",\n  \"local_normal\": \":1316\",\n  \"remote\": \"ssh://user@vm.me:22\",\n  \"blocked\": [\n    \"angularjs.org\",\n    \"golang.org\",\n    \"google.com\",\n    \"google.co.jp\",\n    \"googleapis.com\",\n    \"googleusercontent.com\",\n    \"google-analytics.com\",\n    \"gstatic.com\",\n    \"twitter.com\",\n    \"youtube.com\"\n  ]\n}\n```\n\nBlocked list in config file will be reloaded automatically when updated, and you can do it manually:\n```\n# send signal to reload\nkill -USR2 \u003cpid of mallory\u003e\n\n# or use reload command by sending http request\nmallory -reload\n```\n\n### System config\n* Set both HTTP and HTTPS proxy to `localhost` with port `1315` to use with block list\n* Set env var `http_proxy` and `https_proxy` to `localhost:1316` for terminal usage\n\n### Get the right suffix name for a domain\n```\nmallory -suffix www.google.com\n```\n\n### A simple command to forward all traffic for the given port\n```sh\n# install it: go get github.com/justmao945/mallory/cmd/forward\n\n# all traffic through port 20022 will be forwarded to destination.com:22\nforward -network tcp -listen :20022 -forward destination.com:22\n\n# you can ssh to destination:22 through localhost:20022\nssh root@localhost -p 20022\n```\n\n### TODO\n* return http error when unable to dial\n* add host to list automatically when unable to dial\n* support multiple remote servers\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fratson%2Fmallory","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fratson%2Fmallory","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fratson%2Fmallory/lists"}