File: spinners.py

package info (click to toggle)
pwntools 4.15.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 18,508 kB
  • sloc: python: 59,870; ansic: 48,351; asm: 45,047; sh: 396; makefile: 256
file content (25 lines) | stat: -rw-r--r-- 369 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
"""
Just a lot of spinners!
"""

from pwn import *

context.log_level = 0

n = 1
h = log.waitfor('spinners running', status = str(n))

hs = []
print('type "q" to quit')
while True:
    s = str_input('> ').strip()
    if s == 'q':
        break
    hs.append(log.waitfor(s, status = 'running'))
    n += 1
    h.status(str(n))

h.success()

for h in hs:
    h.failure()