Skip to content

Commit

Permalink
Update challenge name -> id lookup map
Browse files Browse the repository at this point in the history
  • Loading branch information
J12934 committed Sep 10, 2024
1 parent 6334657 commit 573abd9
Showing 1 changed file with 101 additions and 93 deletions.
194 changes: 101 additions & 93 deletions progress-watchdog/internal/background-sync.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ type Challenge struct {
UpdatedAt string `json:"updatedAt"`
}

// can be generated / update using: curl https://demo.owasp-juice.shop/api/challenges | jq '.data | map({ key: .key, value: .id }) | from_entries'
var challengeIdLookup = map[string]int{
"restfulXssChallenge": 1,
"accessLogDisclosureChallenge": 2,
Expand All @@ -44,99 +45,106 @@ var challengeIdLookup = map[string]int{
"fileWriteChallenge": 5,
"resetPasswordBjoernOwaspChallenge": 6,
"tokenSaleChallenge": 7,
"rceChallenge": 8,
"captchaBypassChallenge": 9,
"changePasswordBenderChallenge": 10,
"christmasSpecialChallenge": 11,
"usernameXssChallenge": 12,
"persistedXssUserChallenge": 13,
"directoryListingChallenge": 14,
"localXssChallenge": 15,
"dbSchemaChallenge": 16,
"deprecatedInterfaceChallenge": 17,
"easterEggLevelOneChallenge": 18,
"emailLeakChallenge": 19,
"ephemeralAccountantChallenge": 20,
"errorHandlingChallenge": 21,
"manipulateClockChallenge": 22,
"extraLanguageChallenge": 23,
"feedbackChallenge": 24,
"forgedCouponChallenge": 25,
"forgedFeedbackChallenge": 26,
"forgedReviewChallenge": 27,
"jwtForgedChallenge": 28,
"forgottenDevBackupChallenge": 29,
"forgottenBackupChallenge": 30,
"typosquattingAngularChallenge": 31,
"ghostLoginChallenge": 32,
"dataExportChallenge": 33,
"httpHeaderXssChallenge": 34,
"continueCodeChallenge": 35,
"dlpPasswordSprayingChallenge": 36,
"dlpPastebinDataLeakChallenge": 37,
"typosquattingNpmChallenge": 38,
"loginAdminChallenge": 39,
"loginAmyChallenge": 40,
"loginBenderChallenge": 41,
"oauthUserPasswordChallenge": 42,
"loginJimChallenge": 43,
"loginRapperChallenge": 44,
"loginSupportChallenge": 45,
"basketManipulateChallenge": 46,
"misplacedSignatureFileChallenge": 47,
"timingAttackChallenge": 48,
"easterEggLevelTwoChallenge": 49,
"noSqlCommandChallenge": 50,
"noSqlOrdersChallenge": 51,
"noSqlReviewsChallenge": 52,
"redirectCryptoCurrencyChallenge": 53,
"weakPasswordChallenge": 54,
"negativeOrderChallenge": 55,
"premiumPaywallChallenge": 56,
"privacyPolicyChallenge": 57,
"privacyPolicyProofChallenge": 58,
"changeProductChallenge": 59,
"reflectedXssChallenge": 60,
"passwordRepeatChallenge": 61,
"resetPasswordBenderChallenge": 62,
"resetPasswordBjoernChallenge": 63,
"resetPasswordJimChallenge": 64,
"resetPasswordMortyChallenge": 65,
"retrieveBlueprintChallenge": 66,
"ssrfChallenge": 67,
"sstiChallenge": 68,
"scoreBoardChallenge": 69,
"securityPolicyChallenge": 70,
"persistedXssFeedbackChallenge": 71,
"hiddenImageChallenge": 72,
"rceOccupyChallenge": 73,
"supplyChainAttackChallenge": 74,
"twoFactorAuthUnsafeSecretStorageChallenge": 75,
"jwtUnsignedChallenge": 76,
"uploadSizeChallenge": 77,
"uploadTypeChallenge": 78,
"unionSqlInjectionChallenge": 79,
"videoXssChallenge": 80,
"basketAccessChallenge": 81,
"knownVulnerableComponentChallenge": 82,
"weirdCryptoChallenge": 83,
"redirectChallenge": 84,
"xxeFileDisclosureChallenge": 85,
"xxeDosChallenge": 86,
"zeroStarsChallenge": 87,
"missingEncodingChallenge": 88,
"svgInjectionChallenge": 89,
"exposedMetricsChallenge": 90,
"freeDeluxeChallenge": 91,
"csrfChallenge": 92,
"xssBonusChallenge": 93,
"resetPasswordUvoginChallenge": 94,
"geoStalkingMetaChallenge": 95,
"geoStalkingVisualChallenge": 96,
"killChatbotChallenge": 97,
"nullByteChallenge": 98,
"bullyChatbotChallenge": 99,
"lfrChallenge": 100,
"nftUnlockChallenge": 8,
"nftMintChallenge": 9,
"web3WalletChallenge": 10,
"web3SandboxChallenge": 11,
"rceChallenge": 12,
"captchaBypassChallenge": 13,
"changePasswordBenderChallenge": 14,
"christmasSpecialChallenge": 15,
"usernameXssChallenge": 16,
"persistedXssUserChallenge": 17,
"directoryListingChallenge": 18,
"localXssChallenge": 19,
"dbSchemaChallenge": 20,
"deprecatedInterfaceChallenge": 21,
"easterEggLevelOneChallenge": 22,
"emailLeakChallenge": 23,
"emptyUserRegistration": 24,
"ephemeralAccountantChallenge": 25,
"errorHandlingChallenge": 26,
"manipulateClockChallenge": 27,
"extraLanguageChallenge": 28,
"feedbackChallenge": 29,
"forgedCouponChallenge": 30,
"forgedFeedbackChallenge": 31,
"forgedReviewChallenge": 32,
"jwtForgedChallenge": 33,
"forgottenDevBackupChallenge": 34,
"forgottenBackupChallenge": 35,
"typosquattingAngularChallenge": 36,
"ghostLoginChallenge": 37,
"dataExportChallenge": 38,
"httpHeaderXssChallenge": 39,
"continueCodeChallenge": 40,
"dlpPasswordSprayingChallenge": 41,
"dlpPastebinDataLeakChallenge": 42,
"typosquattingNpmChallenge": 43,
"loginAdminChallenge": 44,
"loginAmyChallenge": 45,
"loginBenderChallenge": 46,
"oauthUserPasswordChallenge": 47,
"loginJimChallenge": 48,
"loginRapperChallenge": 49,
"loginSupportChallenge": 50,
"basketManipulateChallenge": 51,
"misplacedSignatureFileChallenge": 52,
"timingAttackChallenge": 53,
"easterEggLevelTwoChallenge": 54,
"noSqlCommandChallenge": 55,
"noSqlOrdersChallenge": 56,
"noSqlReviewsChallenge": 57,
"redirectCryptoCurrencyChallenge": 58,
"weakPasswordChallenge": 59,
"negativeOrderChallenge": 60,
"premiumPaywallChallenge": 61,
"privacyPolicyChallenge": 62,
"privacyPolicyProofChallenge": 63,
"changeProductChallenge": 64,
"reflectedXssChallenge": 65,
"passwordRepeatChallenge": 66,
"resetPasswordBenderChallenge": 67,
"resetPasswordBjoernChallenge": 68,
"resetPasswordJimChallenge": 69,
"resetPasswordMortyChallenge": 70,
"retrieveBlueprintChallenge": 71,
"ssrfChallenge": 72,
"sstiChallenge": 73,
"scoreBoardChallenge": 74,
"securityPolicyChallenge": 75,
"persistedXssFeedbackChallenge": 76,
"hiddenImageChallenge": 77,
"rceOccupyChallenge": 78,
"supplyChainAttackChallenge": 79,
"twoFactorAuthUnsafeSecretStorageChallenge": 80,
"jwtUnsignedChallenge": 81,
"uploadSizeChallenge": 82,
"uploadTypeChallenge": 83,
"unionSqlInjectionChallenge": 84,
"videoXssChallenge": 85,
"basketAccessChallenge": 86,
"knownVulnerableComponentChallenge": 87,
"weirdCryptoChallenge": 88,
"redirectChallenge": 89,
"xxeFileDisclosureChallenge": 90,
"xxeDosChallenge": 91,
"zeroStarsChallenge": 92,
"missingEncodingChallenge": 93,
"svgInjectionChallenge": 94,
"exposedMetricsChallenge": 95,
"freeDeluxeChallenge": 96,
"csrfChallenge": 97,
"xssBonusChallenge": 98,
"resetPasswordUvoginChallenge": 99,
"geoStalkingMetaChallenge": 100,
"geoStalkingVisualChallenge": 101,
"killChatbotChallenge": 102,
"nullByteChallenge": 103,
"bullyChatbotChallenge": 104,
"lfrChallenge": 105,
"closeNotificationsChallenge": 106,
"csafChallenge": 107,
}

func StartBackgroundSync(clientset *kubernetes.Clientset, workerCount int) {
Expand Down

0 comments on commit 573abd9

Please sign in to comment.