Permalink
Browse files

fix bug when zone transfer returns none

  • Loading branch information...
1 parent d167a75 commit f77f223a6b02173b4597b34902e68ef3f82c0795 @darkoperator committed Mar 23, 2012
Showing with 5 additions and 1 deletion.
  1. +5 −1 dnsrecon.py
View
@@ -1286,7 +1286,11 @@ def main():
if r == 'axfr':
if domain is not None:
print_status('Testing NS Servers for Zone Transfer')
- returned_records.extend(res.zone_transfer())
+ zonercds = res.zone_transfer()
+ if zonercds:
+ returned_records.extend(zonercds)
+ else:
+ print_error("No records where returned in the zone trasfer attempt.")
else:
print_error('No Domain to target specified!')

0 comments on commit f77f223

Please sign in to comment.