Example #1
0
 def run(self):
     clear_screen()
     target = input('Select a Target IP: ')
     subprocess.run(["sudo", "nmap", "-O", "-Pn", target])
Example #2
0
 def run(self):
     clear_screen()
     host = input("Enter host name (e.g. www.google.com):-  ")
     ips = socket.gethostbyname(host)
     print(ips)
Example #3
0
    if not len(args):
        return set()

    if ',' in args[0]:
        return set(args[0].split(','))

    if '-' in args[0]:
        interval = args[0].split('-', maxsplit=1)

        tags = set()
        start = int(interval[0])
        while start <= int(interval[1]):
            tags.add(str(start))
            start += 10

        return tags

    if args[0].isdigit():
        return set([args[0]])

    return set()


if __name__ == '__main__':
    core.clear_screen()

    search_tags = parse_args(sys.argv[1:])
    words = core.read_words('nihongo/kanji.txt', search_tags)

    core.learn(words)