Projects STRLCPY linuxprivchecker Commits f943f1b3
🤬
  • changed to only send data back if results are found.

  • Loading...
  • linted committed 7 years ago
    f943f1b3
    1 parent abecafd2
Revision indexing in progress... (symbol navigation in revisions will be accurate after indexed)
  • ■ ■ ■ ■ ■
    privcheckerserver.py
    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
Please wait...
Page is in error, reload to recover