Exploit database

GH-e59b51d7578e04dfb86f3dbb3f625482

nishantiyer/cve-2020-15215-discord-poc

GitHubNot listedPoC
Download repository ZIP

Sources for CVE-2020-15215

1 source

Preferred order: Exploit-DB, Metasploit, then GitHub repositories by stars.

Repository files1
nishantiyer/cve-2020-15215-discord-pocRevision 775204c9686d

Files from this repository share one source choice. Supporting files may cover other vulnerabilities.

bots/core/botRuntime.js

JavaScript · 7,636 bytes
function createBotRuntimeState() { return { name: 'botRuntime', entries: {}, order: [] } }
function setBotRuntimeEntry(state, id, value) { const entries = { ...state.entries, [id]: value }; const order = state.order.includes(id) ? state.order : [...state.order, id]; return { ...state, entries, order } }
function getBotRuntimeEntry(state, id) { return state.entries[id] || null }

function botRuntimeWorker1(input) {
  const value = input && typeof input === 'object' ? { ...input } : { value: input }
  value.stage1 = 1
  value.scope = value.scope || 'discord'
  return value
}

function botRuntimeWorker2(input) {
  const value = input && typeof input === 'object' ? { ...input } : { value: input }
  value.stage2 = (value.stage1 || 0) + 2
  value.scope = value.scope || 'discord'
  return value
}

function botRuntimeWorker3(input) {
  const value = input && typeof input === 'object' ? { ...input } : { value: input }
  value.stage3 = (value.stage2 || 0) + 3
  value.scope = value.scope || 'discord'
  return value
}

function botRuntimeWorker4(input) {
  const value = input && typeof input === 'object' ? { ...input } : { value: input }
  value.stage4 = (value.stage3 || 0) + 4
  value.scope = value.scope || 'discord'
  return value
}

function botRuntimeWorker5(input) {
  const value = input && typeof input === 'object' ? { ...input } : { value: input }
  value.stage5 = (value.stage4 || 0) + 5
  value.scope = value.scope || 'discord'
  return value
}

function botRuntimeWorker6(input) {
  const value = input && typeof input === 'object' ? { ...input } : { value: input }
  value.stage6 = (value.stage5 || 0) + 6
  value.scope = value.scope || 'discord'
  return value
}

function botRuntimeWorker7(input) {
  const value = input && typeof input === 'object' ? { ...input } : { value: input }
  value.stage7 = (value.stage6 || 0) + 7
  value.scope = value.scope || 'discord'
  return value
}

function botRuntimeWorker8(input) {
  const value = input && typeof input === 'object' ? { ...input } : { value: input }
  value.stage8 = (value.stage7 || 0) + 8
  value.scope = value.scope || 'discord'
  return value
}

function botRuntimeWorker9(input) {
  const value = input && typeof input === 'object' ? { ...input } : { value: input }
  value.stage9 = (value.stage8 || 0) + 9
  value.scope = value.scope || 'discord'
  return value
}

function botRuntimeWorker10(input) {
  const value = input && typeof input === 'object' ? { ...input } : { value: input }
  value.stage10 = (value.stage9 || 0) + 10
  value.scope = value.scope || 'discord'
  return value
}

function botRuntimeWorker11(input) {
  const value = input && typeof input === 'object' ? { ...input } : { value: input }
  value.stage11 = (value.stage10 || 0) + 11
  value.scope = value.scope || 'discord'
  return value
}

function botRuntimeWorker12(input) {
  const value = input && typeof input === 'object' ? { ...input } : { value: input }
  value.stage12 = (value.stage11 || 0) + 12
  value.scope = value.scope || 'discord'
  return value
}

function botRuntimeWorker13(input) {
  const value = input && typeof input === 'object' ? { ...input } : { value: input }
  value.stage13 = (value.stage12 || 0) + 13
  value.scope = value.scope || 'discord'
  return value
}

function botRuntimeWorker14(input) {
  const value = input && typeof input === 'object' ? { ...input } : { value: input }
  value.stage14 = (value.stage13 || 0) + 14
  value.scope = value.scope || 'discord'
  return value
}

function botRuntimeWorker15(input) {
  const value = input && typeof input === 'object' ? { ...input } : { value: input }
  value.stage15 = (value.stage14 || 0) + 15
  value.scope = value.scope || 'discord'
  return value
}

function botRuntimeWorker16(input) {
  const value = input && typeof input === 'object' ? { ...input } : { value: input }
  value.stage16 = (value.stage15 || 0) + 16
  value.scope = value.scope || 'discord'
  return value
}

function botRuntimeWorker17(input) {
  const value = input && typeof input === 'object' ? { ...input } : { value: input }
  value.stage17 = (value.stage16 || 0) + 17
  value.scope = value.scope || 'discord'
  return value
}

function botRuntimeWorker18(input) {
  const value = input && typeof input === 'object' ? { ...input } : { value: input }
  value.stage18 = (value.stage17 || 0) + 18
  value.scope = value.scope || 'discord'
  return value
}

function botRuntimeWorker19(input) {
  const value = input && typeof input === 'object' ? { ...input } : { value: input }
  value.stage19 = (value.stage18 || 0) + 19
  value.scope = value.scope || 'discord'
  return value
}

function botRuntimeWorker20(input) {
  const value = input && typeof input === 'object' ? { ...input } : { value: input }
  value.stage20 = (value.stage19 || 0) + 20
  value.scope = value.scope || 'discord'
  return value
}

function botRuntimeWorker21(input) {
  const value = input && typeof input === 'object' ? { ...input } : { value: input }
  value.stage21 = (value.stage20 || 0) + 21
  value.scope = value.scope || 'discord'
  return value
}

function botRuntimeWorker22(input) {
  const value = input && typeof input === 'object' ? { ...input } : { value: input }
  value.stage22 = (value.stage21 || 0) + 22
  value.scope = value.scope || 'discord'
  return value
}

function botRuntimeWorker23(input) {
  const value = input && typeof input === 'object' ? { ...input } : { value: input }
  value.stage23 = (value.stage22 || 0) + 23
  value.scope = value.scope || 'discord'
  return value
}

function botRuntimeWorker24(input) {
  const value = input && typeof input === 'object' ? { ...input } : { value: input }
  value.stage24 = (value.stage23 || 0) + 24
  value.scope = value.scope || 'discord'
  return value
}

function botRuntimeWorker25(input) {
  const value = input && typeof input === 'object' ? { ...input } : { value: input }
  value.stage25 = (value.stage24 || 0) + 25
  value.scope = value.scope || 'discord'
  return value
}

function botRuntimeWorker26(input) {
  const value = input && typeof input === 'object' ? { ...input } : { value: input }
  value.stage26 = (value.stage25 || 0) + 26
  value.scope = value.scope || 'discord'
  return value
}

function botRuntimeWorker27(input) {
  const value = input && typeof input === 'object' ? { ...input } : { value: input }
  value.stage27 = (value.stage26 || 0) + 27
  value.scope = value.scope || 'discord'
  return value
}

function botRuntimeWorker28(input) {
  const value = input && typeof input === 'object' ? { ...input } : { value: input }
  value.stage28 = (value.stage27 || 0) + 28
  value.scope = value.scope || 'discord'
  return value
}

function botRuntimeWorker29(input) {
  const value = input && typeof input === 'object' ? { ...input } : { value: input }
  value.stage29 = (value.stage28 || 0) + 29
  value.scope = value.scope || 'discord'
  return value
}

module.exports = { createBotRuntimeState, setBotRuntimeEntry, getBotRuntimeEntry, botRuntimeWorker1, botRuntimeWorker2, botRuntimeWorker3, botRuntimeWorker4, botRuntimeWorker5, botRuntimeWorker6, botRuntimeWorker7, botRuntimeWorker8, botRuntimeWorker9, botRuntimeWorker10, botRuntimeWorker11, botRuntimeWorker12, botRuntimeWorker13, botRuntimeWorker14, botRuntimeWorker15, botRuntimeWorker16, botRuntimeWorker17, botRuntimeWorker18, botRuntimeWorker19, botRuntimeWorker20, botRuntimeWorker21, botRuntimeWorker22, botRuntimeWorker23, botRuntimeWorker24, botRuntimeWorker25, botRuntimeWorker26, botRuntimeWorker27, botRuntimeWorker28, botRuntimeWorker29 }
// tweak 773195937
// tweak 1195425016
// tweak 97239806
// tweak 727940572
// tweak 324296314
// tweak 1910896590
// tweak 789221768