半个月变身计算机大神: http://www.yishimei.cn/?=va13s
11111吧
全部回复
仅看楼主
level 1
王冰心😄 楼主
半个月变身计算机大神:
http://www.yishimei.cn/?=va13s
2025年08月06日 03点08分 1
level 1
1 mkdir /root/test
chmod 770 /root/test
chgrp root /root/test
ls -ld /root/test
useradd -g root -d /ROOT -m ROOT
su ROOT
touch /root/test/1.txt
chmod 660 /root/test/1.txt
exit
Ls -l /root/test/1.txt
echo "ROOT ALL=(ALL) ALL" >> /etc/sudoers
chown root:root /root/test/1.txt
2
mysql -uroot -proot123
1.use idatabase;
select * from customer;
select distinct name, idnum from customer;
3.UPDATE customer SET idnum = left(MD5(idnum),16);
4.UPDATE customer
SET phone = CONCAT(
LEFT(phone, 3),
'****',
SUBSTRING(phone, 8)
);
3
cat /etc/ssh/sshd_config
ssh [email protected]
journalctl -u sshd
cat /var/log/*.log >> /root/log.txt
tar -zcvf log.tar.gz log.txt
2025年09月19日 07点09分 3
level 1
2025年11月18日 16点11分 4
level 1
2025年12月29日 03点12分 5
level 1
2025年12月31日 07点12分 6
level 1
2026年01月11日 02点01分 7
level 1
2026年01月13日 02点01分 8
level 1
2026年01月14日 10点01分 9
level 1
2026年01月14日 11点01分 10
1