Skip to content

Commit

Permalink
Fixed broken spray
Browse files Browse the repository at this point in the history
  • Loading branch information
FlangvikOld committed Apr 19, 2023
1 parent 1190051 commit 0a50b44
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion TeamFiltration/TeamFiltration/Handlers/TeamsHandler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ public async Task<WorkingWithResp> GetWorkingWithList(string tenantId)
{
//get the object
List<TeamsExtSearchRep> responeObject = JsonConvert.DeserializeObject<List<TeamsExtSearchRep>>(userResp);
//Console.WriteLine(JsonConvert.SerializeObject(responeObject, Formatting.Indented));

//Any size
if (responeObject.Count() > 0)
{
Expand Down
10 changes: 7 additions & 3 deletions TeamFiltration/TeamFiltration/Modules/Spray.cs
Original file line number Diff line number Diff line change
Expand Up @@ -423,7 +423,7 @@ public static async Task SprayAsync(string[] args)
else if (_globalProperties.UsCloud)
{
var fireProxObject = _globalProperties.GetFireProxURLObject("https://login.microsoftonline.us", regionCount);
fireProxObject.fireProxUrl = fireProxObject.fireProxUrl + "/common/oauth2/token/";
fireProxObject.fireProxUrl = fireProxObject.fireProxUrl + "common/oauth2/token";
fireProxList.Add(fireProxObject);


Expand All @@ -438,7 +438,11 @@ public static async Task SprayAsync(string[] args)
}

else
fireProxList.Add(_globalProperties.GetFireProxURLObject("https://login.microsoftonline.com", regionCount));
{
var fireProxObject = _globalProperties.GetFireProxURLObject("https://login.microsoftonline.com", regionCount);
fireProxObject.fireProxUrl = fireProxObject.fireProxUrl + "common/oauth2/token";
fireProxList.Add(fireProxObject);
}

if (!shuffleFireProxBool)
break;
Expand Down Expand Up @@ -497,7 +501,7 @@ await bufferuserNameList.ParallelForEachAsync(
Environment.Exit(0);
}
}


var validAccounts = await SprayAttemptWrap(listOfSprayAttempts, _globalProperties, databaseHandle, getUserRealmResult, delayInSeconds, regionCounter);

Expand Down

0 comments on commit 0a50b44

Please sign in to comment.