mirror of
https://github.com/hohn/codeql-c-sqli.git
synced 2025-12-16 02:23:04 +01:00
add * mac ** analyze db
This commit is contained in:
committed by
=Michael Hohn
parent
55bc877bff
commit
f94354b567
8
.gitignore
vendored
8
.gitignore
vendored
@@ -1,3 +1,9 @@
|
||||
add-user
|
||||
|
||||
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
24
codeql-pack.lock.yml
Normal 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
BIN
cpp-sqli-834ef46.sarif
(Stored with Git LFS)
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
25
info.org
25
info.org
@@ -12,6 +12,31 @@
|
||||
|
||||
cd $SRCDIR && codeql database create --language=cpp -s . -j 8 -v $DB --command='./build.sh'
|
||||
#+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
|
||||
#+BEGIN_SRC sh
|
||||
0:$ uname -a
|
||||
|
||||
Reference in New Issue
Block a user