Directadmin 破解版 Directadmin 破解教程
声明:本篇文章是以探究学习的角度进行讲述,所涉及Nulled均为个人研究,请勿用于商业用途。
本篇文章基于Centos7
本文章基于正版文件激活,然后伪造网卡达到激活。
缺点:授权文件一过期就GG
总结:伪授权
代码来自:whmcs.online
yum -y install nano wget perl
wget https://www.vipkj.net/soft/Linux/setup.sh
chmod +x setup.sh
./setup.sh
授权:
Client ID (CID): 9192
License ID (LID): 919233
安装完毕后需执行如下命令(一条一条发送)
firewall-cmd --zone=public --add-port=2222/tcp --permanent
firewall-cmd --zone=public --add-port=21/tcp --permanent
firewall-cmd --zone=public --add-port=80/tcp --permanent
firewall-cmd --zone=public --add-port=25/tcp --permanent
firewall-cmd --reload
systemctl restart directadmin
cd /usr/local/directadmin/conf/
systemctl stop directadmin
rm -rf /usr/local/directadmin/conf/license.key
wget -O /usr/local/directadmin/conf/license.key https://directadmin.whmcs.nu/license.key
chmod 600 /usr/local/directadmin/conf/license.key
chown diradmin:diradmin /usr/local/directadmin/conf/license.key
ifconfig eth0:92 37.97.247.189 netmask 255.255.255.0 up
echo 'DEVICE=eth0:92' >> /etc/sysconfig/network-scripts/ifcfg-eth0:92
echo 'IPADDR=37.97.247.189' >> /etc/sysconfig/network-scripts/ifcfg-eth0:92
echo 'NETMASK=255.255.255.0' >> /etc/sysconfig/network-scripts/ifcfg-eth0:92
systemctl restart network
/usr/bin/perl -pi -e 's/^ethernet_dev=.*/ethernet_dev=eth0:92/' /usr/local/directadmin/conf/directadmin.conf
systemctl start directadmin
安装完毕:使用ip:2222登录
如果忘记了默认账号密码,可以输入以下命令查看 cat /usr/local/directadmin/scripts/setup.txt
Mysql账号密码可以输入以下命令查看 cat /usr/local/directadmin/conf/mysql.conf