haccer / subjack

Subdomain Takeover tool written in Go
Apache License 2.0
1.91k stars 337 forks source link

JSON file corrupted #31

Open BBerastegui opened 5 years ago

BBerastegui commented 5 years ago

Hi !

I've been using subjack "massively" and it seems that the json file in the output gets corrupted from time to time, leading to corrupted JSON strings with misplaced characters such as:

false}]false}]]se}]lse}]e"

Or:

[{"subdomain":"za01-vsr.bcrs-vaults.ibm.com","vulnerable":false}]}]}]se}]]se}]lse}]]lse}]e}]vulnerable":false}].ibm.com","vulnerable":false},

It seems that it's always at the beginning of the file, after the first element of the array.

I'm using latest version of subjack on a docker container built from golang:alpine.

Full file of one example:

[{"subdomain":"zts.athens.vip.ne1.yahoo.com","vulnerable":false}]false}]]se}]lse}]e":false}]2.139.98.aprez.ostk.prod.bf1.yahoo.com","vulnerable":false},{"subdomain":"1018608.ostk.bm2.prod.bf1.yahoo.com","vulnerable":false},{"subdomain":"0.161.139.98.aprez.ostk.prod.bf1.yahoo.com","vulnerable":false},{"subdomain":"101.181.139.98.aprez.ostk.prod.bf1.yahoo.com","vulnerable":false},{"subdomain":"101.182.139.98.aprez.ostk.prod.bf1.yahoo.com","vulnerable":false},{"subdomain":"102.181.139.98.aprez.ostk.prod.bf1.yahoo.com","vulnerable":false},{"subdomain":"1018707.ostk.bm2.prod.bf1.yahoo.com","vulnerable":false},{"subdomain":"102.182.139.98.aprez.ostk.prod.bf1.yahoo.com","vulnerable":false},{"subdomain":"100.181.139.98.aprez.ostk.prod.bf1.yahoo.com","vulnerable":false},{"subdomain":"1023379.ostk.bm2.prod.bf1.yahoo.com","vulnerable":false},{"subdomain":"1046519.ostk.bm2.prod.bf1.yahoo.com","vulnerable":false},{"subdomain":"104.181.139.98.aprez.ostk.prod.bf1.yahoo.com","vulnerable":false},{"subdomain":"1045523.ostk.bm2.prod.bf1.yahoo.com","vulnerable":false}]{"subdomain":"103.181.139.98.aprez.ostk.prod.bf1.yahoo.com","vulnerable":false},{"subdomain":"1040953.ostk.bm2.prod.bf1.yahoo.com","vulnerable":false}]