{"id":13776073,"url":"https://github.com/shadejinx/tunviz","last_synced_at":"2025-05-11T08:34:52.410Z","repository":{"id":216003388,"uuid":"44206385","full_name":"shadejinx/tunviz","owner":"shadejinx","description":"DNS Tunnel Detection","archived":false,"fork":false,"pushed_at":"2015-10-13T22:17:59.000Z","size":404,"stargazers_count":7,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-11-17T11:47:44.643Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","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/shadejinx.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,"governance":null,"roadmap":null,"authors":null}},"created_at":"2015-10-13T21:36:58.000Z","updated_at":"2024-03-25T08:00:49.000Z","dependencies_parsed_at":"2024-01-28T03:27:54.112Z","dependency_job_id":null,"html_url":"https://github.com/shadejinx/tunviz","commit_stats":null,"previous_names":["shadejinx/tunviz"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shadejinx%2Ftunviz","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shadejinx%2Ftunviz/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shadejinx%2Ftunviz/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shadejinx%2Ftunviz/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/shadejinx","download_url":"https://codeload.github.com/shadejinx/tunviz/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253540624,"owners_count":21924522,"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-08-03T17:01:59.446Z","updated_at":"2025-05-11T08:34:52.104Z","avatar_url":"https://github.com/shadejinx.png","language":"Python","funding_links":[],"categories":["\u003ca id=\"01e6651181d405ecdcd92a452989e7e0\"\u003e\u003c/a\u003e工具"],"sub_categories":["\u003ca id=\"ea4dfcd8f33ec1852180c6283b2c8516\"\u003e\u003c/a\u003e未分类"],"readme":"# tunviz.py\nDNS Tunnel Detection\n\n## Introduction\nThis application parses a DNS server log entry and looks for signs of DNS Tunnel Activity through the very complicated method of filtering out the crap you don't want and counting the rest. \n\n## Requirements\nTLDextract is required. Get it at: https://github.com/john-kurkowski/tldextract\n\n## Instructions\n\n##### Command-line arguments\n```\npython tunviz.py [-dfq][-b int][-i input_file] -c config_file\n\n-b int          Set how many seconds between beacons (default:5)\n-c filename     Location of the config file (default:default.cfg)  \n-d              Enable debug mode (default:False)\n-f              Use Addtional Noise Filtering (default:False)\n-i filename     Location of the file to parse (default:None)\n-q              Quiet Mode, only results output (default:False)\n```\n##### Example\n\n`python tunviz.py -d -f -b 60 -i log.txt -c default.cfg`\n\nIt can also take stdin as an input:\n\n`cat log1.txt log2.txt | python tunviz.py -q -c default.cfg`\n\n## Config File\nThe config file has 2 types of sections, General and Parser\n\nThe General section can configure beacon and addtional filter values, but the command-line argument will override them.\n\nThe Parser sections contain the following values:\n* **regex**: This is a regular expression that is used to parse a log line into the following fields: date_time, status, query_type and question\n* **date_time**: This is an _INT_ representing the regex capture group that contains the date and time\n* **date_time_format**: This is the strptime encoded format that the date_time field is in. See http://pubs.opengroup.org/onlinepubs/009695399/functions/strptime.html for more information. *Note: ConfigParser requires '%' symbols to be escaped by another '%'. See default.cfg for an example.*\n* **status**: This is an _INT_ representing the regex capture group that contains the status of the DNS Request. (e.g. NOERROR or NXDOMAIN)\n* **query_type**: This is an _INT_ representing the regex capture group that contains the type of query. (e.g. A, AAAA, MX, CNAME, etc.)\n* **question**: This is an _INT_ representing the regex capture group that contains the FQDN that was requested. In Windows DNS logs, this entry looks like (3)www(6)google(3)com(0). The script can handle this case.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshadejinx%2Ftunviz","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fshadejinx%2Ftunviz","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshadejinx%2Ftunviz/lists"}