Skip to content

chanel-y/BSides-CodeQL101

Repository files navigation

BSides-CodeQL101

Setup Instructions

Stuff to Download

Set up the CodeQL submodule

Run the following commands to retrieve the codeql submodule that contains the libraries/queries from the github codeql repository:

cd BSides-CodeQL101
git submodule init
git submodule update

Creating a CodeQL Database

  • clone the sample project repo
  • run codeql database create --language=csharp --source-root=<path to sample project>/BSides-Sample-Project sample_project_db

If there are issues above when creating the database, you can instead add the "sample_project_db.zip" from the databases folder. Be sure to use "Select Database from Archive" instead of "Select Database from Folder" if you do this.

Using this Workshop

This repository contains starter query files and docs for the CodeQL Workshop at BSides Vancouver 2024.

If you're following along outside of the workshop, start with the README files in each part in the queries/csharp folder. Please do these in order, as some of the exercises build on ones from previous sections.

Solutions to these exercises are available in the solutions folder, but please first try them on your own. Keep in mind that there are multiple ways to write a query - each of these solutions is only one way to solve the exercises.

Useful Resources

About

Starter Files and Docs for CodeQL Workshop for BSides Vancouver 2024

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages