Skip to content

Commit

Permalink
Add option to set base url (e.g. fireprox)
Browse files Browse the repository at this point in the history
  • Loading branch information
y0k4i-1337 committed Jan 5, 2023
1 parent dbfa8b7 commit 09e5da6
Show file tree
Hide file tree
Showing 2 changed files with 49 additions and 179 deletions.
15 changes: 11 additions & 4 deletions o365creeper-ng.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,13 @@
type=Path,
help='List of email addresses to validate, one per line.',
)
parser.add_argument(
'-u',
'--baseurl',
type=str,
help='Base URL (default: %(default)s).',
default='https://login.microsoftonline.com'
)
parser.add_argument(
'-o',
'--output',
Expand Down Expand Up @@ -104,7 +111,7 @@
args = parser.parse_args()

config = {
'tor': {
'tor': {
'use': args.tor,
'socks_port': args.socks_port,
'control_port': args.control_port,
Expand All @@ -118,7 +125,7 @@
'email': args.email,
'timeout': args.timeout,
'retry': args.retry,
'url': 'https://login.microsoftonline.com/common/GetCredentialType',
'url': args.baseurl.strip('/') + '/common/GetCredentialType',
}


Expand All @@ -139,7 +146,7 @@ def check_email(
'http': proxy,
'https': proxy,
}
headers = {'User-Agent': UserAgent().random}
headers = {'User-Agent': UserAgent(fallback='Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/92.0.4515.131 Safari/537.36').random}
payload = {'Username': email}
try:
r = req.post(url, proxies=proxies, headers=headers, json=payload)
Expand Down Expand Up @@ -227,7 +234,7 @@ def validate_result(
else:
print(f'{email} - INVALID')



def main():

Expand Down
213 changes: 38 additions & 175 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 09e5da6

Please sign in to comment.