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.
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.