DataSploit / datasploit

An #OSINT Framework to perform various recon techniques on Companies, People, Phone Number, Bitcoin Addresses, etc., aggregate all the raw data, and give data in multiple formats.
GNU General Public License v3.0
2.97k stars 426 forks source link

AttributeError: 'list' object has no attribute 'strftime' #207

Closed eigenstein closed 6 years ago

eigenstein commented 6 years ago

---> Finding Whois Information. Traceback (most recent call last): File "domainOsint.py", line 17, in run(domain, options.output) File "domainOsint.py", line 9, in run osint_runner.run("domain", "domain", domain, output) File "/usr/share/datasploit/osint_runner.py", line 30, in run x.output(data, m_input) File "/usr/share/datasploit/domain/domain_whois.py", line 34, in output data['expiration_date'] = data['expiration_date'].strftime('%m/%d/%Y') AttributeError: 'list' object has no attribute 'strftime'

morgendave commented 6 years ago

python-whois actually would return the dates with list, not guaranteed to be single datetime. Quick fix would be to check it.

Chan9390 commented 6 years ago

Hey @eigenstein , please try pulling the latest code and check if you are facing the same issue.

eigenstein commented 6 years ago

Issue is now gone.