{"id":21385342,"url":"https://github.com/touchifyapp/fake-corp-proxy","last_synced_at":"2025-08-03T19:11:36.919Z","repository":{"id":35133075,"uuid":"210938086","full_name":"touchifyapp/fake-corp-proxy","owner":"touchifyapp","description":"A Node.js module and command-line utility to start a fake HTTP(S) Forwrard-Proxy server with Basic or NTLM fake authentication.","archived":false,"fork":false,"pushed_at":"2022-12-11T07:11:53.000Z","size":105,"stargazers_count":0,"open_issues_count":6,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-22T23:42:15.956Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","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/touchifyapp.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":"2019-09-25T20:49:47.000Z","updated_at":"2020-11-12T19:56:54.000Z","dependencies_parsed_at":"2023-01-15T14:29:40.091Z","dependency_job_id":null,"html_url":"https://github.com/touchifyapp/fake-corp-proxy","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/touchifyapp%2Ffake-corp-proxy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/touchifyapp%2Ffake-corp-proxy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/touchifyapp%2Ffake-corp-proxy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/touchifyapp%2Ffake-corp-proxy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/touchifyapp","download_url":"https://codeload.github.com/touchifyapp/fake-corp-proxy/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243864626,"owners_count":20360355,"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-11-22T11:46:54.891Z","updated_at":"2025-03-16T11:44:35.589Z","avatar_url":"https://github.com/touchifyapp.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# fake-corp-proxy [![npm version](https://badge.fury.io/js/fake-corp-proxy.svg)](https://badge.fury.io/js/fake-corp-proxy)\n\nA [Node.js](https://nodejs.org) module and command-line utility to start a fake HTTP(S) Forward-Proxy server with Basic or NTLM fake authentication.\n\n## Installation\n\nTo use as a command-line utility:\n\n```bash\nnpm install -g fake-corp-proxy\n```\n\nTo use as a node.js module:\n\n```bash\nnpm install fake-corp-proxy\n```\n\n## CLI HTTP usage\n\nSimple usage:\n\n```bash\nfake-corp-proxy --port 8080 --ntlm\n```\n\nAvailable options:\n\n```\nOptions:\n  --version          Show version number                               [boolean]\n  --port, -p         Use this port when starting proxy  [number] [default: 8080]\n  --basic, -b        Enable Basic Authentication      [boolean] [default: false]\n  --ntlm, -n         Enable NTLM Authentication       [boolean] [default: false]\n  --https, -s        Enable HTTPS server              [boolean] [default: false]\n  -h, --help         Show help                                         [boolean]\n```\n\n## CLI HTTPS usage\n\nTo make `fake-corp-proxy` to handle HTTPS protocol, you need to generate a CA certificate:\n\n```bash\nfake-corp-proxy-ca root my-ca-name\n```\n\nThen, you have to trust the generated certificate on your OS ([More infos](#trust-ca-certificate)).\n\nOnce your CA certificate is trusted you can tunnel HTTPS requests to your proxy. You can also run the proxy in HTTPS mode.\n\n```bash\nfake-corp-proxy --https\n```\n\nIf you forget where is stored you CA certificate, you can run:\n\n```bash\nfake-corp-proxy-ca root-path\n```\n\n## Module usage\n\nSimple usage:\n\n```js\nconst fakeProxy = require(\"fake-corp-proxy\");\n\n// Start server\nconst server = fakeProxy.start({\n    port: 8080,\n    ntlm: true\n});\n\n// When finished\nserver.close();\n```\n\n*Note: The same options as CLI are available\"\n\n## Proxy Auto-Configuration (PAC Script)\n\nThis Proxy supports PAC Script generation:\n\n```bash\ncurl http://localhost:8080/pac\n```\n\n## Simulate Authentication errors\n\nThis module does not really authenticate users.\nTo simulate an unauthorized user, just use a username starting with `unknwown`.\n(eg: `unkwnown`, `unkwnown-user`, `unkwnown-test`)\n\n```bash\ncurl --proxy-insecure -x \\\"https://unknown:password@localhost:8081\\\" https://www.google.com/\n```\n\n## Exemples\n\nForward-Proxy in HTTP only:\n```bash\nfake-corp-proxy\n```\n\nForward-Proxy with HTTP and HTTPS modes enabled:\n```bash\nfake-corp-proxy --https\n```\n\nForward-Proxy with HTTP and HTTPS and Basic authentication:\n```bash\nfake-corp-proxy --https --basic\n```\n\nForward-Proxy with HTTP and HTTPS and NTLM authentication:\n```bash\nfake-corp-proxy --https --ntlm\n```\n\nForward-Proxy with HTTP and HTTPS and NTLM authentication and verbose logging (details of authentication):\n```bash\nfake-corp-proxy --https --ntlm --verbose\n```\n\n## Trust CA certificate\n\nOn Windows:\n1. Double-click on the certificate file\n2. Click on the `Install Certificate` button\n3. On opened window, select `Place all certificates in the following store`\n4. Click `Browse` then select `Trusted Root Certification Authorities` and click `OK`\n\nOn OSX:\n1. Double-click on the certificate file\n2. Select `login` or `system` in the select box and click `Add`\n3. Open `Keychain` and find the newly imported certificate\n4. Double-click on the certificate\n5. Select `Always Trust` in the `When using this certificate` select box\n\n## License\n\nView [license information](https://github.com/touchifyapp/fake-corp-proxy/blob/master/LICENSE) for the software contained in this image.\n\n## Contributing\n\nYou are invited to contribute new features, fixes, or updates, large or small; we are always thrilled to receive pull requests, and do our best to process them as fast as we can.\n\nBefore you start to code, we recommend discussing your plans through a [GitHub issue](https://github.com/touchifyapp/fake-corp-proxy/issues), especially for more ambitious contributions. This gives other contributors a chance to point you in the right direction, give you feedback on your design, and help you find out if someone else is working on the same thing.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftouchifyapp%2Ffake-corp-proxy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftouchifyapp%2Ffake-corp-proxy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftouchifyapp%2Ffake-corp-proxy/lists"}