Skip to content

Receiving error: NoneType' object has no attribute 'lower' #100

@dryahweh

Description

@dryahweh

Hello! I am facing some errors when executing credmaster. I am executing CredMaster inside a python3 virtual environment. My current config is as follows:

 "plugin" : "msgraph",
  "userfile" : "<REDACTED>.txt",
  "passwordfile" : "<REDACTED>.txt",
  "userpassfile" : null,
  "useragentfile" : "<REDACTED>.txt",

  "outfile" : "<REDACTED>.txt",
  "threads" : 2,
  "region" : null,
  "jitter" : 15,
  "jitter_min" : 5,
  "delay" : 15,
  "batch_size": null,
  "batch_delay": null,
  "passwordsperdelay" : 1,
  "randomize" : true,
  "header" : null,
  "xforwardedfor" : null,
  "weekday_warrior" : null,
  "color" : true,
  "trim" : true,

  "slack_webhook" : null,
  "pushover_token" : "<REDACTED>",
  "pushover_user" : "<REDACTED>",
  "ntfy_topic" : null,
  "ntfy_host" : null,
  "ntfy_token" : null,
  "discord_webhook" : null,
  "teams_webhook" : null,
  "keybase_webhook": null,
  "operator_id" : null,
  "exclude_password" : false,

  "access_key" : "<REDACTED>",
  "secret_access_key" : "<REDACTED>",
  "session_token" : null,
  "profile_name" : null

When initiating the script, the spraying works as intended. I can see the usual output at first:

[2026-01-12 13:10:36.669] us-east-2: [-] FAILURE (AADSTS50126): Invalid username or password. Username: <TARGET>@<DOMAIN>.com could exist
[2026-01-12 13:10:45.354] us-east-2: [-] FAILURE (AADSTS50034): Tenant for account <TARGET>@<DOMAIN> is not using AzureAD/Office365
[2026-01-12 13:10:45.985] us-east-1: [-] FAILURE (AADSTS50034): Tenant for account<TARGET>@<DOMAIN> is not using AzureAD/Office365
[2026-01-12 13:10:56.592] us-east-1: [-] FAILURE (AADSTS50126): Invalid username or password. Username: <TARGET>@<DOMAIN> could exist
[2026-01-12 13:10:58.185] us-east-2: [-] FAILURE (AADSTS50034): Tenant for account <TARGET>@<DOMAIN> is not using AzureAD/Office365`

However, after some minutes I see these errors:

[2026-01-12 12:50:44.616] ERROR: us-east-2:<TARGET>@<DOMAIN>.com - 'error_description'                                                                                         
[2026-01-12 12:50:44.616] ERROR: us-east-2:<TARGET>@<DOMAIN>.com - 'NoneType' object has no attribute 'lower'`

Can anyone tell me which object in the script I need to modify?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions