lobo.py
仉嘉泽
2023-12-01
#!/usr/bin/python
#coding:utf8
import time
import hashlib
from urllib import urlopen
import os
#usern=raw_input("u:")
#passw=raw_input("p:")
usern='13696274461@myxkd'
passw='13696274461'
usern=usern.upper()
timestr=time.strftime("%H:%m:%S",time.localtime())
m=hashlib.md5()
m.update(timestr)
timemd5=m.hexdigest()
str1=timemd5[0:8].upper()
str2=str1+"Tyroth"+usern+passw
m=hashlib.md5()
m.update(str2)
str2=m.hexdigest()
str2=str2[0:20].upper()
usern='~ghca'+str1+"2002"+str2+usern
s0="""noipdefault
defaultroute
replacedefaultroute
noauth
persist
plugin rp-pppoe.so eth0
user """
s1="""
password """
s2="""
usepeerdns"""
s=s0+'"'+usern+'"'+s1+'"'+passw+'"'+s2
os.system("touch /etc/ppp/peers/lobo")
f=open("/etc/ppp/peers/lobo","w")
f.write(s)
f.close()
os.system("pon lobo")