{"id":17244639,"url":"https://github.com/kost/sqlc","last_synced_at":"2025-06-16T13:09:42.317Z","repository":{"id":59042791,"uuid":"66290299","full_name":"kost/sqlc","owner":"kost","description":"sqlc - Universal DBMS/SQL client with exfiltration features :)","archived":false,"fork":false,"pushed_at":"2023-12-19T00:14:01.000Z","size":115,"stargazers_count":18,"open_issues_count":2,"forks_count":3,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-14T04:08:41.387Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/kost.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2016-08-22T16:43:53.000Z","updated_at":"2024-04-08T16:32:23.000Z","dependencies_parsed_at":"2024-06-20T12:07:50.721Z","dependency_job_id":null,"html_url":"https://github.com/kost/sqlc","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/kost/sqlc","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kost%2Fsqlc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kost%2Fsqlc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kost%2Fsqlc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kost%2Fsqlc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kost","download_url":"https://codeload.github.com/kost/sqlc/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kost%2Fsqlc/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260166294,"owners_count":22968632,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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-15T06:26:27.873Z","updated_at":"2025-06-16T13:09:42.296Z","avatar_url":"https://github.com/kost.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Circle Status](https://circleci.com/gh/kost/sqlc.svg?style=shield\u0026circle-token=:circle-token)](https://circleci.com/gh/kost/sqlc)\n[![Codacy Badge](https://api.codacy.com/project/badge/Grade/c1ad8ed944fc4289ad6d4f5c3537f3ba)](https://www.codacy.com/manual/kost/sqlc?utm_source=github.com\u0026amp;utm_medium=referral\u0026amp;utm_content=kost/sqlc\u0026amp;utm_campaign=Badge_Grade)\n\n# sqlc\nsqlc - Universal DBMS/SQL client with exfiltration features :)\n\nSQLc is universal and portable DBMS client. Although, it can be used as such, it have some universal features in order to help penetration testers. Imaging doing heavy exploitation behind perimeter and getting access to database, but still having hard time silently exfiltrating data from database? sqlc comes to rescue as single fat client for most popular databases! \nAlso, it comes with different database exfiltration methods, so you can finally test your database firewall.\n\n## installation\n\nStandard go way on github:\n\n```\ngit clone https://github.com/kost/sqlc\ncd sqlc\ngo get\ngo build\n```\n\n## usage\n\n### listing database drivers\n\n```\n$ ./sqlc list\nawsathena\nfirebirdsql\nfirebirdsql_createdb\nmssql\nmysql\noracle\npostgres\nsqlite3\nsqlmock\nsqlserver\n```\n\n### console\n\n```\n./sqlc console\n```\n\n### dumping\n\n```\n./sqlc dump\n```\n\n### execute single query\n\n```\n./sqlc -q 'SELECT * FROM users'\n```\n\n## Examples\n\n### PostgreSQL\n\n```\n./sqlc -d postgres -c \"user=db password=db database=db host=172.17.0.2 sslmode=disable\" console\n```\n\n### MySQL dump\n\nNote: when SQLC_COMMAND is specified, all command line options are ignored. Due to stealthy dump...\n```\nexport SQLC_CONN=dbuser:dbpasswd@tcp\\(127.0.0.1\\)/dbname\nexport SQLC_DRIVER=mysql\nexport SQLC_MAX_ROWS=100\nexport SQLC_MIN_ROWS=1000\nexport SQLC_MIN_DELAY=15s\nexport SQLC_MAX_DELAY=45s\nexport SQLC_TABLE=users\nexport SQLC_COMMAND=dump\n./sqlc smtp trivial rewrite --all-options-ignored\n```\n\n### Sybase\n\nSybase ASE 12.5 or higher\n\n```\ntds://my_user:my_password@dbhost.com:5000/pubs?charset=utf8\n```\n\n### Oracle\n\nOracle simple:\n```\noracle://user:pass@server/service_name\n```\n\nOracle example with multiple servers\n```\noracle://user:pass@server1/service?server=server2\u0026server=server3\n```\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkost%2Fsqlc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkost%2Fsqlc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkost%2Fsqlc/lists"}