diff --git a/contents/writing/about/fail2ban-honeypot/index.md b/contents/writing/about/fail2ban-honeypot/index.md index 7fb5ee4..1740845 100644 --- a/contents/writing/about/fail2ban-honeypot/index.md +++ b/contents/writing/about/fail2ban-honeypot/index.md @@ -49,18 +49,18 @@ class HoneyThread(threading.Thread): print 'Listening on: ', port 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 = []