marked TBD sections

This commit is contained in:
Michael Hohn
2025-03-06 11:17:17 -08:00
committed by =Michael Hohn
parent 231a38b691
commit 5c11c88a04

View File

@@ -134,41 +134,39 @@
#+END_SRC
** build db
cpp-sqli-834ef46/
** +build db+ TBD
#+BEGIN_SRC sh
SRCDIR=$(pwd)
DB=$SRCDIR/cpp-sqli-$(cd $SRCDIR && git rev-parse --short HEAD)
# SRCDIR=$(pwd)
# DB=$SRCDIR/cpp-sqli-$(cd $SRCDIR && git rev-parse --short HEAD)
echo $DB
test -d "$DB" && rm -fR "$DB"
mkdir -p "$DB"
# echo $DB
# test -d "$DB" && rm -fR "$DB"
# mkdir -p "$DB"
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
** analyze db
** +analyze windows-built db+ TBD
#+BEGIN_SRC sh
# Check paths
echo $DB
echo $SRCDIR
# # Check paths
# echo $DB
# echo $SRCDIR
# setup
cd $SRCDIR
codeql pack install
# # 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
# # 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