Skip to content

Commit

Permalink
Version check fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Meckazin committed Oct 25, 2024
1 parent 8c5f2b0 commit 0a86819
Showing 1 changed file with 10 additions and 9 deletions.
19 changes: 10 additions & 9 deletions CredentialKatz-BOF/CredentialKatzBOF.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -131,17 +131,18 @@ extern "C" {

//Update config based on target version
if (targetBrowser == Chrome) {
if ((browserVersion.highMajor == 125 && browserVersion.highMinor <= 6387) ||
(browserVersion.highMajor == 124 && browserVersion.highMinor >= 6329))
targetBrowser = Chrome124;
else if (browserVersion.highMajor <= 124 ||
(browserVersion.highMajor == 124 && browserVersion.highMinor < 6329))
targetBrowser = OldChrome;
if ((browserVersion.highMajor == 122 && browserVersion.highMinor <= 6260) ||
(browserVersion.highMajor < 122)) {
BeaconPrintf(CALLBACK_ERROR, "This browser version is not supported!\n");
return ;
}
}
else if (targetBrowser == Edge || targetBrowser == Webview2) {
if (browserVersion.highMajor <= 124 ||
(browserVersion.highMajor == 124 && browserVersion.highMinor < 2478))
targetBrowser = OldEdge;
if ((browserVersion.highMajor == 122 && browserVersion.highMinor <= 6260) ||
(browserVersion.highMajor < 122)) { //Honestly no idea, these haven't been tested
BeaconPrintf(CALLBACK_ERROR, "This browser version is not supported!\n");
return ;
}
}


Expand Down

0 comments on commit 0a86819

Please sign in to comment.