Scripts
BOF script sample methodology
#!/usr/bin/python
import socket
RHOST='192.168.132.128'
RPORT=31337
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
try:
print "\nTesting..."
s.connect((RHOST,RPORT)) # connect to IP, POP3 port
s.send('String test1\n') # send username "test"
data = s.recv(1024) # receive reply
print data # print reply
s.send('String test2\n') # send password "test"
data = s.recv(1024) # receive reply
print data # print reply
s.close() # close socket
print "\nDone!"
except:
print "--Could not connect--"Last updated
Was this helpful?