It looks like you're new here. If you want to get involved, click one of these buttons!
In computer networking, an Internet socket or network socket is an endpoint of a bidirectional inter-process communication flow across an Internet Protocol-based computer network, such as the Internet.
import socket
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
s.connect((\"www.iexploit.org\", 80))
import socket
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
s.bind(('', 1259)) #Binding the server on port 1259
s.listen(1) #Listens(obviously)
while true: #Infinite loop to listen for connections
details, chan = s.accept()
print '\nConnection opened with: ', details)
print chan.recv(200)
chan.send('TEST')
chan.close()
import socket
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
s.connect(('localhost', 1259'))
s.send('HI')
s.recv(200)
s.close()