Skip to content

Commit

Permalink
Fix unused variables unused imports.
Browse files Browse the repository at this point in the history
  • Loading branch information
Quentin Kaiser committed Mar 2, 2020
1 parent 5bea47e commit 7d07fff
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions o365enum.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 8,9 @@
import random
import re
import string
import sys
import requests
import argparse
import logging
import requests

try:
import http.client as http_client
Expand Down Expand Up @@ -44,7 43,7 @@ def o365enum_activesync(usernames):
}
for username in usernames:
state = 0
for x in range(0, args.num):
for _ in range(0, args.num):
response = requests.options(
"https://outlook.office365.com/Microsoft-Server-ActiveSync",
headers=headers,
Expand Down Expand Up @@ -73,7 72,7 @@ def o365enum_autodiscover(usernames):
}
for username in usernames:
state = 0
for x in range(0, args.num):
for _ in range(0, args.num):
response = requests.get(
"https://outlook.office365.com/autodiscover/autodiscover.json"\
"/v1.0/{}?Protocol=Autodiscoverv1".format(username),
Expand Down

0 comments on commit 7d07fff

Please sign in to comment.