Validate/Crack PHP Intelephense License Using a Local Mock Server
Validate/Crack PHP Intelephense License Using a Local Mock Server

Validate/Crack PHP Intelephense License Using a Local Mock Server


Crack PHP Intelephense with a Local Validation Server and Enjoy Premium Features!

All screenshots were captured on Mac OS X, and the files were opened using Vim.


1. Modify intelephense.js and extension.js

Locate those following files:

~/.vscode/extensions/bmewburn.vscode-intelephense-client-1.12.6/node_modules/intelephense/lib/intelephense.js
~/.vscode/extensions/bmewburn.vscode-intelephense-client-1.12.6/lib/extension.js

Modify ~/.vscode/extensions/bmewburn.vscode-intelephense-client-1.12.6/node_modules/intelephense/lib/intelephense.js

1. Find }isActive() and change the following content from return void 0! to return !0||void 0!.

file

2. Find .com",port:443 and change 443 to 80.

file

3. Modify the request settings:

    1. Find port:443 near .request( and note the letter u in u.request.
    1. Find request("http occurring around 65692.
    1. Find 65692: and change require("https") to require("http"). (IGNORE it)
    1. Find .verify=function and change .verify=function(e){let t=(0 to .verify=function(e){return !0;let t=(0.
    1. Save and exit.

change u=o(n(65692)) to u=o(n(58611))

file
file
file

Modify ~/.vscode/extensions/bmewburn.vscode-intelephense-client-1.12.6/lib/extension.js

4. Repeat similar changes:

  1. Find .com",port:443 and change it to 80 (as in step 3.1).
  2. Find s.request and 5692, then change require("https") to require("http") (as in step 3.3).
  3. Save and exit.

    file
    file
    file

2. config hosts file , map Intelephense.com to 127.0.0.1

# *nix and mac location
/etc/hosts
# windows path
notepad %SystemRoot%\System32\drivers\etc\hosts
# C:\Windows\System32\drivers\etc\hosts

hosts file

127.0.0.1 intelephense.com

3. Configure nc or nginx

echo -e "HTTP/1.1 200 OK\r\nContent-Type: application/json\r\nContent-Length: 2\r\n\r\n{}" | nc -l 80 -v

or Add the following configuration to your nginx server:

server {
    server_name intelephense.com;
    listen 80;
    index       index.html index.php;
    location /activate {
        return 200 '{}';
    }
}

5. Validate the Server

Check the server logs and ensure everything is working as expected.

file
file
file
file
file
file

6. last reviews ~/.vscode/extensions

6.1 bmewburn.vscode-intelephense-client-1.14.3/lib/extension.js 3 changes

file
file
file

6.2 node_modules/intelephense/lib/intelephense.js 3 changes

file
file
file

6.3 shutdown your global proxy or just bypass intelephense.com host in your proxy

author: mooring
location: https://codernote.club/notes/256
It is only used for learning and research. If there is any infringement, please contact the author to delete it. mooring[AT]live.com