add * mac ** analyze db

This commit is contained in:
Michael Hohn
2025-03-04 19:48:28 -08:00
committed by =Michael Hohn
parent 55bc877bff
commit f94354b567
16 changed files with 59 additions and 1 deletions

8
.gitignore vendored
View File

@@ -1,3 +1,9 @@
add-user add-user
users.sqlite users.sqlite
cpp-sqli-834ef46/db-cpp/default/cache/*
cpp-sqli-834ef46/diagnostic/*
cpp-sqli-834ef46/log/database-analyze-*
cpp-sqli-834ef46/log/database-interpret-results-*
cpp-sqli-834ef46/log/execute-queries-*
cpp-sqli-834ef46/results/*

24
codeql-pack.lock.yml Normal file
View File

@@ -0,0 +1,24 @@
---
lockVersion: 1.0.0
dependencies:
codeql/cpp-all:
version: 4.0.1
codeql/dataflow:
version: 2.0.1
codeql/mad:
version: 1.0.17
codeql/rangeanalysis:
version: 1.0.17
codeql/ssa:
version: 1.0.17
codeql/tutorial:
version: 1.0.17
codeql/typeflow:
version: 1.0.17
codeql/typetracking:
version: 2.0.1
codeql/util:
version: 2.0.4
codeql/xml:
version: 1.0.17
compiled: false

BIN
cpp-sqli-834ef46.sarif (Stored with Git LFS) Normal file

Binary file not shown.

View File

@@ -12,6 +12,31 @@
cd $SRCDIR && codeql database create --language=cpp -s . -j 8 -v $DB --command='./build.sh' cd $SRCDIR && codeql database create --language=cpp -s . -j 8 -v $DB --command='./build.sh'
#+END_SRC #+END_SRC
** analyze db
#+BEGIN_SRC sh
# Check paths
echo $DB
echo $SRCDIR
# setup
cd $SRCDIR
codeql pack install
# Run the query
cd $SRCDIR
codeql database analyze \
-v \
--ram=14000 \
-j12 \
--rerun \
--format=sarif-latest \
--output cpp-sqli-834ef46.sarif \
-- \
$DB \
$SRCDIR/SqlInjection.ql
#+END_SRC
** hardware ** hardware
#+BEGIN_SRC sh #+BEGIN_SRC sh
0:$ uname -a 0:$ uname -a