Exploit databaseDownload repository ZIP
GH-562a516151f045835c0ee477b90de486
barrersoftware/opencode-secure
Sources for CVE-2026-22812
6 sourcesPreferred order: Exploit-DB, Metasploit, then GitHub repositories by stars. Open preferred source
Repository files12
barrersoftware/opencode-secureRevision 806a6c7399a1
- ↑..Parent directory
- black-cancel-waitlist.ts
- black-gift.ts
- black-onboard.ts
- black-transfer.ts
- credit-workspace.ts
- lookup-user.ts
- promote-black.ts
- promote-models.ts
- pull-models.ts
- reset-db.ts
- update-black.ts
- update-models.ts
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
packages/console/core/script/reset-db.ts
TypeScript · 675 bytesimport { Resource } from "@opencode-ai/console-resource"
import { Database } from "../src/drizzle/index.js"
import { UserTable } from "../src/schema/user.sql.js"
import { AccountTable } from "../src/schema/account.sql.js"
import { WorkspaceTable } from "../src/schema/workspace.sql.js"
import { BillingTable, PaymentTable, UsageTable } from "../src/schema/billing.sql.js"
import { KeyTable } from "../src/schema/key.sql.js"
if (Resource.App.stage !== "frank") throw new Error("This script is only for frank")
for (const table of [AccountTable, BillingTable, KeyTable, PaymentTable, UsageTable, UserTable, WorkspaceTable]) {
await Database.use((tx) => tx.delete(table))
}