Git Product home page Git Product logo

httptoolkit-pro-patcher's Introduction

HTTP Toolkit Pro Patcher

This is a simple tool to patch the HTTP Toolkit Pro app to enable the Pro features without a license or subscription. But please consider supporting the developer by purchasing a license if you find the HTTP Toolkit useful.

Usage

  1. Clone this repository using git clone https://github.com/XielQs/httptoolkit-pro-patcher.git
  2. cd into the directory using cd httptoolkit-pro-patcher
  3. Run npm install or whatever package manager you use
  4. Run node . patch to patch the app

That's it! The app should now have the Pro features enabled.

Tip: You can also run node . restore to restore the original app.

Note: This tool only works with the latest version of the app. If the app is updated, you will need to run the patcher again.

Using with Proxy

If you want to add a proxy to the patcher, you can set the PROXY environment variable. For example, PROXY=http://x.x.x.x:8080 node . patch or PROXY=http://x.x.x.x:8080 node . start.

Note: The proxy must be an HTTPS/HTTP proxy. SOCKS proxies are not supported. Note: PROXY is only used for the patcher. The app itself will not use the proxy.

How it works

This tool simply creates a server (at port 5067) and acts as like a MITM proxy to intercept and download HTTP Toolkit app files (app.httptoolkit.tech) and patches the main.js file to enable the Pro features. For more information, see the patch's source code or the patcher file.

Tip: You can also change the PORT environment variable to use a different port. For example, PORT=8080 httptoolkit or PORT=8080 node . start.

Note: This tool does not modify the original app files. It only intercepts and modifies the files in memory (and saves the modified files to cache).

Requirements

  • Node.js (v15 or higher) (with npm 7 at least)

Compatibility

  • Windows: ✔
  • Linux: ✔
  • macOS: ✔

Known Issues

  • Linux: Try using sudo if you get permission errors
  • If you get an error like No internet connection and file is not cached, it means the patcher is unable to connect to the internet. Make sure you have an active internet connection and try again. If you are using a proxy, make sure proxy is working well.
  • If HTTP Toolkit does not start after patching, try updating your Node.js version to the latest version.
  • macOS: You may need to enable "App Management" for your terminal emulator in Privacy & Security if you get permission errors.

Screenshot

Screenshot

License

This project is licensed under the MIT License.

Disclaimer

This project is for educational purposes only. I do not condone piracy or any illegal activities. Use at your own risk.

Credits

httptoolkit-pro-patcher's People

Contributors

raidfourms avatar titoot avatar xielqs avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

httptoolkit-pro-patcher's Issues

HTTP Toolkit: Not Found

After I apply the patch, the tooklit tips: Not Found, like this picture.

app version: 1.17.2

20240702160832

TypeError: email.replaceAll is not a function

I'm getting this error when running the patcher

file:///C:/httptoolkit-pro-patcher/index.js:103
.replace('const APP_URL =', // ------- Injected by HTTP Toolkit Patcher -------\nconst email = \${email.replaceAll('', '\\')}`\n${patch}\n// ------- End patched content -------\nconst APP_URL =`)
^

TypeError: email.replaceAll is not a function
at patchApp (file:///C:/httptoolkit-pro-patcher/index.js:103:111)
at processTicksAndRejections (internal/process/task_queues.js:93:5)
at async file:///C:/httptoolkit-pro-patcher/index.js:130:5

Fix path

path.join('/opt', 'httptoolkit')
->
path.join('/opt', 'HTTP Toolkit')
Снимок экрана от 2024-05-26 00-23-14

Linux support

This works great, but doesn't natively support Linux clients. This should be easy to implement as the file structure is the same, the install path is just located in /opt/HTTP Toolkit/. Using the patch below everything runs as normal.

const appPath = path.join('/opt', 'HTTP Toolkit')
const serverPath = path.join('/opt', 'HTTP Toolkit', 'resources', 'httptoolkit-server')

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.