k0r0pt / netUtils

Network utility library for use in Project Tauro
GNU General Public License v3.0
2 stars 0 forks source link

Add masscan json filtering for lines with only `[` and `]`. #8

Closed sudiptosarkar closed 6 years ago

sudiptosarkar commented 6 years ago

Currently, masscan json output files are arrays of lines we're parsing on a line by line basis, which is leading to JsonExceptions. Either the whole file needs to be parsed at once, or the lines with only [ and ] and empty lines need to be ignored. Also, {finished} may not be present at the end of the json output files depending on the masscan version. This scenario also needs to be handled.