コード例 #1
0
ファイル: kaliFix.py プロジェクト: OliverSolomon/kali123
def runLast():
    with open('logs.log', 'r') as f:
        content = f.readlines()
        print('\n\t \033[31m there is logs !')
        f.close()

    if content:
        afterReboot()
        sst("rm logs.txt")
コード例 #2
0
ファイル: kaliFix.py プロジェクト: OliverSolomon/kali123
def drivers():
    print("\n  \033[31m  Your Pc will reboot after this \n\n")
    
    with open("logs.log", 'w') as f:
        f.write(" When the roll is called up yonder i will be there ")

    sst("sudo apt-get install git build-essential linux-headers-generic && git clone https://github.com/Mange/rtl8192eu-linux-driver.git && cd rtl8192eu-linux-driver && make && sudo make install && poweroff")

    print("\033[32m SUCCESS cloned !!")
コード例 #3
0
from os import system as sst

print("Please run this as Super User")
partition = input(
    " What is the location of the partition[use lsblk to find out]? eg(sda6):  "
)
sst("mount /dev/" + partition + " /mnt")
sst(" mount --bind /dev /mnt/dev && mount --bind /proc /mnt/proc && mount --bind /sys /mnt/sys && chroot /mnt "
    )
コード例 #4
0
ファイル: kaliFix.py プロジェクト: OliverSolomon/kali123
def afterReboot():
    sst('exit && exit ')
    print("\n \033[93m Welcome back, we will be done in a few \n\n")
    sst("cd rtl8192eu-linux-driver && make clean && make && sudo make install")
コード例 #5
0
ファイル: kaliFix.py プロジェクト: OliverSolomon/kali123
from os import system as sst

# We aim to install these
mainLine = "sudo apt install apt-file -y && sudo apt-file update && apt-file find rtl8192cufw.bin"

#configure in sources.list
aptRepos = ["deb http://http.kali.org/kali kali-rolling main non-free contrib", "deb-src http://http.kali.org/kali kali-rolling main non-free contrib"]


with open("/etc/apt/sources.list", 'w') as f:
    for i in aptRepos:
        f.write(i + '\n')
    f.close()

sst('sudo apt update && sudo apt upgrade -y ' + mainLine)
print("\n\t \033[93m SUCCESS Up To Date!")


def drivers():
    print("\n  \033[31m  Your Pc will reboot after this \n\n")
    
    with open("logs.log", 'w') as f:
        f.write(" When the roll is called up yonder i will be there ")

    sst("sudo apt-get install git build-essential linux-headers-generic && git clone https://github.com/Mange/rtl8192eu-linux-driver.git && cd rtl8192eu-linux-driver && make && sudo make install && poweroff")

    print("\033[32m SUCCESS cloned !!")


def afterReboot():