{"id":18251771,"url":"https://github.com/hiroakis/go-sql-sniffer","last_synced_at":"2025-04-04T16:32:39.143Z","repository":{"id":57629295,"uuid":"94614558","full_name":"hiroakis/go-sql-sniffer","owner":"hiroakis","description":"The go-sql-sniffer extracts the SQL packet from tcpdump packet.","archived":false,"fork":false,"pushed_at":"2017-06-17T10:27:46.000Z","size":4,"stargazers_count":7,"open_issues_count":0,"forks_count":3,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-20T15:22:58.942Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Go","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/hiroakis.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":"2017-06-17T09:46:39.000Z","updated_at":"2022-06-26T03:18:06.000Z","dependencies_parsed_at":"2022-09-26T20:11:00.575Z","dependency_job_id":null,"html_url":"https://github.com/hiroakis/go-sql-sniffer","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hiroakis%2Fgo-sql-sniffer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hiroakis%2Fgo-sql-sniffer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hiroakis%2Fgo-sql-sniffer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hiroakis%2Fgo-sql-sniffer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hiroakis","download_url":"https://codeload.github.com/hiroakis/go-sql-sniffer/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247209622,"owners_count":20901827,"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-11-05T09:48:27.405Z","updated_at":"2025-04-04T16:32:38.883Z","avatar_url":"https://github.com/hiroakis.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# go-sql-sniffer\n\nThe go-sql-sniffer extracts the SQL packet from tcpdump packet. The tool wraps tcpdump.\n\n# Installation\n\nRun git clone and go build.\n\n# Usage\n\n* run\n\n```\nsudo go-sql-sniffer\n```\n\nIt is same as `tcpdump tcp -i any -A -t -n -q -s 0 dst port 3306`. The output will be humanreadable json string.\n\n```\n{\"unixtime\":1497694222,\"datetime\":\"2017-06-17 10:10:22\",\"from\":\"10.0.4.218.61904\",\"to\":\"10.0.0.159.3306\",\"sql\":\"SELECT `t`.* FROM `t` WHERE `t`.`id` IN (25298241, 25505237, 25563426, 25564627, 25053459, 25505323, 25506064, 25566828, 24280930, 25568604, 25569780)\"}\n```\n\n* options\n\n```\nUsage of /tmp/go-sql-sniffer:\n  -dst\n        The dst flag. See man tcpdump. (default true)\n  -src\n        The src flag. See man tcpdump.\n  -port string\n        The SQL traffic port. (default \"3306\")\n  -file string\n        If you run with -file, the packet data will be saved to specified file.\n  -format string\n        The output format. You can set json, csv and tsv. (default \"json\")\n```\n\n# License\n\nMIT","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhiroakis%2Fgo-sql-sniffer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhiroakis%2Fgo-sql-sniffer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhiroakis%2Fgo-sql-sniffer/lists"}