Jump to content

Recommended Posts

Posted (edited)

M-am jucat putin cu sockets in python,verifica toate porturile deschise de pe un ip dat.


import socket;

port=[]

def check(t):
ip=t.split(":");
sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
result= sock.connect_ex((ip[0],int(ip[1])))
if result == 0:
print "Portul:"+ip[1]+" este deschis!\n"
port.append(ip[1])

print "Target:"
target=raw_input()

print "Target: "+str(target)+"\nConfirm: y/n \n"
confirm=raw_input()
if(confirm=='y'):
for i in range(1,65536):
print "Testez portul:"+str(i)+"\n"
check(str(target)+":"+str(i))
else:
exit();

L.E.Daca va duce putin capul si nu il aveti doar sa nu va ploua in gat,il puteti transforma usor in scanner de vnc,smtp,rdp....etc

Edited by Worm64

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...