| skipped 16 lines |
17 | 17 | | results = self.server.search(data) |
18 | 18 | | for exploits in results: |
19 | 19 | | output.append(exploits[0]['description'] + ' id: ' + exploits[0]['id']) |
20 | | - | self.wfile.write('\n'.join(output).encode() + b'\n') |
| 20 | + | if len(output) > 0: |
| 21 | + | self.wfile.write('\n'.join(output).encode() + b'\n') |
21 | 22 | | data = self.rfile.readline().decode().strip() |
22 | 23 | | print('[-] Closing connection from ' + self.client_address[0]) |
23 | 24 | | |
| skipped 24 lines |