Source Code for network and port scanner, TRW algorithm, and reduction method implementations.

1234567891011121314
  1. import ipaddress
  2. import json
  3. #hashbleh = [{'name':'sara', 'number':46}, {'name':'ale', 'number':6}, {'name':'ian', 'number':10},
  4. #{'name':'ale', 'number':32}, {'name':'sara', 'number':22}, {'name': 'marisa', 'number':90},
  5. #{'name':'ian', 'number':30}, {'name':'Kevin', 'number':34}]
  6. #lista de hashes
  7. path = '/Users/Sara/Documents/Univ Classes/Investigacion/newFlow.txt'
  8. myFile = open(path, 'r')
  9. flow = myFile.read()
  10. ip = json.loads(flow)
  11. print(type(ip))