{"id":13775534,"url":"https://github.com/sensepost/dns-shell","last_synced_at":"2025-04-05T08:06:50.943Z","repository":{"id":41308858,"uuid":"70065048","full_name":"sensepost/DNS-Shell","owner":"sensepost","description":"DNS-Shell is an interactive Shell over DNS channel","archived":false,"fork":false,"pushed_at":"2020-10-11T16:26:14.000Z","size":5,"stargazers_count":524,"open_issues_count":2,"forks_count":133,"subscribers_count":34,"default_branch":"master","last_synced_at":"2025-03-29T07:06:34.856Z","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/sensepost.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-10-05T13:51:29.000Z","updated_at":"2025-03-24T20:31:55.000Z","dependencies_parsed_at":"2022-09-03T14:02:41.630Z","dependency_job_id":null,"html_url":"https://github.com/sensepost/DNS-Shell","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/sensepost%2FDNS-Shell","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sensepost%2FDNS-Shell/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sensepost%2FDNS-Shell/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sensepost%2FDNS-Shell/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sensepost","download_url":"https://codeload.github.com/sensepost/DNS-Shell/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247305934,"owners_count":20917208,"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:40.511Z","updated_at":"2025-04-05T08:06:50.925Z","avatar_url":"https://github.com/sensepost.png","language":"Python","funding_links":[],"categories":["\u003ca id=\"eec238a1a2657b70f7bbbe68a4421249\"\u003e\u003c/a\u003e其他"],"sub_categories":["\u003ca id=\"b239f12aca7aa942b45836032cbef99a\"\u003e\u003c/a\u003e转换"],"readme":"\u003ch1\u003eDNS-shell\u003c/h1\u003e\n\n\n\u003cp\u003eDNS-Shell is an interactive Shell over DNS channel. The server is Python based and can run on any operating system that has python installed, the payload is an encoded PowerShell command.\u003c/p\u003e\n\n\n\n\n\u003ch2\u003eUnderstanding DNS-Shell\u003c/h2\u003e\n\u003cp\u003eThe Payload is generated when the sever script is invoked and it simply utilizes nslookup to perform the queries and query the server for new commands the server then listens on port 53 for incoming communications, once payload is executed on the target machine the server will spawn an interactive shell.\u003c/p\u003e\n\u003cp\u003eOnce the channel is established the payload will continously query the server for commands if a new command is entered, it will execute it and return the result back to the server.\u003c/p\u003e\n\n\n\u003ch2\u003eUsing DNS-Shell\u003c/h2\u003e\n\u003cp\u003eRunning DNS-Shell is relatively simple\u003c/p\u003e\n\u003cp\u003eDNS-Shell supports two mode of operations direct and recursive modes:\n\u003cul\u003e\n\u003cli\u003ePerform a git clone from our DNS-shell \u003ca href=\"https://github.com/sensepost/DNS-Shell\"\u003eGithub page\u003c/a\u003e\u003c/li\u003e\n\u003cli\u003eDNS-Shell direct mode: sudo python DNS-Shell.py -l -d [Server IP]\u003c/li\u003e\n\u003cli\u003eDNS-Shell recursive mode: sudo python DNS-Shell.py -l -r [Domain]\u003c/li\u003e\n\u003c/ul\u003e\n\u003cp\u003e\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsensepost%2Fdns-shell","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsensepost%2Fdns-shell","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsensepost%2Fdns-shell/lists"}