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!
.
2. Find .com",port:443
and change 443
to 80
.
3. Modify the request settings:
-
- Find
port:443
near.request(
and note the letter u inu.request
.
- Find
-
- Find
request("http
occurring around65692
.
- Find
-
- Find
65692:
and changerequire("https")
torequire("http")
. (IGNORE it)
- Find
-
- Find
.verify=function
and change.verify=function(e){let t=(0
to.verify=function(e){return !0;let t=(0
.
- Find
-
- Save and exit.
change
u=o(n(65692))
tou=o(n(58611))
Modify ~/.vscode/extensions/bmewburn.vscode-intelephense-client-1.12.6/lib/extension.js
4. Repeat similar changes:
- Find
.com",port:443
and change it to80
(as in step 3.1). - Find
s.request
and5692
, then changerequire("https")
torequire("http")
(as in step 3.3). -
Save and exit.
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.
6. last reviews ~/.vscode/extensions
6.1 bmewburn.vscode-intelephense-client-1.14.3/lib/extension.js
3 changes
6.2 node_modules/intelephense/lib/intelephense.js
3 changes
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