{"action":"closed","number":51,"pull_request":{"url":"https://api.github.com/repos/darkoperator/dnsrecon/pulls/51","id":63367734,"html_url":"https://github.com/darkoperator/dnsrecon/pull/51","diff_url":"https://github.com/darkoperator/dnsrecon/pull/51.diff","patch_url":"https://github.com/darkoperator/dnsrecon/pull/51.patch","issue_url":"https://api.github.com/repos/darkoperator/dnsrecon/issues/51","number":51,"state":"closed","locked":false,"title":"Fix serialization to json for NSEC next attribute","user":{"login":"rmartyni","id":17925621,"avatar_url":"https://avatars.githubusercontent.com/u/17925621?v=3","gravatar_id":"","url":"https://api.github.com/users/rmartyni","html_url":"https://github.com/rmartyni","followers_url":"https://api.github.com/users/rmartyni/followers","following_url":"https://api.github.com/users/rmartyni/following{/other_user}","gists_url":"https://api.github.com/users/rmartyni/gists{/gist_id}","starred_url":"https://api.github.com/users/rmartyni/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rmartyni/subscriptions","organizations_url":"https://api.github.com/users/rmartyni/orgs","repos_url":"https://api.github.com/users/rmartyni/repos","events_url":"https://api.github.com/users/rmartyni/events{/privacy}","received_events_url":"https://api.github.com/users/rmartyni/received_events","type":"User","site_admin":false},"body":"This change fixes serialization to json issue for the following command:\r\n\r\nroot@kali:~# dnsrecon -d zonetransfer.me -t axfr -j ./zonetransfer_axfr.json\r\n\r\nBelow is output from console for error that has been fixed:\r\n\r\n[*] Testing NS Servers for Zone Transfer\r\n[*] Checking for Zone Transfer for zonetransfer.me name servers\r\n...\r\n[*] Saving records to JSON file: ./zonetransfer_axfr.json\r\nTraceback (most recent call last):\r\n  File \"./dnsrecon.py\", line 1685, in <module>\r\n    main()\r\n  File \"./dnsrecon.py\", line 1635, in main\r\n    write_json(json_file, returned_records, scan_info)\r\n  File \"./dnsrecon.py\", line 778, in write_json\r\n    json_data = json.dumps(data, sort_keys=True, indent=4, separators=(',', ': '))\r\n  File \"/usr/lib/python2.7/json/__init__.py\", line 251, in dumps\r\n    sort_keys=sort_keys, **kw).encode(obj)\r\n  File \"/usr/lib/python2.7/json/encoder.py\", line 209, in encode\r\n    chunks = list(chunks)\r\n  File \"/usr/lib/python2.7/json/encoder.py\", line 431, in _iterencode\r\n    for chunk in _iterencode_list(o, _current_indent_level):\r\n  File \"/usr/lib/python2.7/json/encoder.py\", line 332, in _iterencode_list\r\n    for chunk in chunks:\r\n  File \"/usr/lib/python2.7/json/encoder.py\", line 408, in _iterencode_dict\r\n    for chunk in chunks:\r\n  File \"/usr/lib/python2.7/json/encoder.py\", line 442, in _iterencode\r\n    o = _default(o)\r\n  File \"/usr/lib/python2.7/json/encoder.py\", line 184, in default\r\n    raise TypeError(repr(o) + \" is not JSON serializable\")\r\nTypeError: <DNS name _sip._tcp> is not JSON serializable\r\nroot@kali:~# ","created_at":"2016-03-18T12:33:46Z","updated_at":"2016-03-28T00:20:22Z","closed_at":"2016-03-28T00:20:22Z","merged_at":"2016-03-28T00:20:22Z","merge_commit_sha":"6a0fd83c60e771039f9fd507525e392031cfed71","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/darkoperator/dnsrecon/pulls/51/commits","review_comments_url":"https://api.github.com/repos/darkoperator/dnsrecon/pulls/51/comments","review_comment_url":"https://api.github.com/repos/darkoperator/dnsrecon/pulls/comments{/number}","comments_url":"https://api.github.com/repos/darkoperator/dnsrecon/issues/51/comments","statuses_url":"https://api.github.com/repos/darkoperator/dnsrecon/statuses/6a55a8295709daf04f68359bcd945960c79c8fc5","head":{"label":"rmartyni:master","ref":"master","sha":"6a55a8295709daf04f68359bcd945960c79c8fc5","user":{"login":"rmartyni","id":17925621,"avatar_url":"https://avatars.githubusercontent.com/u/17925621?v=3","gravatar_id":"","url":"https://api.github.com/users/rmartyni","html_url":"https://github.com/rmartyni","followers_url":"https://api.github.com/users/rmartyni/followers","following_url":"https://api.github.com/users/rmartyni/following{/other_user}","gists_url":"https://api.github.com/users/rmartyni/gists{/gist_id}","starred_url":"https://api.github.com/users/rmartyni/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rmartyni/subscriptions","organizations_url":"https://api.github.com/users/rmartyni/orgs","repos_url":"https://api.github.com/users/rmartyni/repos","events_url":"https://api.github.com/users/rmartyni/events{/privacy}","received_events_url":"https://api.github.com/users/rmartyni/received_events","type":"User","site_admin":false},"repo":{"id":54193774,"name":"dnsrecon","full_name":"rmartyni/dnsrecon","owner":{"login":"rmartyni","id":17925621,"avatar_url":"https://avatars.githubusercontent.com/u/17925621?v=3","gravatar_id":"","url":"https://api.github.com/users/rmartyni","html_url":"https://github.com/rmartyni","followers_url":"https://api.github.com/users/rmartyni/followers","following_url":"https://api.github.com/users/rmartyni/following{/other_user}","gists_url":"https://api.github.com/users/rmartyni/gists{/gist_id}","starred_url":"https://api.github.com/users/rmartyni/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rmartyni/subscriptions","organizations_url":"https://api.github.com/users/rmartyni/orgs","repos_url":"https://api.github.com/users/rmartyni/repos","events_url":"https://api.github.com/users/rmartyni/events{/privacy}","received_events_url":"https://api.github.com/users/rmartyni/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/rmartyni/dnsrecon","description":"DNS Enumeration Script","fork":true,"url":"https://api.github.com/repos/rmartyni/dnsrecon","forks_url":"https://api.github.com/repos/rmartyni/dnsrecon/forks","keys_url":"https://api.github.com/repos/rmartyni/dnsrecon/keys{/key_id}","collaborators_url":"https://api.github.com/repos/rmartyni/dnsrecon/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/rmartyni/dnsrecon/teams","hooks_url":"https://api.github.com/repos/rmartyni/dnsrecon/hooks","issue_events_url":"https://api.github.com/repos/rmartyni/dnsrecon/issues/events{/number}","events_url":"https://api.github.com/repos/rmartyni/dnsrecon/events","assignees_url":"https://api.github.com/repos/rmartyni/dnsrecon/assignees{/user}","branches_url":"https://api.github.com/repos/rmartyni/dnsrecon/branches{/branch}","tags_url":"https://api.github.com/repos/rmartyni/dnsrecon/tags","blobs_url":"https://api.github.com/repos/rmartyni/dnsrecon/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/rmartyni/dnsrecon/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/rmartyni/dnsrecon/git/refs{/sha}","trees_url":"https://api.github.com/repos/rmartyni/dnsrecon/git/trees{/sha}","statuses_url":"https://api.github.com/repos/rmartyni/dnsrecon/statuses/{sha}","languages_url":"https://api.github.com/repos/rmartyni/dnsrecon/languages","stargazers_url":"https://api.github.com/repos/rmartyni/dnsrecon/stargazers","contributors_url":"https://api.github.com/repos/rmartyni/dnsrecon/contributors","subscribers_url":"https://api.github.com/repos/rmartyni/dnsrecon/subscribers","subscription_url":"https://api.github.com/repos/rmartyni/dnsrecon/subscription","commits_url":"https://api.github.com/repos/rmartyni/dnsrecon/commits{/sha}","git_commits_url":"https://api.github.com/repos/rmartyni/dnsrecon/git/commits{/sha}","comments_url":"https://api.github.com/repos/rmartyni/dnsrecon/comments{/number}","issue_comment_url":"https://api.github.com/repos/rmartyni/dnsrecon/issues/comments{/number}","contents_url":"https://api.github.com/repos/rmartyni/dnsrecon/contents/{+path}","compare_url":"https://api.github.com/repos/rmartyni/dnsrecon/compare/{base}...{head}","merges_url":"https://api.github.com/repos/rmartyni/dnsrecon/merges","archive_url":"https://api.github.com/repos/rmartyni/dnsrecon/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/rmartyni/dnsrecon/downloads","issues_url":"https://api.github.com/repos/rmartyni/dnsrecon/issues{/number}","pulls_url":"https://api.github.com/repos/rmartyni/dnsrecon/pulls{/number}","milestones_url":"https://api.github.com/repos/rmartyni/dnsrecon/milestones{/number}","notifications_url":"https://api.github.com/repos/rmartyni/dnsrecon/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/rmartyni/dnsrecon/labels{/name}","releases_url":"https://api.github.com/repos/rmartyni/dnsrecon/releases{/id}","deployments_url":"https://api.github.com/repos/rmartyni/dnsrecon/deployments","created_at":"2016-03-18T10:37:48Z","updated_at":"2016-03-18T10:37:50Z","pushed_at":"2016-03-18T12:09:00Z","git_url":"git://github.com/rmartyni/dnsrecon.git","ssh_url":"git@github.com:rmartyni/dnsrecon.git","clone_url":"https://github.com/rmartyni/dnsrecon.git","svn_url":"https://github.com/rmartyni/dnsrecon","homepage":"","size":847,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"darkoperator:master","ref":"master","sha":"2fbb9d793ae91d220045ac5a4b54188379227947","user":{"login":"darkoperator","id":521246,"avatar_url":"https://avatars.githubusercontent.com/u/521246?v=3","gravatar_id":"","url":"https://api.github.com/users/darkoperator","html_url":"https://github.com/darkoperator","followers_url":"https://api.github.com/users/darkoperator/followers","following_url":"https://api.github.com/users/darkoperator/following{/other_user}","gists_url":"https://api.github.com/users/darkoperator/gists{/gist_id}","starred_url":"https://api.github.com/users/darkoperator/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/darkoperator/subscriptions","organizations_url":"https://api.github.com/users/darkoperator/orgs","repos_url":"https://api.github.com/users/darkoperator/repos","events_url":"https://api.github.com/users/darkoperator/events{/privacy}","received_events_url":"https://api.github.com/users/darkoperator/received_events","type":"User","site_admin":false},"repo":{"id":1173123,"name":"dnsrecon","full_name":"darkoperator/dnsrecon","owner":{"login":"darkoperator","id":521246,"avatar_url":"https://avatars.githubusercontent.com/u/521246?v=3","gravatar_id":"","url":"https://api.github.com/users/darkoperator","html_url":"https://github.com/darkoperator","followers_url":"https://api.github.com/users/darkoperator/followers","following_url":"https://api.github.com/users/darkoperator/following{/other_user}","gists_url":"https://api.github.com/users/darkoperator/gists{/gist_id}","starred_url":"https://api.github.com/users/darkoperator/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/darkoperator/subscriptions","organizations_url":"https://api.github.com/users/darkoperator/orgs","repos_url":"https://api.github.com/users/darkoperator/repos","events_url":"https://api.github.com/users/darkoperator/events{/privacy}","received_events_url":"https://api.github.com/users/darkoperator/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/darkoperator/dnsrecon","description":"DNS Enumeration Script","fork":false,"url":"https://api.github.com/repos/darkoperator/dnsrecon","forks_url":"https://api.github.com/repos/darkoperator/dnsrecon/forks","keys_url":"https://api.github.com/repos/darkoperator/dnsrecon/keys{/key_id}","collaborators_url":"https://api.github.com/repos/darkoperator/dnsrecon/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/darkoperator/dnsrecon/teams","hooks_url":"https://api.github.com/repos/darkoperator/dnsrecon/hooks","issue_events_url":"https://api.github.com/repos/darkoperator/dnsrecon/issues/events{/number}","events_url":"https://api.github.com/repos/darkoperator/dnsrecon/events","assignees_url":"https://api.github.com/repos/darkoperator/dnsrecon/assignees{/user}","branches_url":"https://api.github.com/repos/darkoperator/dnsrecon/branches{/branch}","tags_url":"https://api.github.com/repos/darkoperator/dnsrecon/tags","blobs_url":"https://api.github.com/repos/darkoperator/dnsrecon/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/darkoperator/dnsrecon/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/darkoperator/dnsrecon/git/refs{/sha}","trees_url":"https://api.github.com/repos/darkoperator/dnsrecon/git/trees{/sha}","statuses_url":"https://api.github.com/repos/darkoperator/dnsrecon/statuses/{sha}","languages_url":"https://api.github.com/repos/darkoperator/dnsrecon/languages","stargazers_url":"https://api.github.com/repos/darkoperator/dnsrecon/stargazers","contributors_url":"https://api.github.com/repos/darkoperator/dnsrecon/contributors","subscribers_url":"https://api.github.com/repos/darkoperator/dnsrecon/subscribers","subscription_url":"https://api.github.com/repos/darkoperator/dnsrecon/subscription","commits_url":"https://api.github.com/repos/darkoperator/dnsrecon/commits{/sha}","git_commits_url":"https://api.github.com/repos/darkoperator/dnsrecon/git/commits{/sha}","comments_url":"https://api.github.com/repos/darkoperator/dnsrecon/comments{/number}","issue_comment_url":"https://api.github.com/repos/darkoperator/dnsrecon/issues/comments{/number}","contents_url":"https://api.github.com/repos/darkoperator/dnsrecon/contents/{+path}","compare_url":"https://api.github.com/repos/darkoperator/dnsrecon/compare/{base}...{head}","merges_url":"https://api.github.com/repos/darkoperator/dnsrecon/merges","archive_url":"https://api.github.com/repos/darkoperator/dnsrecon/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/darkoperator/dnsrecon/downloads","issues_url":"https://api.github.com/repos/darkoperator/dnsrecon/issues{/number}","pulls_url":"https://api.github.com/repos/darkoperator/dnsrecon/pulls{/number}","milestones_url":"https://api.github.com/repos/darkoperator/dnsrecon/milestones{/number}","notifications_url":"https://api.github.com/repos/darkoperator/dnsrecon/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/darkoperator/dnsrecon/labels{/name}","releases_url":"https://api.github.com/repos/darkoperator/dnsrecon/releases{/id}","deployments_url":"https://api.github.com/repos/darkoperator/dnsrecon/deployments","created_at":"2010-12-16T03:25:49Z","updated_at":"2016-03-24T08:13:00Z","pushed_at":"2016-03-28T00:20:22Z","git_url":"git://github.com/darkoperator/dnsrecon.git","ssh_url":"git@github.com:darkoperator/dnsrecon.git","clone_url":"https://github.com/darkoperator/dnsrecon.git","svn_url":"https://github.com/darkoperator/dnsrecon","homepage":"","size":1526,"stargazers_count":285,"watchers_count":285,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":81,"mirror_url":null,"open_issues_count":11,"forks":81,"open_issues":11,"watchers":285,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/darkoperator/dnsrecon/pulls/51"},"html":{"href":"https://github.com/darkoperator/dnsrecon/pull/51"},"issue":{"href":"https://api.github.com/repos/darkoperator/dnsrecon/issues/51"},"comments":{"href":"https://api.github.com/repos/darkoperator/dnsrecon/issues/51/comments"},"review_comments":{"href":"https://api.github.com/repos/darkoperator/dnsrecon/pulls/51/comments"},"review_comment":{"href":"https://api.github.com/repos/darkoperator/dnsrecon/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/darkoperator/dnsrecon/pulls/51/commits"},"statuses":{"href":"https://api.github.com/repos/darkoperator/dnsrecon/statuses/6a55a8295709daf04f68359bcd945960c79c8fc5"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"darkoperator","id":521246,"avatar_url":"https://avatars.githubusercontent.com/u/521246?v=3","gravatar_id":"","url":"https://api.github.com/users/darkoperator","html_url":"https://github.com/darkoperator","followers_url":"https://api.github.com/users/darkoperator/followers","following_url":"https://api.github.com/users/darkoperator/following{/other_user}","gists_url":"https://api.github.com/users/darkoperator/gists{/gist_id}","starred_url":"https://api.github.com/users/darkoperator/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/darkoperator/subscriptions","organizations_url":"https://api.github.com/users/darkoperator/orgs","repos_url":"https://api.github.com/users/darkoperator/repos","events_url":"https://api.github.com/users/darkoperator/events{/privacy}","received_events_url":"https://api.github.com/users/darkoperator/received_events","type":"User","site_admin":false},"comments":1,"review_comments":0,"commits":1,"additions":1,"deletions":1,"changed_files":1}}