如何使用python批量生成LINUX密码,并远程更改蓝讯

如何使用python批量生成LINUX密码,并远程更改蓝讯,第1张

就用python的socket编程就可以了呵

在linux下面用python写一个,windows下面用python写一个,然后通过传输字符串来判断命令

然后linux将返回信息返回给windows,然后windows在显示

#!/bin/shi=0whiletruedoleti=i+1echo"u"$i":123456">>/root/user.txtecho"createinguseru$i.."useraddu$iif[$i-eq100]then/usr/sbin/chpasswd/root/user.txt/bin/rm-f/root/user.txtexitfidone#ifyouwanttodeletealloftheuser,youcan#i=0#whiletrue#do#leti=i+1#echo"deleteinguseru$i.."#userdel-ru$i#if[$i-eq100]#then#exit#fi#done供参考


欢迎分享,转载请注明来源:内存溢出

原文地址:https://54852.com/bake/11660362.html

(0)
打赏 微信扫一扫微信扫一扫 支付宝扫一扫支付宝扫一扫
上一篇 2023-05-17
下一篇2023-05-17

发表评论

登录后才能评论

评论列表(0条)

    保存