tag:support.arachni-scanner.com,2012-07-01:/discussions/problems/185-not-able-to-generate-json-from-afrArachni: Discussion 2013-11-26T14:15:52Ztag:support.arachni-scanner.com,2012-07-01:Comment/300947452013-11-20T15:47:56Z2013-11-20T15:47:56ZNot able to generate json from afr<div><p>Hey there,</p>
<p>I fixed this issue a couple of days ago, some non-UTF8 data was
getting into the AFR report. You can either grab one of the
<a href="http://downloads.arachni-scanner.com/nightlies/">nightlies</a>
and re-run the scan or I can send you a script to sanitize the AFR
report so that JSON generation will work.</p>
<p>Which sounds best?</p>
<p>Cheers</p></div>Tasos Laskostag:support.arachni-scanner.com,2012-07-01:Comment/300947452013-11-21T06:08:07Z2013-11-21T06:08:08ZNot able to generate json from afr<div><p>Hi,</p>
<p>Can you please send me the script so that it will be helpful to
me.</p>
<p>Thank you</p></div>sreedeeptag:support.arachni-scanner.com,2012-07-01:Comment/300947452013-11-21T20:11:19Z2013-11-21T20:11:19ZNot able to generate json from afr<div><p>Run the attached file like so:</p>
<pre>
<code>./bin/arachni_script json_bug.rb <path to AFR report></code>
</pre>
<p>The script will recode the report and save it as
<code><original AFR report name>.sanitized</code>, then use
the sanitized report to for the conversion to JSON.</p>
<p>Let me know how it worked.</p>
<p>Cheers</p></div>Tasos Laskostag:support.arachni-scanner.com,2012-07-01:Comment/300947452013-11-21T20:17:21Z2013-11-21T20:17:21ZNot able to generate json from afr<div><p>I forgot to mention, you'll need to use one of the nightly
packages to do that.</p></div>Tasos Laskostag:support.arachni-scanner.com,2012-07-01:Comment/300947452013-11-22T08:06:23Z2013-11-22T08:06:25ZNot able to generate json from afr<div><p>Hi,</p>
<p>I have generated the sanitized AFR even-though i am geting the
same issues.</p>
<p>I am running this command after generating the sanitized AFR</p>
<p>arachni --repload=test.afr.sanitized
--report=json:outfile=test.json</p></div>sreedeeptag:support.arachni-scanner.com,2012-07-01:Comment/300947452013-11-22T15:53:31Z2013-11-22T15:53:31ZNot able to generate json from afr<div><p>There must be some data elsewhere that I missed. Could you
attach the AFR report please? You can mass-replace the hostname in
the file with a placeholder if you wish.</p></div>Tasos Laskostag:support.arachni-scanner.com,2012-07-01:Comment/300947452013-11-23T09:22:02Z2013-11-23T09:22:06ZNot able to generate json from afr<div><p>Hi,</p>
<p>Ya i am sending you both the AFR files please check them.</p>
<p>Thank You</p></div>sreedeeptag:support.arachni-scanner.com,2012-07-01:Comment/300947452013-11-23T15:21:42Z2013-11-23T15:21:42ZNot able to generate json from afr<div><p>Looking into it, cheers.</p></div>Tasos Laskostag:support.arachni-scanner.com,2012-07-01:Comment/300947452013-11-23T15:58:49Z2013-11-23T15:58:49ZNot able to generate json from afr<div><p>There's something weird going on, I couldn't sanitize the AFR.
However, I've updated the <code>json</code> report to do the
sanitization before converting the data to JSON since others will
most likely be affected by the same issue.</p>
<p>All you got to do is grab one of the nightlies and generate the
report.</p>
<p>I'll let you know when the fresh nightlies are up (could be a
while because my phone line suffered some storm damage).</p>
<p>Cheers</p></div>Tasos Laskostag:support.arachni-scanner.com,2012-07-01:Comment/300947452013-11-23T21:24:22Z2013-11-23T21:24:22ZNot able to generate json from afr<div><p>All done, grab one of the nightlies and give it a try.</p></div>Tasos Laskostag:support.arachni-scanner.com,2012-07-01:Comment/300947452013-11-25T07:39:09Z2013-11-25T07:39:10ZNot able to generate json from afr<div><p>Hi,<br>
I am getting the same error after generating the sanitized file
with new nighties.</p></div>sreedeeptag:support.arachni-scanner.com,2012-07-01:Comment/300947452013-11-25T15:11:56Z2013-11-25T15:11:56ZNot able to generate json from afr<div><p>No, I meant just generate the report using the original AFR:</p>
<pre>
<code>./bin/arachni --repload=/home/zapotek/Documents/knol.afr --report=json:outfile=test.json</code>
</pre>
<p>Worked fine for me with the nightlies.</p></div>Tasos Laskostag:support.arachni-scanner.com,2012-07-01:Comment/300947452013-11-26T05:40:59Z2013-11-26T05:41:01ZNot able to generate json from afr<div><p>Hi,</p>
<p>It worked....</p>
<p>Thanks a lot.</p></div>sreedeeptag:support.arachni-scanner.com,2012-07-01:Comment/300947452013-11-26T14:15:50Z2013-11-26T14:15:50ZNot able to generate json from afr<div><p>No problem, glad you got it working.</p></div>Tasos Laskos