{ "info": { "author": "Kimball Leavitt", "author_email": "kimballleavitt@gmail.com", "bugtrack_url": null, "classifiers": [], "description": "# dns-spoofer\n\nSend spoofed DNS queries over UDP.\n\n# Installation\n\n```\npip install git+https://github.com/kimbo/dns-spoofer.git\n```\n\nThat will install two scripts\n\n- `dns-spoof` - send DNS queries with a different source port and source IP address than your own.\n- `dns-listen` - listen for and print UDP packets (i.e. DNS queries) on a port and address\n\n# Quick example\n\nThis will be a little bit cooler if you have access to two different computers on the same network, \nbut it'll work just the same on just one.\n\n### Step #1: \nOpen up a terminal and run:\n```\n$ dns-listen 53535\nListening on port 53535 and address ...\n```\nYou can replace 53535 with whatever port number you want (I'd recommend one bigger than 1024).\n\nNote that the address is blank (meaning we're listening on all addresses).\n\nIf you have two computers, take note of the first computer's IP address (look into `ip addr`, or `ifconfig` if you're on a Mac)\n\n### Step #2\nIf you have two computers, you'll need the IP address from your first machine here:\n```\n$ dns-spoof example.com 1.1.1.1 --sport 53535 --src-addr \n```\nOtherwise, if you're doing this on one computer, run:\n```\n$ dns-spoof example.com 1.1.1.1 --sport 53535\n```\nYour output after running `dns-spoof` should look something like this:\n```\n(query) 192.168.0.25#53535 --> 1.1.1.1#53, \"example.com\" type \"A\"\n\n### QUERY TIME: 0.00028133392333984375\n```\n\nSoon after running `dns-spoof`, look at the terminal you were running `dns-listen` on. \nIt should have printed out something like this:\n```\nGot 45 bytes from ('1.1.1.1', 53)\nid 62725\nopcode QUERY\nrcode NOERROR\nflags QR RD RA\n;QUESTION\nexample.com. IN A\n;ANSWER\nexample.com. 3574 IN A 93.184.216.34\n;AUTHORITY\n;ADDITIONAL\n```\n\nCongratulations! You just sent a spoofed DNS query :smile:\n\n# Usage for dns-spoof\n```\n$ dns-spoof -h\nusage: dns-spoof [-h] [--dport DST_PORT] [--src-addr SRC_ADDR]\n [--sport SRC_PORT] [-t RDTYPE] [-n NUM_QUERIES]\n qname dst_addr\n\npositional arguments:\n qname\n dst_addr The address to send the DNS query to\n\noptional arguments:\n -h, --help show this help message and exit\n --dport DST_PORT, --destintaion-port DST_PORT\n --src-addr SRC_ADDR, --source-address SRC_ADDR\n --sport SRC_PORT, --source-port SRC_PORT\n -t RDTYPE, --rdtype RDTYPE\n -n NUM_QUERIES, --num-queries NUM_QUERIES\n```\n\n# Usage for dns-listen\n```\n$ dns-listen -h\nusage: dns-listen [-h] [--addr ADDRESS] port\n\npositional arguments:\n port\n\noptional arguments:\n -h, --help show this help message and exit\n --addr ADDRESS, --address ADDRESS\n```\n\n# Disclaimers\n\n- I've only tested this from behind a NAT\n- Only works with UDP and IPv4\n- I'm not responsible for what you do with this.\n\n# License\n\nsee [LICENSE](./LICENSE)\n\n\n", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/kimbo/dns-spoofer", "keywords": "", "license": "", "maintainer": "", "maintainer_email": "", "name": "dns-spoofer", "package_url": "https://pypi.org/project/dns-spoofer/", "platform": "", "project_url": "https://pypi.org/project/dns-spoofer/", "project_urls": { "Homepage": "https://github.com/kimbo/dns-spoofer" }, "release_url": "https://pypi.org/project/dns-spoofer/1.0/", "requires_dist": [ "dnspython" ], "requires_python": "", "summary": "Spoof DNS queries over UDP", "version": "1.0" }, "last_serial": 6002036, "releases": { "1.0": [ { "comment_text": "", "digests": { "md5": "ada6765ee003fbdf3cf4179ef2e7919a", "sha256": "f643afca3c8fe045052ba0a0564dd56a3aefa65488adc78d8355e3448fb60d7a" }, "downloads": -1, "filename": "dns_spoofer-1.0-py3.7.egg", "has_sig": false, "md5_digest": "ada6765ee003fbdf3cf4179ef2e7919a", "packagetype": "bdist_egg", "python_version": "3.7", "requires_python": null, "size": 8711, "upload_time": "2019-10-20T05:35:15", "url": "https://files.pythonhosted.org/packages/f5/d8/3effebfed66b39408aaaff6f4ef5923291eca4ab6a2128dbbf913ecd6ddc/dns_spoofer-1.0-py3.7.egg" }, { "comment_text": "", "digests": { "md5": "3e7a842067bcb0ccd83a3d6953b225fa", "sha256": "271753be9bb36bb6275a63eef7a8c70e411a316afb0158e73b735d6079f2500b" }, "downloads": -1, "filename": "dns_spoofer-1.0-py3-none-any.whl", "has_sig": false, "md5_digest": "3e7a842067bcb0ccd83a3d6953b225fa", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 17858, "upload_time": "2019-10-20T05:35:13", "url": "https://files.pythonhosted.org/packages/1a/2e/b0c4e3b292b6ba711df2dc897bcfc6a55d0c1f1334537be9b01068996daa/dns_spoofer-1.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "96c942ac919d48ab905e9aef340b46cf", "sha256": "8681441b8544cca92c114558511a98b82762e08fbc4f21070296b7801285663a" }, "downloads": -1, "filename": "dns-spoofer-1.0.tar.gz", "has_sig": false, "md5_digest": "96c942ac919d48ab905e9aef340b46cf", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4792, "upload_time": "2019-10-20T05:35:17", "url": "https://files.pythonhosted.org/packages/ef/11/5df8c2a515c4bf491d9d5b718f5b527db4c550c029dbaac51240dfc12e91/dns-spoofer-1.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "ada6765ee003fbdf3cf4179ef2e7919a", "sha256": "f643afca3c8fe045052ba0a0564dd56a3aefa65488adc78d8355e3448fb60d7a" }, "downloads": -1, "filename": "dns_spoofer-1.0-py3.7.egg", "has_sig": false, "md5_digest": "ada6765ee003fbdf3cf4179ef2e7919a", "packagetype": "bdist_egg", "python_version": "3.7", "requires_python": null, "size": 8711, "upload_time": "2019-10-20T05:35:15", "url": "https://files.pythonhosted.org/packages/f5/d8/3effebfed66b39408aaaff6f4ef5923291eca4ab6a2128dbbf913ecd6ddc/dns_spoofer-1.0-py3.7.egg" }, { "comment_text": "", "digests": { "md5": "3e7a842067bcb0ccd83a3d6953b225fa", "sha256": "271753be9bb36bb6275a63eef7a8c70e411a316afb0158e73b735d6079f2500b" }, "downloads": -1, "filename": "dns_spoofer-1.0-py3-none-any.whl", "has_sig": false, "md5_digest": "3e7a842067bcb0ccd83a3d6953b225fa", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 17858, "upload_time": "2019-10-20T05:35:13", "url": "https://files.pythonhosted.org/packages/1a/2e/b0c4e3b292b6ba711df2dc897bcfc6a55d0c1f1334537be9b01068996daa/dns_spoofer-1.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "96c942ac919d48ab905e9aef340b46cf", "sha256": "8681441b8544cca92c114558511a98b82762e08fbc4f21070296b7801285663a" }, "downloads": -1, "filename": "dns-spoofer-1.0.tar.gz", "has_sig": false, "md5_digest": "96c942ac919d48ab905e9aef340b46cf", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4792, "upload_time": "2019-10-20T05:35:17", "url": "https://files.pythonhosted.org/packages/ef/11/5df8c2a515c4bf491d9d5b718f5b527db4c550c029dbaac51240dfc12e91/dns-spoofer-1.0.tar.gz" } ] }