Skip to content

Tag: python-3.x

DNS Resolver does not contain answer

I’m trying to automate some of the tasks with python. I have to chcek if some domains are still in ours DNS servers. So searching through stack i found script with dns.resolver and tryied to suit it to my needs. So, the script looks like this: My domainfile.txt looks like this: And error message i reciv…

How to solve the handshake failure using ssl in python?

I try connect to specific https server: But the python says: I try using TLS1: But says: Have a upgraded ssl in python and operative system: From netcat can connect without problems: What is the problem and how to solve this? Answer From the documentation: Since Python 3.2 and 2.7.9, it is recommended to use …

Is there a way to delete zip archive comments in python?

I have multiple zip archives all with a similar comment. Is there a way to delete the comment from the archives with python and use it over multiple archives with similar comment? What I have tried with single archive This is not working. Comment is not getting deleted in the archive, plus I want this to work…