https://github.com/pwntester/test-project
https://github.com/pwntester/test-project
Last synced: 4 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/pwntester/test-project
- Owner: pwntester
- Created: 2022-02-16T17:33:13.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2023-06-14T12:40:43.000Z (about 3 years ago)
- Last Synced: 2026-01-13T00:52:18.571Z (6 months ago)
- Language: Dockerfile
- Size: 45.1 MB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Init
- create a new repo based on this template
- `gh repo create --public --clone --template pwntester/codeql-cs-template`
- copy the zipped database into `databases/` (its better to unzip it in the CS)
## Using packs
- init a new pack `codeql pack init seclab/test`
- add dependencies `codeql pack add codeql/java-all`
- install dependencies `codeql pack install`
- edit query
## Using submodules
- create codeql submodule if needed
- `git submodule add https://github.com/github/codeql`
- `git commit -am 'Add CodeQL module'`
- `git push origin master`
- update codeql submodule if needed:
- `git submodule init` to initialize your local configuration file
- `git submodule update` to fetch all the data from that project and check out the appropriate commit listed in your superproject
- create a `queries` directory
- create a `qlpack.yml` declaring a `libPathDependencies: codeql/java-all`
- edit query
## CodeSpaces
- create the CS
- `gh cs create --repo `
- ssh into the CS
- `gh cs ssh`
## Cleanup
- `gh cs delete` to remove and free the CS
- `gh repo delete` to remove the repo if needed