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
import asyncssh
import asyncio
import getpass
async def execute_command(host, command, username, password):
async with asyncssh.connect(host, username = username, password= password) as connection:
result = await connection.run(command)
return result.stdout
if __name__ == '__main__':
hostname = input("Enter the target hostname: ")
command = input("Enter command: ")
username = input("Enter username: ")
password = getpass.getpass(prompt="Enter password: ")
loop = asyncio.get_event_loop()
output_command = loop.run_until_complete(execute_command(hostname, command, username, password))
print(output_command)