ProxymanApp / Proxyman

Modern. Native. Delightful Web Debugging Proxy for macOS, iOS, and Android ⚡️
https://proxyman.io
5.35k stars 177 forks source link

Is there a way to decrypt the data response in the script with RSA? #1996

Open UknowHui opened 2 months ago

UknowHui commented 2 months ago

Description

I want to process the response, decrypt it, and can write a script or use other methods, such as sending the request again to process the data?

NghiaTranUIT commented 2 months ago

@UknowHui it's what the Scripting Tool is built for:

  1. Right Click on your request -> Tools -> Scripting
  2. Learn to use Scripting with Addons, with CryptoJS.js. It has RSA encryption/decryption.

You can check out the Snippet code: https://docs.proxyman.io/scripting/snippet-code

UknowHui commented 2 months ago

I see AES and DES, but there is no way to support RSA

NghiaTranUIT commented 2 months ago

As I mentioned, you can build your own add-ons.

  1. find simple RSA npm packge
  2. Use webpack or Browserlify to build your addons with a single JS.
  3. Import to Proxyman to use.