mirror of
https://github.com/hohn/codeql-c-sqli.git
synced 2025-12-16 10:33:03 +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
|
#+END_SRC
|
||||||
|
|
||||||
|
|
||||||
** build db
|
** +build db+ TBD
|
||||||
cpp-sqli-834ef46/
|
|
||||||
|
|
||||||
#+BEGIN_SRC sh
|
#+BEGIN_SRC sh
|
||||||
SRCDIR=$(pwd)
|
# SRCDIR=$(pwd)
|
||||||
DB=$SRCDIR/cpp-sqli-$(cd $SRCDIR && git rev-parse --short HEAD)
|
# DB=$SRCDIR/cpp-sqli-$(cd $SRCDIR && git rev-parse --short HEAD)
|
||||||
|
|
||||||
echo $DB
|
# echo $DB
|
||||||
test -d "$DB" && rm -fR "$DB"
|
# test -d "$DB" && rm -fR "$DB"
|
||||||
mkdir -p "$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
|
#+END_SRC
|
||||||
** analyze db
|
** +analyze windows-built db+ TBD
|
||||||
#+BEGIN_SRC sh
|
#+BEGIN_SRC sh
|
||||||
# Check paths
|
# # Check paths
|
||||||
echo $DB
|
# echo $DB
|
||||||
echo $SRCDIR
|
# echo $SRCDIR
|
||||||
|
|
||||||
# setup
|
# # setup
|
||||||
cd $SRCDIR
|
# cd $SRCDIR
|
||||||
codeql pack install
|
# codeql pack install
|
||||||
|
|
||||||
# Run the query
|
# # Run the query
|
||||||
cd $SRCDIR
|
# cd $SRCDIR
|
||||||
codeql database analyze \
|
# codeql database analyze \
|
||||||
-v \
|
# -v \
|
||||||
--ram=14000 \
|
# --ram=14000 \
|
||||||
-j12 \
|
# -j12 \
|
||||||
--rerun \
|
# --rerun \
|
||||||
--format=sarif-latest \
|
# --format=sarif-latest \
|
||||||
--output cpp-sqli-834ef46.sarif \
|
# --output cpp-sqli-834ef46.sarif \
|
||||||
-- \
|
# -- \
|
||||||
$DB \
|
# $DB \
|
||||||
$SRCDIR/SqlInjection.ql
|
# $SRCDIR/SqlInjection.ql
|
||||||
|
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user