Reduce compiler warnings: replace qAsConst with std::as_const and update event localPos() to position()

Replaced deprecated qAsConst usages in built modules and updated QMouseEvent::localPos() to position() per Qt6 deprecation guidance.\n\nCo-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
torsten committed 2026-07-14 22:44:14 +02:00
1 parent 46e673f660
commit 8af436f09a
281 files changed
+7102 -5490

No files matched your search

+20
View File
@@ -0,0 +1,20 @@
cmake_minimum_required(VERSION 3.21)
project(GTests LANGUAGES CXX)
include(FetchContent)
FetchContent_Declare(
googletest
URL https://github.com/google/googletest/archive/refs/tags/release-1.14.0.tar.gz
)
FetchContent_MakeAvailable(googletest)
# Collect generated test sources
file(GLOB GTEST_SRCS "${CMAKE_SOURCE_DIR}/Z/*_test.cpp")
add_executable(gtests_all ${GTEST_SRCS})
target_compile_features(gtests_all PRIVATE cxx_std_20)
target_include_directories(gtests_all PRIVATE ${CMAKE_SOURCE_DIR}/../../)
# link to gtest
target_link_libraries(gtests_all PRIVATE GTest::gtest_main)
include(GoogleTest)
gtest_discover_tests(gtests_all)
+11
View File
@@ -0,0 +1,11 @@
Generated GoogleTest stubs for Z/src.
Usage:
python3 tests/gtest/generate_gtests.py # generate test sources and CMakeLists
cmake -S . -B build
cmake --build build -- -j5
ctest --test-dir build -j5
Notes:
- Tests are lightweight smoke stubs that compile and assert true. Replace with meaningful assertions per-function.
- Uses FetchContent to download GoogleTest at configure time.
+57
View File
@@ -0,0 +1,57 @@
#!/usr/bin/env python3
"""
Generate a single GoogleTest binary from lightweight per-source test stubs.
Run from repo root: python3 tests/gtest/generate_gtests.py
"""
import os
from pathlib import Path
ROOT = Path(__file__).resolve().parents[2]
SRC_DIR = ROOT / 'Z' / 'src'
OUT_DIR = ROOT / 'tests' / 'gtest' / 'Z'
OUT_DIR.mkdir(parents=True, exist_ok=True)
TEMPLATE = '''#include <gtest/gtest.h>\n{includes}\n\nTEST({test_suite}, smoke) {{\n // TODO: replace with meaningful unit tests for {rel_cpp}\n ASSERT_TRUE(true);\n}}\n'''
sources = []
for cpp in sorted(SRC_DIR.rglob('*.cpp')):
rel = cpp.relative_to(SRC_DIR)
name = str(rel).replace(os.sep, '__')
out_cpp = OUT_DIR / (name + '_test.cpp')
# try to include corresponding header if exists
header = cpp.with_suffix('.h')
includes = ''
if header.exists():
includes = f'#include "{header.relative_to(ROOT)}"'
else:
includes = '// no corresponding header to include'
content = TEMPLATE.format(includes=includes, test_suite=name.replace('.', '_'), rel_cpp=str(rel))
out_cpp.write_text(content)
sources.append(str(Path('tests/gtest/Z') / (name + '_test.cpp')))
# Write CMakeLists for gtests
cmake = ROOT / 'tests' / 'gtest' / 'CMakeLists.txt'
cmake.write_text('''
cmake_minimum_required(VERSION 3.21)
project(GTests LANGUAGES CXX)
include(FetchContent)
FetchContent_Declare(
googletest
URL https://github.com/google/googletest/archive/refs/tags/release-1.14.0.tar.gz
)
FetchContent_MakeAvailable(googletest)
# Collect generated test sources
file(GLOB GTEST_SRCS "${CMAKE_SOURCE_DIR}/Z/*_test.cpp")
add_executable(gtests_all ${GTEST_SRCS})
target_compile_features(gtests_all PRIVATE cxx_std_20)
target_include_directories(gtests_all PRIVATE ${CMAKE_SOURCE_DIR}/../../)
# link to gtest
target_link_libraries(gtests_all PRIVATE GTest::gtest_main)
include(GoogleTest)
gtest_discover_tests(gtests_all)
''')
print(f"Wrote {len(sources)} test stubs to {OUT_DIR}")
print("Run: cmake -S . -B build && cmake --build build -- -j5 && ctest --test-dir build -j5")
@@ -0,0 +1,14 @@
# Strix instruction for Z/src/NGLLogger/MurmurHash2.cpp
Please perform a focused White-box security assessment of the repository area containing the file `Z/src/NGLLogger/MurmurHash2.cpp`.
Scope:
- Focus analysis on the code in: `Z/src/NGLLogger/MurmurHash2.cpp`
- Treat this as a white-box scan: use source code to prioritize findings and generate PoCs
- If applicable, attempt to reproduce vulnerabilities (in PoC) and provide remediation guidance
Notes for Strix:
- Use `--scan-mode quick` for fast checks or `--scan-mode standard` for deeper analysis
- Use `--instruction-file` with this file when invoking strix CLI
Do NOT run active exploitation against third-party services. Only analyze code in-repo.
+14
View File
@@ -0,0 +1,14 @@
# Strix instruction for Z/src/NGLLogger/NGLLogger.cpp
Please perform a focused White-box security assessment of the repository area containing the file `Z/src/NGLLogger/NGLLogger.cpp`.
Scope:
- Focus analysis on the code in: `Z/src/NGLLogger/NGLLogger.cpp`
- Treat this as a white-box scan: use source code to prioritize findings and generate PoCs
- If applicable, attempt to reproduce vulnerabilities (in PoC) and provide remediation guidance
Notes for Strix:
- Use `--scan-mode quick` for fast checks or `--scan-mode standard` for deeper analysis
- Use `--instruction-file` with this file when invoking strix CLI
Do NOT run active exploitation against third-party services. Only analyze code in-repo.
@@ -0,0 +1,14 @@
# Strix instruction for Z/src/NGLLogger/NGLLoggerBootstrap.cpp
Please perform a focused White-box security assessment of the repository area containing the file `Z/src/NGLLogger/NGLLoggerBootstrap.cpp`.
Scope:
- Focus analysis on the code in: `Z/src/NGLLogger/NGLLoggerBootstrap.cpp`
- Treat this as a white-box scan: use source code to prioritize findings and generate PoCs
- If applicable, attempt to reproduce vulnerabilities (in PoC) and provide remediation guidance
Notes for Strix:
- Use `--scan-mode quick` for fast checks or `--scan-mode standard` for deeper analysis
- Use `--instruction-file` with this file when invoking strix CLI
Do NOT run active exploitation against third-party services. Only analyze code in-repo.
@@ -0,0 +1,14 @@
# Strix instruction for Z/src/NGLLogger/test_ngllogger.cpp
Please perform a focused White-box security assessment of the repository area containing the file `Z/src/NGLLogger/test_ngllogger.cpp`.
Scope:
- Focus analysis on the code in: `Z/src/NGLLogger/test_ngllogger.cpp`
- Treat this as a white-box scan: use source code to prioritize findings and generate PoCs
- If applicable, attempt to reproduce vulnerabilities (in PoC) and provide remediation guidance
Notes for Strix:
- Use `--scan-mode quick` for fast checks or `--scan-mode standard` for deeper analysis
- Use `--instruction-file` with this file when invoking strix CLI
Do NOT run active exploitation against third-party services. Only analyze code in-repo.
@@ -0,0 +1,14 @@
# Strix instruction for Z/src/QtSingleApplication/qtlocalpeer.cpp
Please perform a focused White-box security assessment of the repository area containing the file `Z/src/QtSingleApplication/qtlocalpeer.cpp`.
Scope:
- Focus analysis on the code in: `Z/src/QtSingleApplication/qtlocalpeer.cpp`
- Treat this as a white-box scan: use source code to prioritize findings and generate PoCs
- If applicable, attempt to reproduce vulnerabilities (in PoC) and provide remediation guidance
Notes for Strix:
- Use `--scan-mode quick` for fast checks or `--scan-mode standard` for deeper analysis
- Use `--instruction-file` with this file when invoking strix CLI
Do NOT run active exploitation against third-party services. Only analyze code in-repo.
@@ -0,0 +1,14 @@
# Strix instruction for Z/src/QtSingleApplication/qtlockedfile.cpp
Please perform a focused White-box security assessment of the repository area containing the file `Z/src/QtSingleApplication/qtlockedfile.cpp`.
Scope:
- Focus analysis on the code in: `Z/src/QtSingleApplication/qtlockedfile.cpp`
- Treat this as a white-box scan: use source code to prioritize findings and generate PoCs
- If applicable, attempt to reproduce vulnerabilities (in PoC) and provide remediation guidance
Notes for Strix:
- Use `--scan-mode quick` for fast checks or `--scan-mode standard` for deeper analysis
- Use `--instruction-file` with this file when invoking strix CLI
Do NOT run active exploitation against third-party services. Only analyze code in-repo.
@@ -0,0 +1,14 @@
# Strix instruction for Z/src/QtSingleApplication/qtlockedfile_unix.cpp
Please perform a focused White-box security assessment of the repository area containing the file `Z/src/QtSingleApplication/qtlockedfile_unix.cpp`.
Scope:
- Focus analysis on the code in: `Z/src/QtSingleApplication/qtlockedfile_unix.cpp`
- Treat this as a white-box scan: use source code to prioritize findings and generate PoCs
- If applicable, attempt to reproduce vulnerabilities (in PoC) and provide remediation guidance
Notes for Strix:
- Use `--scan-mode quick` for fast checks or `--scan-mode standard` for deeper analysis
- Use `--instruction-file` with this file when invoking strix CLI
Do NOT run active exploitation against third-party services. Only analyze code in-repo.
@@ -0,0 +1,14 @@
# Strix instruction for Z/src/QtSingleApplication/qtlockedfile_win.cpp
Please perform a focused White-box security assessment of the repository area containing the file `Z/src/QtSingleApplication/qtlockedfile_win.cpp`.
Scope:
- Focus analysis on the code in: `Z/src/QtSingleApplication/qtlockedfile_win.cpp`
- Treat this as a white-box scan: use source code to prioritize findings and generate PoCs
- If applicable, attempt to reproduce vulnerabilities (in PoC) and provide remediation guidance
Notes for Strix:
- Use `--scan-mode quick` for fast checks or `--scan-mode standard` for deeper analysis
- Use `--instruction-file` with this file when invoking strix CLI
Do NOT run active exploitation against third-party services. Only analyze code in-repo.
@@ -0,0 +1,14 @@
# Strix instruction for Z/src/QtSingleApplication/qtsingleapplication.cpp
Please perform a focused White-box security assessment of the repository area containing the file `Z/src/QtSingleApplication/qtsingleapplication.cpp`.
Scope:
- Focus analysis on the code in: `Z/src/QtSingleApplication/qtsingleapplication.cpp`
- Treat this as a white-box scan: use source code to prioritize findings and generate PoCs
- If applicable, attempt to reproduce vulnerabilities (in PoC) and provide remediation guidance
Notes for Strix:
- Use `--scan-mode quick` for fast checks or `--scan-mode standard` for deeper analysis
- Use `--instruction-file` with this file when invoking strix CLI
Do NOT run active exploitation against third-party services. Only analyze code in-repo.
@@ -0,0 +1,14 @@
# Strix instruction for Z/src/QtSingleApplication/qtsinglecoreapplication.cpp
Please perform a focused White-box security assessment of the repository area containing the file `Z/src/QtSingleApplication/qtsinglecoreapplication.cpp`.
Scope:
- Focus analysis on the code in: `Z/src/QtSingleApplication/qtsinglecoreapplication.cpp`
- Treat this as a white-box scan: use source code to prioritize findings and generate PoCs
- If applicable, attempt to reproduce vulnerabilities (in PoC) and provide remediation guidance
Notes for Strix:
- Use `--scan-mode quick` for fast checks or `--scan-mode standard` for deeper analysis
- Use `--instruction-file` with this file when invoking strix CLI
Do NOT run active exploitation against third-party services. Only analyze code in-repo.
@@ -0,0 +1,14 @@
# Strix instruction for Z/src/WMS_Interface/wms_ecc_equipRequirements.cpp
Please perform a focused White-box security assessment of the repository area containing the file `Z/src/WMS_Interface/wms_ecc_equipRequirements.cpp`.
Scope:
- Focus analysis on the code in: `Z/src/WMS_Interface/wms_ecc_equipRequirements.cpp`
- Treat this as a white-box scan: use source code to prioritize findings and generate PoCs
- If applicable, attempt to reproduce vulnerabilities (in PoC) and provide remediation guidance
Notes for Strix:
- Use `--scan-mode quick` for fast checks or `--scan-mode standard` for deeper analysis
- Use `--instruction-file` with this file when invoking strix CLI
Do NOT run active exploitation against third-party services. Only analyze code in-repo.
@@ -0,0 +1,14 @@
# Strix instruction for Z/src/WMS_Interface/wms_ecc_equipmenttypes.cpp
Please perform a focused White-box security assessment of the repository area containing the file `Z/src/WMS_Interface/wms_ecc_equipmenttypes.cpp`.
Scope:
- Focus analysis on the code in: `Z/src/WMS_Interface/wms_ecc_equipmenttypes.cpp`
- Treat this as a white-box scan: use source code to prioritize findings and generate PoCs
- If applicable, attempt to reproduce vulnerabilities (in PoC) and provide remediation guidance
Notes for Strix:
- Use `--scan-mode quick` for fast checks or `--scan-mode standard` for deeper analysis
- Use `--instruction-file` with this file when invoking strix CLI
Do NOT run active exploitation against third-party services. Only analyze code in-repo.
@@ -0,0 +1,14 @@
# Strix instruction for Z/src/WMS_Interface/wms_ecc_exercises.cpp
Please perform a focused White-box security assessment of the repository area containing the file `Z/src/WMS_Interface/wms_ecc_exercises.cpp`.
Scope:
- Focus analysis on the code in: `Z/src/WMS_Interface/wms_ecc_exercises.cpp`
- Treat this as a white-box scan: use source code to prioritize findings and generate PoCs
- If applicable, attempt to reproduce vulnerabilities (in PoC) and provide remediation guidance
Notes for Strix:
- Use `--scan-mode quick` for fast checks or `--scan-mode standard` for deeper analysis
- Use `--instruction-file` with this file when invoking strix CLI
Do NOT run active exploitation against third-party services. Only analyze code in-repo.
@@ -0,0 +1,14 @@
# Strix instruction for Z/src/WMS_Interface/wms_ecc_playerInfo.cpp
Please perform a focused White-box security assessment of the repository area containing the file `Z/src/WMS_Interface/wms_ecc_playerInfo.cpp`.
Scope:
- Focus analysis on the code in: `Z/src/WMS_Interface/wms_ecc_playerInfo.cpp`
- Treat this as a white-box scan: use source code to prioritize findings and generate PoCs
- If applicable, attempt to reproduce vulnerabilities (in PoC) and provide remediation guidance
Notes for Strix:
- Use `--scan-mode quick` for fast checks or `--scan-mode standard` for deeper analysis
- Use `--instruction-file` with this file when invoking strix CLI
Do NOT run active exploitation against third-party services. Only analyze code in-repo.
@@ -0,0 +1,14 @@
# Strix instruction for Z/src/WMS_Interface/wms_ecc_registration.cpp
Please perform a focused White-box security assessment of the repository area containing the file `Z/src/WMS_Interface/wms_ecc_registration.cpp`.
Scope:
- Focus analysis on the code in: `Z/src/WMS_Interface/wms_ecc_registration.cpp`
- Treat this as a white-box scan: use source code to prioritize findings and generate PoCs
- If applicable, attempt to reproduce vulnerabilities (in PoC) and provide remediation guidance
Notes for Strix:
- Use `--scan-mode quick` for fast checks or `--scan-mode standard` for deeper analysis
- Use `--instruction-file` with this file when invoking strix CLI
Do NOT run active exploitation against third-party services. Only analyze code in-repo.
@@ -0,0 +1,14 @@
# Strix instruction for Z/src/WMS_Interface/wms_ecc_unregister.cpp
Please perform a focused White-box security assessment of the repository area containing the file `Z/src/WMS_Interface/wms_ecc_unregister.cpp`.
Scope:
- Focus analysis on the code in: `Z/src/WMS_Interface/wms_ecc_unregister.cpp`
- Treat this as a white-box scan: use source code to prioritize findings and generate PoCs
- If applicable, attempt to reproduce vulnerabilities (in PoC) and provide remediation guidance
Notes for Strix:
- Use `--scan-mode quick` for fast checks or `--scan-mode standard` for deeper analysis
- Use `--instruction-file` with this file when invoking strix CLI
Do NOT run active exploitation against third-party services. Only analyze code in-repo.
@@ -0,0 +1,14 @@
# Strix instruction for Z/src/nglapplication/nglapplication.cpp
Please perform a focused White-box security assessment of the repository area containing the file `Z/src/nglapplication/nglapplication.cpp`.
Scope:
- Focus analysis on the code in: `Z/src/nglapplication/nglapplication.cpp`
- Treat this as a white-box scan: use source code to prioritize findings and generate PoCs
- If applicable, attempt to reproduce vulnerabilities (in PoC) and provide remediation guidance
Notes for Strix:
- Use `--scan-mode quick` for fast checks or `--scan-mode standard` for deeper analysis
- Use `--instruction-file` with this file when invoking strix CLI
Do NOT run active exploitation against third-party services. Only analyze code in-repo.
@@ -0,0 +1,14 @@
# Strix instruction for Z/src/nglapplication/nglcoreapplication.cpp
Please perform a focused White-box security assessment of the repository area containing the file `Z/src/nglapplication/nglcoreapplication.cpp`.
Scope:
- Focus analysis on the code in: `Z/src/nglapplication/nglcoreapplication.cpp`
- Treat this as a white-box scan: use source code to prioritize findings and generate PoCs
- If applicable, attempt to reproduce vulnerabilities (in PoC) and provide remediation guidance
Notes for Strix:
- Use `--scan-mode quick` for fast checks or `--scan-mode standard` for deeper analysis
- Use `--instruction-file` with this file when invoking strix CLI
Do NOT run active exploitation against third-party services. Only analyze code in-repo.
@@ -0,0 +1,14 @@
# Strix instruction for Z/src/nglapplication/nglguiapplication.cpp
Please perform a focused White-box security assessment of the repository area containing the file `Z/src/nglapplication/nglguiapplication.cpp`.
Scope:
- Focus analysis on the code in: `Z/src/nglapplication/nglguiapplication.cpp`
- Treat this as a white-box scan: use source code to prioritize findings and generate PoCs
- If applicable, attempt to reproduce vulnerabilities (in PoC) and provide remediation guidance
Notes for Strix:
- Use `--scan-mode quick` for fast checks or `--scan-mode standard` for deeper analysis
- Use `--instruction-file` with this file when invoking strix CLI
Do NOT run active exploitation against third-party services. Only analyze code in-repo.
@@ -0,0 +1,14 @@
# Strix instruction for Z/src/nglapplication/nglloggerhandler.cpp
Please perform a focused White-box security assessment of the repository area containing the file `Z/src/nglapplication/nglloggerhandler.cpp`.
Scope:
- Focus analysis on the code in: `Z/src/nglapplication/nglloggerhandler.cpp`
- Treat this as a white-box scan: use source code to prioritize findings and generate PoCs
- If applicable, attempt to reproduce vulnerabilities (in PoC) and provide remediation guidance
Notes for Strix:
- Use `--scan-mode quick` for fast checks or `--scan-mode standard` for deeper analysis
- Use `--instruction-file` with this file when invoking strix CLI
Do NOT run active exploitation against third-party services. Only analyze code in-repo.
@@ -0,0 +1,14 @@
# Strix instruction for Z/src/nglapplication/nglsingleapplication.cpp
Please perform a focused White-box security assessment of the repository area containing the file `Z/src/nglapplication/nglsingleapplication.cpp`.
Scope:
- Focus analysis on the code in: `Z/src/nglapplication/nglsingleapplication.cpp`
- Treat this as a white-box scan: use source code to prioritize findings and generate PoCs
- If applicable, attempt to reproduce vulnerabilities (in PoC) and provide remediation guidance
Notes for Strix:
- Use `--scan-mode quick` for fast checks or `--scan-mode standard` for deeper analysis
- Use `--instruction-file` with this file when invoking strix CLI
Do NOT run active exploitation against third-party services. Only analyze code in-repo.
@@ -0,0 +1,14 @@
# Strix instruction for Z/src/nglapplication/nglsinglecoreapplication.cpp
Please perform a focused White-box security assessment of the repository area containing the file `Z/src/nglapplication/nglsinglecoreapplication.cpp`.
Scope:
- Focus analysis on the code in: `Z/src/nglapplication/nglsinglecoreapplication.cpp`
- Treat this as a white-box scan: use source code to prioritize findings and generate PoCs
- If applicable, attempt to reproduce vulnerabilities (in PoC) and provide remediation guidance
Notes for Strix:
- Use `--scan-mode quick` for fast checks or `--scan-mode standard` for deeper analysis
- Use `--instruction-file` with this file when invoking strix CLI
Do NOT run active exploitation against third-party services. Only analyze code in-repo.
@@ -0,0 +1,14 @@
# Strix instruction for Z/src/nglcompression/nglcomp_bzip2iodevice.cpp
Please perform a focused White-box security assessment of the repository area containing the file `Z/src/nglcompression/nglcomp_bzip2iodevice.cpp`.
Scope:
- Focus analysis on the code in: `Z/src/nglcompression/nglcomp_bzip2iodevice.cpp`
- Treat this as a white-box scan: use source code to prioritize findings and generate PoCs
- If applicable, attempt to reproduce vulnerabilities (in PoC) and provide remediation guidance
Notes for Strix:
- Use `--scan-mode quick` for fast checks or `--scan-mode standard` for deeper analysis
- Use `--instruction-file` with this file when invoking strix CLI
Do NOT run active exploitation against third-party services. Only analyze code in-repo.
@@ -0,0 +1,14 @@
# Strix instruction for Z/src/nglcompression/nglcomp_compress.cpp
Please perform a focused White-box security assessment of the repository area containing the file `Z/src/nglcompression/nglcomp_compress.cpp`.
Scope:
- Focus analysis on the code in: `Z/src/nglcompression/nglcomp_compress.cpp`
- Treat this as a white-box scan: use source code to prioritize findings and generate PoCs
- If applicable, attempt to reproduce vulnerabilities (in PoC) and provide remediation guidance
Notes for Strix:
- Use `--scan-mode quick` for fast checks or `--scan-mode standard` for deeper analysis
- Use `--instruction-file` with this file when invoking strix CLI
Do NOT run active exploitation against third-party services. Only analyze code in-repo.
@@ -0,0 +1,14 @@
# Strix instruction for Z/src/nglcompression/nglcomp_tarfilter.cpp
Please perform a focused White-box security assessment of the repository area containing the file `Z/src/nglcompression/nglcomp_tarfilter.cpp`.
Scope:
- Focus analysis on the code in: `Z/src/nglcompression/nglcomp_tarfilter.cpp`
- Treat this as a white-box scan: use source code to prioritize findings and generate PoCs
- If applicable, attempt to reproduce vulnerabilities (in PoC) and provide remediation guidance
Notes for Strix:
- Use `--scan-mode quick` for fast checks or `--scan-mode standard` for deeper analysis
- Use `--instruction-file` with this file when invoking strix CLI
Do NOT run active exploitation against third-party services. Only analyze code in-repo.
@@ -0,0 +1,14 @@
# Strix instruction for Z/src/nglcompression/nglcomp_test.cpp
Please perform a focused White-box security assessment of the repository area containing the file `Z/src/nglcompression/nglcomp_test.cpp`.
Scope:
- Focus analysis on the code in: `Z/src/nglcompression/nglcomp_test.cpp`
- Treat this as a white-box scan: use source code to prioritize findings and generate PoCs
- If applicable, attempt to reproduce vulnerabilities (in PoC) and provide remediation guidance
Notes for Strix:
- Use `--scan-mode quick` for fast checks or `--scan-mode standard` for deeper analysis
- Use `--instruction-file` with this file when invoking strix CLI
Do NOT run active exploitation against third-party services. Only analyze code in-repo.
+14
View File
@@ -0,0 +1,14 @@
# Strix instruction for Z/src/ngldb/dbconnection.cpp
Please perform a focused White-box security assessment of the repository area containing the file `Z/src/ngldb/dbconnection.cpp`.
Scope:
- Focus analysis on the code in: `Z/src/ngldb/dbconnection.cpp`
- Treat this as a white-box scan: use source code to prioritize findings and generate PoCs
- If applicable, attempt to reproduce vulnerabilities (in PoC) and provide remediation guidance
Notes for Strix:
- Use `--scan-mode quick` for fast checks or `--scan-mode standard` for deeper analysis
- Use `--instruction-file` with this file when invoking strix CLI
Do NOT run active exploitation against third-party services. Only analyze code in-repo.
+14
View File
@@ -0,0 +1,14 @@
# Strix instruction for Z/src/ngldb/dbtransaction.cpp
Please perform a focused White-box security assessment of the repository area containing the file `Z/src/ngldb/dbtransaction.cpp`.
Scope:
- Focus analysis on the code in: `Z/src/ngldb/dbtransaction.cpp`
- Treat this as a white-box scan: use source code to prioritize findings and generate PoCs
- If applicable, attempt to reproduce vulnerabilities (in PoC) and provide remediation guidance
Notes for Strix:
- Use `--scan-mode quick` for fast checks or `--scan-mode standard` for deeper analysis
- Use `--instruction-file` with this file when invoking strix CLI
Do NOT run active exploitation against third-party services. Only analyze code in-repo.
+14
View File
@@ -0,0 +1,14 @@
# Strix instruction for Z/src/ngldb/ngldb_logger.cpp
Please perform a focused White-box security assessment of the repository area containing the file `Z/src/ngldb/ngldb_logger.cpp`.
Scope:
- Focus analysis on the code in: `Z/src/ngldb/ngldb_logger.cpp`
- Treat this as a white-box scan: use source code to prioritize findings and generate PoCs
- If applicable, attempt to reproduce vulnerabilities (in PoC) and provide remediation guidance
Notes for Strix:
- Use `--scan-mode quick` for fast checks or `--scan-mode standard` for deeper analysis
- Use `--instruction-file` with this file when invoking strix CLI
Do NOT run active exploitation against third-party services. Only analyze code in-repo.
+14
View File
@@ -0,0 +1,14 @@
# Strix instruction for Z/src/ngldb/nsqlquery.cpp
Please perform a focused White-box security assessment of the repository area containing the file `Z/src/ngldb/nsqlquery.cpp`.
Scope:
- Focus analysis on the code in: `Z/src/ngldb/nsqlquery.cpp`
- Treat this as a white-box scan: use source code to prioritize findings and generate PoCs
- If applicable, attempt to reproduce vulnerabilities (in PoC) and provide remediation guidance
Notes for Strix:
- Use `--scan-mode quick` for fast checks or `--scan-mode standard` for deeper analysis
- Use `--instruction-file` with this file when invoking strix CLI
Do NOT run active exploitation against third-party services. Only analyze code in-repo.
@@ -0,0 +1,14 @@
# Strix instruction for Z/src/ngldb/sql_query_janitor.cpp
Please perform a focused White-box security assessment of the repository area containing the file `Z/src/ngldb/sql_query_janitor.cpp`.
Scope:
- Focus analysis on the code in: `Z/src/ngldb/sql_query_janitor.cpp`
- Treat this as a white-box scan: use source code to prioritize findings and generate PoCs
- If applicable, attempt to reproduce vulnerabilities (in PoC) and provide remediation guidance
Notes for Strix:
- Use `--scan-mode quick` for fast checks or `--scan-mode standard` for deeper analysis
- Use `--instruction-file` with this file when invoking strix CLI
Do NOT run active exploitation against third-party services. Only analyze code in-repo.
@@ -0,0 +1,14 @@
# Strix instruction for Z/src/nglsettings/nglsettings_connections.cpp
Please perform a focused White-box security assessment of the repository area containing the file `Z/src/nglsettings/nglsettings_connections.cpp`.
Scope:
- Focus analysis on the code in: `Z/src/nglsettings/nglsettings_connections.cpp`
- Treat this as a white-box scan: use source code to prioritize findings and generate PoCs
- If applicable, attempt to reproduce vulnerabilities (in PoC) and provide remediation guidance
Notes for Strix:
- Use `--scan-mode quick` for fast checks or `--scan-mode standard` for deeper analysis
- Use `--instruction-file` with this file when invoking strix CLI
Do NOT run active exploitation against third-party services. Only analyze code in-repo.
@@ -0,0 +1,14 @@
# Strix instruction for Z/src/nglsettings/nglsettings_settings.cpp
Please perform a focused White-box security assessment of the repository area containing the file `Z/src/nglsettings/nglsettings_settings.cpp`.
Scope:
- Focus analysis on the code in: `Z/src/nglsettings/nglsettings_settings.cpp`
- Treat this as a white-box scan: use source code to prioritize findings and generate PoCs
- If applicable, attempt to reproduce vulnerabilities (in PoC) and provide remediation guidance
Notes for Strix:
- Use `--scan-mode quick` for fast checks or `--scan-mode standard` for deeper analysis
- Use `--instruction-file` with this file when invoking strix CLI
Do NOT run active exploitation against third-party services. Only analyze code in-repo.
@@ -0,0 +1,14 @@
# Strix instruction for Z/src/ngltools/ngltools_convert.cpp
Please perform a focused White-box security assessment of the repository area containing the file `Z/src/ngltools/ngltools_convert.cpp`.
Scope:
- Focus analysis on the code in: `Z/src/ngltools/ngltools_convert.cpp`
- Treat this as a white-box scan: use source code to prioritize findings and generate PoCs
- If applicable, attempt to reproduce vulnerabilities (in PoC) and provide remediation guidance
Notes for Strix:
- Use `--scan-mode quick` for fast checks or `--scan-mode standard` for deeper analysis
- Use `--instruction-file` with this file when invoking strix CLI
Do NOT run active exploitation against third-party services. Only analyze code in-repo.
@@ -0,0 +1,14 @@
# Strix instruction for Z/src/ngltools/ngltools_dtg.cpp
Please perform a focused White-box security assessment of the repository area containing the file `Z/src/ngltools/ngltools_dtg.cpp`.
Scope:
- Focus analysis on the code in: `Z/src/ngltools/ngltools_dtg.cpp`
- Treat this as a white-box scan: use source code to prioritize findings and generate PoCs
- If applicable, attempt to reproduce vulnerabilities (in PoC) and provide remediation guidance
Notes for Strix:
- Use `--scan-mode quick` for fast checks or `--scan-mode standard` for deeper analysis
- Use `--instruction-file` with this file when invoking strix CLI
Do NOT run active exploitation against third-party services. Only analyze code in-repo.
@@ -0,0 +1,14 @@
# Strix instruction for Z/src/ngltools/ngltools_filesystem.cpp
Please perform a focused White-box security assessment of the repository area containing the file `Z/src/ngltools/ngltools_filesystem.cpp`.
Scope:
- Focus analysis on the code in: `Z/src/ngltools/ngltools_filesystem.cpp`
- Treat this as a white-box scan: use source code to prioritize findings and generate PoCs
- If applicable, attempt to reproduce vulnerabilities (in PoC) and provide remediation guidance
Notes for Strix:
- Use `--scan-mode quick` for fast checks or `--scan-mode standard` for deeper analysis
- Use `--instruction-file` with this file when invoking strix CLI
Do NOT run active exploitation against third-party services. Only analyze code in-repo.
@@ -0,0 +1,14 @@
# Strix instruction for Z/src/ngltools/ngltools_helpevent.cpp
Please perform a focused White-box security assessment of the repository area containing the file `Z/src/ngltools/ngltools_helpevent.cpp`.
Scope:
- Focus analysis on the code in: `Z/src/ngltools/ngltools_helpevent.cpp`
- Treat this as a white-box scan: use source code to prioritize findings and generate PoCs
- If applicable, attempt to reproduce vulnerabilities (in PoC) and provide remediation guidance
Notes for Strix:
- Use `--scan-mode quick` for fast checks or `--scan-mode standard` for deeper analysis
- Use `--instruction-file` with this file when invoking strix CLI
Do NOT run active exploitation against third-party services. Only analyze code in-repo.
@@ -0,0 +1,14 @@
# Strix instruction for Z/src/ngltranslator/ngltranslator.cpp
Please perform a focused White-box security assessment of the repository area containing the file `Z/src/ngltranslator/ngltranslator.cpp`.
Scope:
- Focus analysis on the code in: `Z/src/ngltranslator/ngltranslator.cpp`
- Treat this as a white-box scan: use source code to prioritize findings and generate PoCs
- If applicable, attempt to reproduce vulnerabilities (in PoC) and provide remediation guidance
Notes for Strix:
- Use `--scan-mode quick` for fast checks or `--scan-mode standard` for deeper analysis
- Use `--instruction-file` with this file when invoking strix CLI
Do NOT run active exploitation against third-party services. Only analyze code in-repo.
@@ -0,0 +1,14 @@
# Strix instruction for Z/src/nglwidgets/ngldialog.cpp
Please perform a focused White-box security assessment of the repository area containing the file `Z/src/nglwidgets/ngldialog.cpp`.
Scope:
- Focus analysis on the code in: `Z/src/nglwidgets/ngldialog.cpp`
- Treat this as a white-box scan: use source code to prioritize findings and generate PoCs
- If applicable, attempt to reproduce vulnerabilities (in PoC) and provide remediation guidance
Notes for Strix:
- Use `--scan-mode quick` for fast checks or `--scan-mode standard` for deeper analysis
- Use `--instruction-file` with this file when invoking strix CLI
Do NOT run active exploitation against third-party services. Only analyze code in-repo.
@@ -0,0 +1,14 @@
# Strix instruction for Z/src/nglwidgets/ngldialogbuttonbox.cpp
Please perform a focused White-box security assessment of the repository area containing the file `Z/src/nglwidgets/ngldialogbuttonbox.cpp`.
Scope:
- Focus analysis on the code in: `Z/src/nglwidgets/ngldialogbuttonbox.cpp`
- Treat this as a white-box scan: use source code to prioritize findings and generate PoCs
- If applicable, attempt to reproduce vulnerabilities (in PoC) and provide remediation guidance
Notes for Strix:
- Use `--scan-mode quick` for fast checks or `--scan-mode standard` for deeper analysis
- Use `--instruction-file` with this file when invoking strix CLI
Do NOT run active exploitation against third-party services. Only analyze code in-repo.
@@ -0,0 +1,14 @@
# Strix instruction for Z/src/nglwidgets/nglmainwindow.cpp
Please perform a focused White-box security assessment of the repository area containing the file `Z/src/nglwidgets/nglmainwindow.cpp`.
Scope:
- Focus analysis on the code in: `Z/src/nglwidgets/nglmainwindow.cpp`
- Treat this as a white-box scan: use source code to prioritize findings and generate PoCs
- If applicable, attempt to reproduce vulnerabilities (in PoC) and provide remediation guidance
Notes for Strix:
- Use `--scan-mode quick` for fast checks or `--scan-mode standard` for deeper analysis
- Use `--instruction-file` with this file when invoking strix CLI
Do NOT run active exploitation against third-party services. Only analyze code in-repo.
@@ -0,0 +1,14 @@
# Strix instruction for Z/src/nglwidgets/nglpdfdocument.cpp
Please perform a focused White-box security assessment of the repository area containing the file `Z/src/nglwidgets/nglpdfdocument.cpp`.
Scope:
- Focus analysis on the code in: `Z/src/nglwidgets/nglpdfdocument.cpp`
- Treat this as a white-box scan: use source code to prioritize findings and generate PoCs
- If applicable, attempt to reproduce vulnerabilities (in PoC) and provide remediation guidance
Notes for Strix:
- Use `--scan-mode quick` for fast checks or `--scan-mode standard` for deeper analysis
- Use `--instruction-file` with this file when invoking strix CLI
Do NOT run active exploitation against third-party services. Only analyze code in-repo.
@@ -0,0 +1,14 @@
# Strix instruction for Z/src/nglwidgets/nglpdfpage.cpp
Please perform a focused White-box security assessment of the repository area containing the file `Z/src/nglwidgets/nglpdfpage.cpp`.
Scope:
- Focus analysis on the code in: `Z/src/nglwidgets/nglpdfpage.cpp`
- Treat this as a white-box scan: use source code to prioritize findings and generate PoCs
- If applicable, attempt to reproduce vulnerabilities (in PoC) and provide remediation guidance
Notes for Strix:
- Use `--scan-mode quick` for fast checks or `--scan-mode standard` for deeper analysis
- Use `--instruction-file` with this file when invoking strix CLI
Do NOT run active exploitation against third-party services. Only analyze code in-repo.
@@ -0,0 +1,14 @@
# Strix instruction for Z/src/nglwidgets/nglpdfwidget.cpp
Please perform a focused White-box security assessment of the repository area containing the file `Z/src/nglwidgets/nglpdfwidget.cpp`.
Scope:
- Focus analysis on the code in: `Z/src/nglwidgets/nglpdfwidget.cpp`
- Treat this as a white-box scan: use source code to prioritize findings and generate PoCs
- If applicable, attempt to reproduce vulnerabilities (in PoC) and provide remediation guidance
Notes for Strix:
- Use `--scan-mode quick` for fast checks or `--scan-mode standard` for deeper analysis
- Use `--instruction-file` with this file when invoking strix CLI
Do NOT run active exploitation against third-party services. Only analyze code in-repo.
@@ -0,0 +1,14 @@
# Strix instruction for Z/src/nglwidgets/nglstandardbutton.cpp
Please perform a focused White-box security assessment of the repository area containing the file `Z/src/nglwidgets/nglstandardbutton.cpp`.
Scope:
- Focus analysis on the code in: `Z/src/nglwidgets/nglstandardbutton.cpp`
- Treat this as a white-box scan: use source code to prioritize findings and generate PoCs
- If applicable, attempt to reproduce vulnerabilities (in PoC) and provide remediation guidance
Notes for Strix:
- Use `--scan-mode quick` for fast checks or `--scan-mode standard` for deeper analysis
- Use `--instruction-file` with this file when invoking strix CLI
Do NOT run active exploitation against third-party services. Only analyze code in-repo.
@@ -0,0 +1,14 @@
# Strix instruction for Z/src/nglwidgets/ngltreeitem.cpp
Please perform a focused White-box security assessment of the repository area containing the file `Z/src/nglwidgets/ngltreeitem.cpp`.
Scope:
- Focus analysis on the code in: `Z/src/nglwidgets/ngltreeitem.cpp`
- Treat this as a white-box scan: use source code to prioritize findings and generate PoCs
- If applicable, attempt to reproduce vulnerabilities (in PoC) and provide remediation guidance
Notes for Strix:
- Use `--scan-mode quick` for fast checks or `--scan-mode standard` for deeper analysis
- Use `--instruction-file` with this file when invoking strix CLI
Do NOT run active exploitation against third-party services. Only analyze code in-repo.
@@ -0,0 +1,14 @@
# Strix instruction for Z/src/nglwidgets/ngltreemodel.cpp
Please perform a focused White-box security assessment of the repository area containing the file `Z/src/nglwidgets/ngltreemodel.cpp`.
Scope:
- Focus analysis on the code in: `Z/src/nglwidgets/ngltreemodel.cpp`
- Treat this as a white-box scan: use source code to prioritize findings and generate PoCs
- If applicable, attempt to reproduce vulnerabilities (in PoC) and provide remediation guidance
Notes for Strix:
- Use `--scan-mode quick` for fast checks or `--scan-mode standard` for deeper analysis
- Use `--instruction-file` with this file when invoking strix CLI
Do NOT run active exploitation against third-party services. Only analyze code in-repo.
@@ -0,0 +1,14 @@
# Strix instruction for Z/src/nglwidgets/test_nglpdfwidget.cpp
Please perform a focused White-box security assessment of the repository area containing the file `Z/src/nglwidgets/test_nglpdfwidget.cpp`.
Scope:
- Focus analysis on the code in: `Z/src/nglwidgets/test_nglpdfwidget.cpp`
- Treat this as a white-box scan: use source code to prioritize findings and generate PoCs
- If applicable, attempt to reproduce vulnerabilities (in PoC) and provide remediation guidance
Notes for Strix:
- Use `--scan-mode quick` for fast checks or `--scan-mode standard` for deeper analysis
- Use `--instruction-file` with this file when invoking strix CLI
Do NOT run active exploitation against third-party services. Only analyze code in-repo.
@@ -0,0 +1,14 @@
# Strix instruction for Z/src/qsql_informix/qsql_informix.cpp
Please perform a focused White-box security assessment of the repository area containing the file `Z/src/qsql_informix/qsql_informix.cpp`.
Scope:
- Focus analysis on the code in: `Z/src/qsql_informix/qsql_informix.cpp`
- Treat this as a white-box scan: use source code to prioritize findings and generate PoCs
- If applicable, attempt to reproduce vulnerabilities (in PoC) and provide remediation guidance
Notes for Strix:
- Use `--scan-mode quick` for fast checks or `--scan-mode standard` for deeper analysis
- Use `--instruction-file` with this file when invoking strix CLI
Do NOT run active exploitation against third-party services. Only analyze code in-repo.
@@ -0,0 +1,14 @@
# Strix instruction for Z/src/qsql_informix/qsql_informix_plugin.cpp
Please perform a focused White-box security assessment of the repository area containing the file `Z/src/qsql_informix/qsql_informix_plugin.cpp`.
Scope:
- Focus analysis on the code in: `Z/src/qsql_informix/qsql_informix_plugin.cpp`
- Treat this as a white-box scan: use source code to prioritize findings and generate PoCs
- If applicable, attempt to reproduce vulnerabilities (in PoC) and provide remediation guidance
Notes for Strix:
- Use `--scan-mode quick` for fast checks or `--scan-mode standard` for deeper analysis
- Use `--instruction-file` with this file when invoking strix CLI
Do NOT run active exploitation against third-party services. Only analyze code in-repo.
@@ -0,0 +1,14 @@
# Strix instruction for Z/src/qsql_informix/qsql_informix_test.cpp
Please perform a focused White-box security assessment of the repository area containing the file `Z/src/qsql_informix/qsql_informix_test.cpp`.
Scope:
- Focus analysis on the code in: `Z/src/qsql_informix/qsql_informix_test.cpp`
- Treat this as a white-box scan: use source code to prioritize findings and generate PoCs
- If applicable, attempt to reproduce vulnerabilities (in PoC) and provide remediation guidance
Notes for Strix:
- Use `--scan-mode quick` for fast checks or `--scan-mode standard` for deeper analysis
- Use `--instruction-file` with this file when invoking strix CLI
Do NOT run active exploitation against third-party services. Only analyze code in-repo.
@@ -0,0 +1,14 @@
# Strix instruction for Z/src/qsql_informix/qsql_informix_utils.cpp
Please perform a focused White-box security assessment of the repository area containing the file `Z/src/qsql_informix/qsql_informix_utils.cpp`.
Scope:
- Focus analysis on the code in: `Z/src/qsql_informix/qsql_informix_utils.cpp`
- Treat this as a white-box scan: use source code to prioritize findings and generate PoCs
- If applicable, attempt to reproduce vulnerabilities (in PoC) and provide remediation guidance
Notes for Strix:
- Use `--scan-mode quick` for fast checks or `--scan-mode standard` for deeper analysis
- Use `--instruction-file` with this file when invoking strix CLI
Do NOT run active exploitation against third-party services. Only analyze code in-repo.
+14
View File
@@ -0,0 +1,14 @@
# Strix instruction for Z/src/tcpserver/cbi_help.cpp
Please perform a focused White-box security assessment of the repository area containing the file `Z/src/tcpserver/cbi_help.cpp`.
Scope:
- Focus analysis on the code in: `Z/src/tcpserver/cbi_help.cpp`
- Treat this as a white-box scan: use source code to prioritize findings and generate PoCs
- If applicable, attempt to reproduce vulnerabilities (in PoC) and provide remediation guidance
Notes for Strix:
- Use `--scan-mode quick` for fast checks or `--scan-mode standard` for deeper analysis
- Use `--instruction-file` with this file when invoking strix CLI
Do NOT run active exploitation against third-party services. Only analyze code in-repo.
@@ -0,0 +1,14 @@
# Strix instruction for Z/src/tcpserver/cbi_pingpong.cpp
Please perform a focused White-box security assessment of the repository area containing the file `Z/src/tcpserver/cbi_pingpong.cpp`.
Scope:
- Focus analysis on the code in: `Z/src/tcpserver/cbi_pingpong.cpp`
- Treat this as a white-box scan: use source code to prioritize findings and generate PoCs
- If applicable, attempt to reproduce vulnerabilities (in PoC) and provide remediation guidance
Notes for Strix:
- Use `--scan-mode quick` for fast checks or `--scan-mode standard` for deeper analysis
- Use `--instruction-file` with this file when invoking strix CLI
Do NOT run active exploitation against third-party services. Only analyze code in-repo.
+14
View File
@@ -0,0 +1,14 @@
# Strix instruction for Z/src/tcpserver/cbi_quit.cpp
Please perform a focused White-box security assessment of the repository area containing the file `Z/src/tcpserver/cbi_quit.cpp`.
Scope:
- Focus analysis on the code in: `Z/src/tcpserver/cbi_quit.cpp`
- Treat this as a white-box scan: use source code to prioritize findings and generate PoCs
- If applicable, attempt to reproduce vulnerabilities (in PoC) and provide remediation guidance
Notes for Strix:
- Use `--scan-mode quick` for fast checks or `--scan-mode standard` for deeper analysis
- Use `--instruction-file` with this file when invoking strix CLI
Do NOT run active exploitation against third-party services. Only analyze code in-repo.
@@ -0,0 +1,14 @@
# Strix instruction for Z/src/tcpserver/cbi_recvfile.cpp
Please perform a focused White-box security assessment of the repository area containing the file `Z/src/tcpserver/cbi_recvfile.cpp`.
Scope:
- Focus analysis on the code in: `Z/src/tcpserver/cbi_recvfile.cpp`
- Treat this as a white-box scan: use source code to prioritize findings and generate PoCs
- If applicable, attempt to reproduce vulnerabilities (in PoC) and provide remediation guidance
Notes for Strix:
- Use `--scan-mode quick` for fast checks or `--scan-mode standard` for deeper analysis
- Use `--instruction-file` with this file when invoking strix CLI
Do NOT run active exploitation against third-party services. Only analyze code in-repo.
@@ -0,0 +1,14 @@
# Strix instruction for Z/src/tcpserver/cbi_sendfile.cpp
Please perform a focused White-box security assessment of the repository area containing the file `Z/src/tcpserver/cbi_sendfile.cpp`.
Scope:
- Focus analysis on the code in: `Z/src/tcpserver/cbi_sendfile.cpp`
- Treat this as a white-box scan: use source code to prioritize findings and generate PoCs
- If applicable, attempt to reproduce vulnerabilities (in PoC) and provide remediation guidance
Notes for Strix:
- Use `--scan-mode quick` for fast checks or `--scan-mode standard` for deeper analysis
- Use `--instruction-file` with this file when invoking strix CLI
Do NOT run active exploitation against third-party services. Only analyze code in-repo.
@@ -0,0 +1,14 @@
# Strix instruction for Z/src/tcpserver/cbi_shutdown.cpp
Please perform a focused White-box security assessment of the repository area containing the file `Z/src/tcpserver/cbi_shutdown.cpp`.
Scope:
- Focus analysis on the code in: `Z/src/tcpserver/cbi_shutdown.cpp`
- Treat this as a white-box scan: use source code to prioritize findings and generate PoCs
- If applicable, attempt to reproduce vulnerabilities (in PoC) and provide remediation guidance
Notes for Strix:
- Use `--scan-mode quick` for fast checks or `--scan-mode standard` for deeper analysis
- Use `--instruction-file` with this file when invoking strix CLI
Do NOT run active exploitation against third-party services. Only analyze code in-repo.
@@ -0,0 +1,14 @@
# Strix instruction for Z/src/tcpserver/commandinterface.cpp
Please perform a focused White-box security assessment of the repository area containing the file `Z/src/tcpserver/commandinterface.cpp`.
Scope:
- Focus analysis on the code in: `Z/src/tcpserver/commandinterface.cpp`
- Treat this as a white-box scan: use source code to prioritize findings and generate PoCs
- If applicable, attempt to reproduce vulnerabilities (in PoC) and provide remediation guidance
Notes for Strix:
- Use `--scan-mode quick` for fast checks or `--scan-mode standard` for deeper analysis
- Use `--instruction-file` with this file when invoking strix CLI
Do NOT run active exploitation against third-party services. Only analyze code in-repo.
+14
View File
@@ -0,0 +1,14 @@
# Strix instruction for Z/src/tcpserver/tcpserver.cpp
Please perform a focused White-box security assessment of the repository area containing the file `Z/src/tcpserver/tcpserver.cpp`.
Scope:
- Focus analysis on the code in: `Z/src/tcpserver/tcpserver.cpp`
- Treat this as a white-box scan: use source code to prioritize findings and generate PoCs
- If applicable, attempt to reproduce vulnerabilities (in PoC) and provide remediation guidance
Notes for Strix:
- Use `--scan-mode quick` for fast checks or `--scan-mode standard` for deeper analysis
- Use `--instruction-file` with this file when invoking strix CLI
Do NOT run active exploitation against third-party services. Only analyze code in-repo.
@@ -0,0 +1,14 @@
# Strix instruction for Z/src/tcpserver/tcpserver_test.cpp
Please perform a focused White-box security assessment of the repository area containing the file `Z/src/tcpserver/tcpserver_test.cpp`.
Scope:
- Focus analysis on the code in: `Z/src/tcpserver/tcpserver_test.cpp`
- Treat this as a white-box scan: use source code to prioritize findings and generate PoCs
- If applicable, attempt to reproduce vulnerabilities (in PoC) and provide remediation guidance
Notes for Strix:
- Use `--scan-mode quick` for fast checks or `--scan-mode standard` for deeper analysis
- Use `--instruction-file` with this file when invoking strix CLI
Do NOT run active exploitation against third-party services. Only analyze code in-repo.
@@ -0,0 +1,14 @@
# Strix instruction for Z/src/tcpserver/workerbase.cpp
Please perform a focused White-box security assessment of the repository area containing the file `Z/src/tcpserver/workerbase.cpp`.
Scope:
- Focus analysis on the code in: `Z/src/tcpserver/workerbase.cpp`
- Treat this as a white-box scan: use source code to prioritize findings and generate PoCs
- If applicable, attempt to reproduce vulnerabilities (in PoC) and provide remediation guidance
Notes for Strix:
- Use `--scan-mode quick` for fast checks or `--scan-mode standard` for deeper analysis
- Use `--instruction-file` with this file when invoking strix CLI
Do NOT run active exploitation against third-party services. Only analyze code in-repo.
+37
View File
@@ -0,0 +1,37 @@
#!/usr/bin/env python3
"""
Generate per-source-file Strix instruction markdowns for Z/src and a simple runner.
Run this script from the repo root to (re)generate instruction files.
"""
import os
from pathlib import Path
ROOT = Path(__file__).resolve().parents[2]
SRC_DIR = ROOT / 'Z' / 'src'
OUT_DIR = ROOT / 'tests' / 'strix' / 'Z'
OUT_DIR.mkdir(parents=True, exist_ok=True)
TEMPLATE = """# Strix instruction for {rel_path}
Please perform a focused White-box security assessment of the repository area containing the file `{rel_path}`.
Scope:
- Focus analysis on the code in: `{rel_path}`
- Treat this as a white-box scan: use source code to prioritize findings and generate PoCs
- If applicable, attempt to reproduce vulnerabilities (in PoC) and provide remediation guidance
Notes for Strix:
- Use `--scan-mode quick` for fast checks or `--scan-mode standard` for deeper analysis
- Use `--instruction-file` with this file when invoking strix CLI
Do NOT run active exploitation against third-party services. Only analyze code in-repo.
"""
count = 0
for path in sorted(SRC_DIR.rglob('*.cpp')):
rel = path.relative_to(ROOT)
out = OUT_DIR / (str(path.relative_to(SRC_DIR)).replace(os.sep, '__') + '.md')
out.write_text(TEMPLATE.format(rel_path=str(rel)))
count += 1
print(f"Wrote {count} instruction files to {OUT_DIR}")
+31
View File
@@ -0,0 +1,31 @@
#!/usr/bin/env bash
set -euo pipefail
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
REPO_ROOT="$(cd "$SCRIPT_DIR/../.." && pwd)"
INSTR_DIR="$REPO_ROOT/tests/strix/Z"
# Generate instruction files
python3 "$REPO_ROOT/tests/strix/generate_strix_tests.py"
if [[ -z "${LLM_API_KEY:-}" || -z "${STRIX_LLM:-}" ]]; then
echo "Warning: STRIX_LLM or LLM_API_KEY not set. Set them before running Strix (or configure local model)."
echo "Runner will still generate instruction files; to execute scans set the env vars and run again."
fi
failed=0
for md in "$INSTR_DIR"/*.md; do
echo "---- Running Strix for $md ----"
if [[ -z "${LLM_API_KEY:-}" ]]; then
echo "Skipping execution: LLM_API_KEY not set"
continue
fi
# non-interactive, focused instruction
strix -n --target "$REPO_ROOT" --instruction-file "$md" --scan-mode quick || failed=1
done
if [[ $failed -ne 0 ]]; then
echo "Some Strix runs failed or found issues (exit code non-zero). Check output above." >&2
exit $failed
fi
echo "All Strix runs completed."