infosec-au / altdns

Generates permutations, alterations and mutations of subdomains and then resolves them
Apache License 2.0
2.26k stars 446 forks source link

TypeError: Concatenating 'str' and 'error' objects in altdns.py #6

Closed 0x90n closed 8 years ago

0x90n commented 8 years ago

Treat the error string and object type as separate entities, preventing the error "TypeError: Concatenating 'str' and 'error' objects."

Old: root@0x3c:~/altdns# ./altdns.py -i test.txt -o data_output -w words.txt -r -s resolved_domainsbig [] 500/626767 completed [_] 1000/626767 completed Traceback (most recent call last): File "./altdns.py", line 209, in main() File "./altdns.py", line 206, in main print("error: " + error) TypeError: cannot concatenate 'str' and 'error' objects

New: root@0x3c:~/altdns# ./altdns.py -i test.txt -o data_output -w words.txt -r -s resolved_domainsbig [] 500/626767 completed [_] 1000/626767 completed error: can't start new thread error: can't start new thread error: can't start new thread

infosec-au commented 8 years ago

Nice catch! Accepted the pull request. Cheers.