Skip to content

Enabling --output-module=json Returns Approx. Double the Number of IP's Responding  #676

Description

@JustinTimperio

Describe the bug
It is unclear to me if this is a bug or some very weird async behavior but enabling the JSON module always returns approximately double the number of IPs compared to the normal output. I have tested this on multiple systems across multiple ports and shards with the exact same behavior existing in each case.

CLI Arguments

sudo zmap -p 80 --shards=250 --shard=0 --seed=1337 -o shard_0.csv
cat shard_0.csv | wc -l 
243204

VS

sudo zmap -p 80 --shards=250 --shard=0 --seed=1337 -o shard_0.json --output-module=json
cat shard_0.json | wc -l 
514767

Expected behavior
I think most users would expect that enabling the JSON module would only change the output type. I certainly did not expect enabling it would yield 2x the number of responses.

Environment:

  • OS: Arch Linux 5.13.12-arch1-1
  • Version: zmap 2.1.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions