mirror of
https://github.com/hohn/codeql-c-sqli.git
synced 2025-12-15 18:13:04 +01:00
marked TBD sections
This commit is contained in:
committed by
=Michael Hohn
parent
231a38b691
commit
5c11c88a04
54
info.org
54
info.org
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user