Browse Source

fix spacing issue with code block

pull/1/head
Brett Langdon 12 years ago
parent
commit
507c5914e1
1 changed files with 12 additions and 12 deletions
  1. +12
    -12
      contents/writing/about/fail2ban-honeypot/index.md

+ 12
- 12
contents/writing/about/fail2ban-honeypot/index.md View File

@ -49,18 +49,18 @@ class HoneyThread(threading.Thread):
print 'Listening on: ', port print 'Listening on: ', port
super(HoneyThread, self).__init__() super(HoneyThread, self).__init__()
def run(self):
while True:
channel, details = self.sock.accept()
logstr = (
'Connection from %s:%s on port %s\r\n' %
(details[0], details[1], self.port)
)
self.logfile.write('%s\r\n' % logstr)
print logstr
self.logfile.flush()
channel.send('You Just Got Stuck In Some Honey')
channel.close()
def run(self):
while True:
channel, details = self.sock.accept()
logstr = (
'Connection from %s:%s on port %s\r\n' %
(details[0], details[1], self.port)
)
self.logfile.write('%s\r\n' % logstr)
print logstr
self.logfile.flush()
channel.send('You Just Got Stuck In Some Honey')
channel.close()
ports = [] ports = []


Loading…
Cancel
Save