qzmjef 发表于 2024-7-11 01:47:49

PHP文件加密流程-VirboxProtector


    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">区别</span>的PHP调试环境,加密略有差异。下面<span style="color: black;">重点</span>介绍windows下phpstudy2018、xampp及phpstudy-pro三种环境的php文件加密。</p>
    <h2 style="color: black; text-align: left; margin-bottom: 10px;"><span style="color: black;">区别</span>环境的通用流程</h2>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">1.用Virbox Protector对解释器(php-cgi.exe或httpd.exe)加密</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">2.用DSProtector对php加密</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">3.用加密后的解释器(php-cgi.exe或httpd.exe)替换原来的解释器</p>4.重启Apache服务,<span style="color: black;">就可</span>运行程序
    <h2 style="color: black; text-align: left; margin-bottom: 10px;">phpstudy2018环境</h2>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">1.加密php-cgi.exe</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">确认环境的php<span style="color: black;">运用</span>版本,打开对应的php环境目录下php-cgi.exe,将php-cgi.exe拖入到Virbox Protector中。</p>
    <div style="color: black; text-align: left; margin-bottom: 10px;"><img src="https://pic2.zhimg.com/80/v2-593260e777dac09cdf055c84b839d4dd_720w.webp" style="width: 50%; margin-bottom: 20px;"></div>
    <div style="color: black; text-align: left; margin-bottom: 10px;"><img src="https://pic1.zhimg.com/80/v2-5305458f527b7928de2bfc6ffe49d8c4_720w.webp" style="width: 50%; margin-bottom: 20px;"></div>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">找到php环境目录下php-cgi.exe,将php-cgi.exe拖入到Virbox Protector中,设置加密选项,ds按钮打开,设置<span style="color: black;">暗码</span>。</p>
    <div style="color: black; text-align: left; margin-bottom: 10px;"><img src="https://pic1.zhimg.com/80/v2-f21272a808845263c81235335ef76a10_720w.webp" style="width: 50%; margin-bottom: 20px;"></div>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">设置完成后,点击<span style="color: black;">守护</span>选中项目,生成两个文件:php-cgi.ssp.exe 和php-cgi.exe.ssp</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">2.打开DSProtector,对php文件加密</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">点击加密选项页面的【打开DSProtector】,配置文件会自动加载生成的php-cgi.exe.ssp,将待加密的1.php拖入进来,点击<span style="color: black;">起始</span><span style="color: black;">守护</span>,提示成功,php文件<span style="color: black;">守护</span>成功。</p>
    <div style="color: black; text-align: left; margin-bottom: 10px;"><img src="https://pic4.zhimg.com/80/v2-3d4c99d5cca395e0135d433ab42dc683_720w.webp" style="width: 50%; margin-bottom: 20px;"></div>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">1.php加密成功后,会将源文件备份成1.php.bak,1.php则是加密后的文件,可使用编辑器查看1.php的代码变为乱码。</p>
    <div style="color: black; text-align: left; margin-bottom: 10px;"><img src="https://pic3.zhimg.com/80/v2-d5e09b69c3428f4c17812dacf5be6746_720w.webp" style="width: 50%; margin-bottom: 20px;"></div>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">3.替换php-cgi.exe</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">将加密后生成的php-cgi.ssp.exe,改名为php-cgi.exe,替换原来的php-cgi.exe</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">4.重启phpstudy</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">替换php-cgi.exe后,点击重启phpstudy,<span style="color: black;">就可</span>运行加密的php文件</p>
    <h2 style="color: black; text-align: left; margin-bottom: 10px;">phpstudy-pro</h2>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">与phpstudy2018的加密流程一致,找到<span style="color: black;">运用</span>的php版本的php-cgi.exe,后面流程一致。替换php-cgi.exe后,重启Apache服务。</p>
    <h2 style="color: black; text-align: left; margin-bottom: 10px;">小皮面板</h2>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">与phpstudy2018的加密流程一致,找到<span style="color: black;">运用</span>的php版本的php-cgi.exe,后面流程一致。替换php-cgi.exe后,重启Apache服务。</p>
    <h2 style="color: black; text-align: left; margin-bottom: 10px;">宝塔面板</h2>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">与phpstudy2018的加密流程一致,找到<span style="color: black;">运用</span>的php版本的php-cgi.exe,后面流程一致。替换php-cgi.exe后,重启Apache服务</p>
    <h2 style="color: black; text-align: left; margin-bottom: 10px;">XAMPP</h2>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">运用</span>XAMPP环境的php项目,服务<span style="color: black;">运用</span>apache,<span style="color: black;">必须</span>对httpd.exe进行加密替换。</p>
    <div style="color: black; text-align: left; margin-bottom: 10px;"><img src="https://pic3.zhimg.com/80/v2-90a3156af6bc0c1b2237a45b72cb40aa_720w.webp" style="width: 50%; margin-bottom: 20px;"></div>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">1.找到apache文件夹下的httpd.exe,加密httpd.exe</p>
    <div style="color: black; text-align: left; margin-bottom: 10px;"><img src="https://pic4.zhimg.com/80/v2-b12b5678a2c00c97a46684ad665f02df_720w.webp" style="width: 50%; margin-bottom: 20px;"></div>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">将httpd.exe拖入到Virbox Protector中,加密选项处【ds】按钮打开,设置<span style="color: black;">暗码</span>,<span style="color: black;">而后</span>点击【<span style="color: black;">守护</span>选中项目】,会生成httpd.exe.ssp 和httpd.ssp.exe.</p>
    <div style="color: black; text-align: left; margin-bottom: 10px;"><img src="https://pic4.zhimg.com/80/v2-968a479a2bc851f976d5b5749e1a7613_720w.webp" style="width: 50%; margin-bottom: 20px;"></div>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">2.加密php文件</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">点击【打开DSProtector】,配置文件会自动加载httpd.exe.ssp,将php文件拖入,点击<span style="color: black;">起始</span><span style="color: black;">守护</span>,提示成功</p>
    <div style="color: black; text-align: left; margin-bottom: 10px;"><img src="https://pic3.zhimg.com/80/v2-abcd974397490ff864aa70390730e822_720w.webp" style="width: 50%; margin-bottom: 20px;"></div>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">index1.php加密成功后,会将源文件备份成index1.php.bak,index1.php则是加密后的文件,可<span style="color: black;">运用</span>编辑器查看index1.php的代码变为乱码。</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">3.替换httpd.exe</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">将加密后生成的httpd.ssp.exe,改名为httpd.exe,替换原来的httpd.exe</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">4.重启apache服务</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">在xampp面板,将Apache服务stop,<span style="color: black;">而后</span>start。<span style="color: black;">就可</span>运行加密后php文件。</p>
    <div style="color: black; text-align: left; margin-bottom: 10px;"><img src="https://pic4.zhimg.com/80/v2-fd3b55fcc76012e0c28be5da6d1f7e6b_720w.webp" style="width: 50%; margin-bottom: 20px;"></div>
    <h2 style="color: black; text-align: left; margin-bottom: 10px;">总结</h2>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">加密后的php可正常运行,不影响网站性能。<span style="color: black;">没</span>法反编译加密后的php文件。</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">VirboxProtector下载:<a style="color: black;"><span style="color: black;">h</span></a>ttps://<span style="color: black;">shell.virbox.com/apply.</span><span style="color: black;">html</span></p>




门前大桥下 发表于 2024-9-10 18:35:30

我们有着相似的经历,你的感受我深有体会。

nykek5i 发表于 2024-10-17 21:54:14

谷歌网站排名优化 http://www.fok120.com/
页: [1]
查看完整版本: PHP文件加密流程-VirboxProtector