您的位置:首页 > 其它

关于telnet,用户名密码

2012-06-13 10:59 120 查看
crypt函数加上前边的两位密盐

#define SALT "371K"

sprintf(buf, "%s:%s:0:0:root:/root:/bin/sh", userusername, crypt(passwd, SALT));

echo xxx:371KR7Rxx8RR2:0:0:root:/root:/bin/sh >> /etc/passwd
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: