Update plugin.py

This commit is contained in:
gutosie
2022-12-20 20:20:02 +02:00
committed by GitHub
parent 8810db440c
commit 7c9becbfb2

View File

@@ -1768,13 +1768,13 @@ def main(session, **kwargs):
else:
if not fileExists('/tmp/ver.txt'):
if fileExists('/usr/bin/curl'):
os.system('cd /tmp; curl -O --ftp-ssl -k https://raw.githubusercontent.com/gutosie/neoboot/master/ver.txt; curl -O --ftp-ssl -k https://raw.githubusercontent.com/gutosie/neoboot/master/.neouser; cd /')
os.system('cd /tmp; curl -O --ftp-ssl -k https://raw.githubusercontent.com/gutosie/neoboot/master/ver.txt; curl -O --ftp-ssl -k https://raw.githubusercontent.com/gutosie/neoscript/master/.neouser; cd /')
if not fileExists('/tmp/ver.txt'):
if fileExists('/usr/bin/wget'):
os.system('cd /tmp; wget --no-check-certificate https://raw.githubusercontent.com/gutosie/neoboot/master/ver.txt; wget --no-check-certificate https://raw.githubusercontent.com/gutosie/neoboot/master/.neouser; cd /')
os.system('cd /tmp; wget --no-check-certificate https://raw.githubusercontent.com/gutosie/neoboot/master/ver.txt; wget --no-check-certificate https://raw.githubusercontent.com/gutosie/neoscript/master/.neouser; cd /')
if not fileExists('/tmp/ver.txt'):
if fileExists('/usr/bin/fullwget'):
os.system('cd /tmp; fullwget --no-check-certificate https://raw.githubusercontent.com/gutosie/neoboot/master/ver.txt; fullwget --no-check-certificate https://raw.githubusercontent.com/gutosie/neoboot/master/.neouser; cd /')
os.system('cd /tmp; fullwget --no-check-certificate https://raw.githubusercontent.com/gutosie/neoboot/master/ver.txt; fullwget --no-check-certificate https://raw.githubusercontent.com/gutosie/neoscript/master/.neouser; cd /')
if fileExists('/tmp/ver.txt'):
if fileExists('/usr/lib/periodon/.activatedmac'):
os.system('chattr -i /usr/lib/periodon/.activatedmac')