コード例 #1
0
 def run(self):
     for i in range(random.randint(4, 6)):
         data = [random.randint(0, pow(2, bits) - 1) for i in range(columns)]
         # data = [i*3 for i in range(columns)]
         data = map(lambda n: "{:0>#10x}".format(n), data)
         data = " ".join(data)
         dprint(data, chunksize=11, delay=0.1)
         time.sleep(0.5)
コード例 #2
0
    def run(self):
        lines = bootlog.splitlines()
        random.shuffle(lines)

        #count = random.randint(0, len(lines))
        count = random.randint(10, 30)

        lines = lines[:count]

        for line in lines:
            if random.random() < 0.4:
                color = random.choice([Fore.BLUE, Fore.RED, Fore.GREEN, Fore.YELLOW])
                print(color, end="")
            dprint(line,end="")
            print(Fore.RESET)
            time.sleep(random.uniform(0.01, 0.4))
コード例 #3
0
    def run(self):
        clusters = [random.randint(100, 200) for i in range(random.randint(8,16))]
        size = sum(clusters)

        connected = 0
        while connected < size:
            print("\rEstablishing connections: {:4d}/{:4d}".format(connected, size), end="")
            connected += 1
            time.sleep((random.random() ** 50) * 0.1)
        print()

        for i, cluster in enumerate(clusters):
            dprint("  Cluster #{:02d} ({:3d} nodes) -- ".format(i, cluster), end="")
            time.sleep(random.random() * 0.8)
            print("[{f.GREEN}{s.BRIGHT}Online{f.RESET}{s.NORMAL}]".format(f=Fore, s=Style))
            time.sleep(random.random() * 0.4)

        for task in ["Synchronizing clocks...", "Sending login information...", "Sending command..."]:
            time.sleep(0.3)
            dprint("+ {} ".format(task), end="")
            time.sleep(0.6)
            dprint("[done]")

        dprint(">> Botnet update complete.")