Log the nonce that should've passed Kiwi Flare challenge

This commit is contained in:
barelyprofessional
2025-10-19 17:15:27 -05:00
parent d53d2f1def
commit 36ad9a23b4

View File

@@ -84,14 +84,14 @@ public class KiwiFlare(string kfDomain, string? proxy = null, CancellationToken?
nonce++;
var input = Encoding.UTF8.GetBytes($"{challenge.Salt}{nonce}");
if (!TestHash(SHA256.HashData(input), challenge.Difficulty)) continue;
_logger.Debug($"Hash passed the test, nonce: {nonce}");
_logger.Info($"Hash passed the test, nonce: {nonce}");
return Task.FromResult(new KiwiFlareChallengeSolutionModel
{
Nonce = nonce,
Salt = challenge.Salt
});
}
}
}
public async Task<KiwiFlareChallengeSolutionModel> SolveChallenge(KiwiFlareChallengeModel challenge)
{