This Repository is a collection of different ethical hacking tools and malware's for penetration testing and research purpose written in python, ruby, rust, c++, go and c.
JavaScript algorithmsartificial-intelligencebugbountycryptographycyber-threat-intelligencecybersecurity-projectsethical-hackinghacking-toolsmalwarenessusnetwork-monitoringnetwork-securitynmapportscannerpythonpythonprojectsthreat-intelligencevirus-scanning
Create paramiko_test.py
Abdul Wahab Junaida2ca55545c8e
diff --git a/Python Tools/SSH/SSH brute force/paramiko_test.py b/Python Tools/SSH/SSH brute force/paramiko_test.pynew file mode 100644index 0000000..3211884--- /dev/null+++ b/Python Tools/SSH/SSH brute force/paramiko_test.py@@ -0,0 +1,31 @@+import paramiko+import socket++#put data about your ssh server+host = 'localhost'+username = 'username'+password = 'password'++try:+ ssh_client = paramiko.SSHClient()+ #shows debug info+ paramiko.common.logging.basicConfig(level=paramiko.common.DEBUG)+ #The following lines add the server key automatically to the know_hosts file+ ssh_client.load_system_host_keys()+ ssh_client.set_missing_host_key_policy(paramiko.AutoAddPolicy())+ response = ssh_client.connect(host, port = 22, username = username, password = password)+ print('connected with host on port 22',response)+ transport = ssh_client.get_transport()+ security_options = transport.get_security_options()+ print(security_options.kex)+ print(security_options.ciphers)+except paramiko.BadAuthenticationType as exception:+ print("BadAuthenticationException:",exception)+except paramiko.SSHException as sshException:+ print("SSHException:",sshException)+except socket.error as socketError:+ print("socketError:",socketError)+finally:+ print("closing connection")+ ssh_client.close()+ print("closed")