2 个仓库
Configures specific errors to be returned from any mocked database operation to test error handling paths.
Distinct from Database Error Handling: Distinct from Database Error Handling: focuses on simulating errors for testing, not on handling real database exceptions.
Explore 2 awesome GitHub repositories matching data & databases · Error Simulators. Refine with filters or upvote what's useful.
go-sqlmock is a Go library that simulates SQL driver behavior for unit testing by intercepting database calls through the standard database/sql/driver interface, eliminating the need for a real database connection. It provides a comprehensive mocking framework that allows developers to define expectations for SQL operations, including queries, executions, prepared statements, and transaction lifecycles, with precise control over the results and errors returned. The library distinguishes itself through its flexible matching and verification capabilities. It supports regex-based or exact SQL
Configures specific errors to be returned from any database operation to test error handling paths.
sqli-labs 是一个包含故意存在漏洞的 Web 应用和沙箱环境的集合,旨在练习识别和利用 SQL 注入漏洞。它作为一个网络安全教育实验室,用户可以在受控环境中尝试数据库漏洞利用。 该环境提供了专门的模块来测试广泛的攻击向量,包括基于错误的注入、布尔盲注和基于时间的注入。它特别涵盖了高级技术,如二阶注入、堆叠查询以及针对 HTTP 头的攻击。 该项目还包括专注于安全过滤器规避和通过注释剥离、阻抗失配等技术绕过 Web 应用防火墙的练习。这些场景允许模拟真实世界的渗透测试和数据库安全审计。
Provides modules for revealing database structures through union selects and simulated error messages.