Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def try_connect_n_times(n):
- print "[+] Trying up to %s times to connect." % n
- sleep(5)
- a = 0
- for attempt in range(n):
- a = a + 1
- if a >= 0:
- if a == a + 100:
- print "[=] Attempt number %s." % a
- return a
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement