virtualbox/functions/command_functions.py
def ipsearch(term):
    """
    ipsearch
    [EXTEND]
    ipsearch - Search the system for attackable IPs
    """
    hint = gethint()
    hintlist = hint.split()
    hintlist = ipcypher(hintlist)
    for item in hintlist:
        random_int = random.randint(1, 2)
        for i in range(random_int):
            randip = str(f"{random.randint(100,99999)}.{random.randint(1000,9999)}\
                .{random.randint(100,9999)}.{random.randint(1,999)}")
            clear_term(term)
            print_box('Found IP', ['Scanning:', randip, 'Not Attackable'], term)
            time.sleep(0.5)
        clear_term(term)
        print_box('Found IP', ['Scanning:', item, 'Attackable'], term)
        time.sleep(0.5)
        if random_int == 1:
            randip = str(f"{random.randint(100,99999)}.{random.randint(1000,9999)}\
                .{random.randint(100,9999)}.{random.randint(1,999)}")
            clear_term(term)
            print_box('Found IP', ['Scanning:', randip, 'Not Attackable'], term)
            time.sleep(0.5)
    time.sleep(0.5)
    randip = str(f"{random.randint(100,99999)}.{random.randint(1000,9999)}\
        .{random.randint(100,9999)}.{random.randint(1, 999)}")
    clear_term(term)
    print_box('Found IP', ['Scanning:', randip, 'Not Attackable'], term)
    time.sleep(1)
    printlist = []
    for item in hintlist:
        printlist.append(item)
    clear_term(term)
    printlist.append('You can scan these IPs by using "ipscan [ip]!"')
    print_box('Found IP', printlist, term)
    OSlog.append("unknown user: performed IP search,")

    ipsearch
    [EXTEND]
    ipsearch - Search the system for attackable IPs
    
ipsearch
[EXTEND]
ipsearch - Search the system for attackable IPs
ipsearch [ EXTEND ] ipsearch - Search the system for attackable IPs
def ipsearch(term):
    hint = gethint()
    hintlist = hint.split()
    hintlist = ipcypher(hintlist)
    for item in hintlist:
        random_int = random.randint(1, 2)
        for i in range(random_int):
            randip = str(f"{random.randint(100,99999)}.{random.randint(1000,9999)}\
                .{random.randint(100,9999)}.{random.randint(1,999)}")
            clear_term(term)
            print_box('Found IP', ['Scanning:', randip, 'Not Attackable'], term)
            time.sleep(0.5)
        clear_term(term)
        print_box('Found IP', ['Scanning:', item, 'Attackable'], term)
        time.sleep(0.5)
        if random_int == 1:
            randip = str(f"{random.randint(100,99999)}.{random.randint(1000,9999)}\
                .{random.randint(100,9999)}.{random.randint(1,999)}")
            clear_term(term)
            print_box('Found IP', ['Scanning:', randip, 'Not Attackable'], term)
            time.sleep(0.5)
    time.sleep(0.5)
    randip = str(f"{random.randint(100,99999)}.{random.randint(1000,9999)}\
        .{random.randint(100,9999)}.{random.randint(1, 999)}")
    clear_term(term)
    print_box('Found IP', ['Scanning:', randip, 'Not Attackable'], term)
    time.sleep(1)
    printlist = []
    for item in hintlist:
        printlist.append(item)
    clear_term(term)
    printlist.append('You can scan these IPs by using "ipscan [ip]!"')
    print_box('Found IP', printlist, term)
    OSlog.append("unknown user: performed IP search,")
def ipsearch ( term ) : hint = gethint ( ) hintlist = hint . split ( ) hintlist = ipcypher ( hintlist ) for item in hintlist : random_int = random . randint ( 1 , 2 ) for i in range ( random_int ) : randip = str ( f"{random.randint(100,99999)}.{random.randint(1000,9999)}\
                .{random.randint(100,9999)}.{random.randint(1,999)}" ) clear_term ( term ) print_box ( 'Found IP' , [ 'Scanning:' , randip , 'Not Attackable' ] , term ) time . sleep ( 0.5 ) clear_term ( term ) print_box ( 'Found IP' , [ 'Scanning:' , item , 'Attackable' ] , term ) time . sleep ( 0.5 ) if random_int == 1 : randip = str ( f"{random.randint(100,99999)}.{random.randint(1000,9999)}\
                .{random.randint(100,9999)}.{random.randint(1,999)}" ) clear_term ( term ) print_box ( 'Found IP' , [ 'Scanning:' , randip , 'Not Attackable' ] , term ) time . sleep ( 0.5 ) time . sleep ( 0.5 ) randip = str ( f"{random.randint(100,99999)}.{random.randint(1000,9999)}\
        .{random.randint(100,9999)}.{random.randint(1, 999)}" ) clear_term ( term ) print_box ( 'Found IP' , [ 'Scanning:' , randip , 'Not Attackable' ] , term ) time . sleep ( 1 ) printlist = [ ] for item in hintlist : printlist . append ( item ) clear_term ( term ) printlist . append ( 'You can scan these IPs by using "ipscan [ip]!"' ) print_box ( 'Found IP' , printlist , term ) OSlog . append ( "unknown user: performed IP search," )
ipsearch
[EXTEND]
ipsearch - Search the system for attackable IPs
ipsearch [ EXTEND ] ipsearch - Search the system for attackable IPs
"""
    ipsearch
    [EXTEND]
    ipsearch - Search the system for attackable IPs
    """
term