Skip to content

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.

229 B
Raw Blame
#!/usr/bin/python

import socket

ip ='127.0.0.1'
portlist = [21,22,23,80]
for port in portlist:
	sock= socket.socket(socket.AF_INET,socket.SOCK_STREAM)
	result = sock.connect_ex((ip,port))
	print(port,":", result)
	sock.close()