[关闭]
@1kbfree 2018-09-26T08:44:58.000000Z 字数 220 阅读 859

portscan

python


  1. from socket import *
  2. def main():
  3. pass
  4. def scan( target, port=12332 ):
  5. client = socket( AF_INET, SOCK_STREAM )
  6. client.connect( ( target, port ) )
  7. print( target, prot )
  8. client.close()
  9. if __name__ == '__main__':
  10. target = '127.0.0.1'
  11. scan( target )
添加新批注
在作者公开此批注前,只有你和作者可见。
回复批注