Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
nu11secur1ty
GitHub Repository: nu11secur1ty/Kali-Linux
Path: blob/master/updater/local_update.py
1303 views
1
#!/usr/bin/python3
2
# Author @nu11secur1ty
3
import os
4
os.system('apt update -y')
5
os.system('apt install -f -y')
6
os.system('apt --fix-broken install -y')
7
os.system('apt --fix-missing install -y')
8
os.system('apt autoremove -y')
9
# Dist upgrade
10
os.system('apt dist-upgrade -y')
11
os.system('apt -y full-upgrade -y')
12
os.system('dpkg --configure -a')
13
os.system('apt --fix-broken install -y')
14
os.system('apt install -f -y')
15
os.system('apt autoremove -y')
16
17
# Offline mode
18
question = input("If you need to re-login or reboot? Default is (N)y/n:")
19
os.system('echo')
20
if question == "y":
21
start_over = os.system("telinit 6")
22
else:
23
raise SystemExit
24
25