tag:support.arachni-scanner.com,2012-07-01:/discussions/questions/13341-when-arachni-cli-finishes-the-previous-logging-information-disappearsArachni: Discussion 2017-06-11T10:39:17Ztag:support.arachni-scanner.com,2012-07-01:Comment/425697992017-05-16T16:26:44Z2017-05-16T16:26:44ZWhen Arachni CLI finishes, the previous logging information disappears<div><p>That looks like a terrible mess, there is a divider in the middle.</p></div>Zukkytag:support.arachni-scanner.com,2012-07-01:Comment/425697992017-05-16T17:54:01Z2017-05-16T17:54:01ZWhen Arachni CLI finishes, the previous logging information disappears<div><p>It should always appear, did you run this on Windows? Also, did you abort the scan?</p></div>Tasos Laskostag:support.arachni-scanner.com,2012-07-01:Comment/425697992017-05-17T15:46:27Z2017-05-17T15:46:29ZWhen Arachni CLI finishes, the previous logging information disappears<div><p>Yes, it ran on windows. I ran this in Linux also and it outputs the same behaviour, it's odd. No I didn't abort the scan.</p></div>Zukkytag:support.arachni-scanner.com,2012-07-01:Comment/425697992017-05-17T15:48:55Z2017-05-17T15:48:55ZWhen Arachni CLI finishes, the previous logging information disappears<div><p>I'm starting to think that it's a problem with your terminal, I've never gotten any such issue.</p>
<p>From what I can see it's not Arachni crashing or anything, the output is being truncated, there's a terminal control character for the color of the message status sign that's cut in the middle.</p></div>Tasos Laskostag:support.arachni-scanner.com,2012-07-01:Comment/425697992017-05-17T19:40:10Z2017-05-17T19:40:11ZWhen Arachni CLI finishes, the previous logging information disappears<div><p>Ah I see it, it seems like an ANSI escape character ESC[2j, I've ran the same arachni cli command on different terminals -> Git Bash, Powershell, Cmd, Bash shell and all are outputting the same behaviour, any idea what might be causing this? I've changed different settings on the terminals to no avail. I have to "> arachni_log.txt" to see the full output cause of the truncation?</p></div>Zukkytag:support.arachni-scanner.com,2012-07-01:Comment/425697992017-05-18T13:04:32Z2017-05-18T13:04:32ZWhen Arachni CLI finishes, the previous logging information disappears<div><p>When you run it on Linux, it doesn't by any chance say "Killed" at the end, does it?<br>
Could the OS be killing the process because it's using too much RAM?</p></div>Tasos Laskostag:support.arachni-scanner.com,2012-07-01:Comment/425697992017-05-18T19:27:08Z2017-05-18T19:27:10ZWhen Arachni CLI finishes, the previous logging information disappears<div><p>Hi Tasos,</p>
<p>No, it doesn't. It says nothing at the end, just has the escape character [2j, I have tried numerous attempts, I haven't an idea why it is doing it..</p></div>Zukkytag:support.arachni-scanner.com,2012-07-01:Comment/425697992017-05-19T13:11:17Z2017-05-19T13:11:17ZWhen Arachni CLI finishes, the previous logging information disappears<div><p>The most important question I forgot to ask is, is the scan process still alive after the output stops?<br>
Also, does <code>dmesg</code> say anything interesting about the process at that time?</p></div>Tasos Laskostag:support.arachni-scanner.com,2012-07-01:Comment/425697992017-05-19T14:20:38Z2017-05-19T14:20:43ZWhen Arachni CLI finishes, the previous logging information disappears<div><p>No, the scan process is stopped, as the final output is the Arachni report and the control via the cmd line comes back to me (user). <code>dmesg</code> isn't showing anything out of the ordinary.</p></div>Zukkytag:support.arachni-scanner.com,2012-07-01:Comment/425697992017-05-19T14:27:33Z2017-05-19T14:27:33ZWhen Arachni CLI finishes, the previous logging information disappears<div><p>At the end of the scan the screen is cleared and the report is printed, the status messages will be there but in a page higher than your terminal would currently display.<br>
Is that what we're talking about?</p>
<p>Also, can you please show me the configuration you're using? Are you setting any <code>--output</code> options?</p></div>Tasos Laskostag:support.arachni-scanner.com,2012-07-01:Comment/425697992017-05-19T15:29:39Z2017-05-19T15:29:41ZWhen Arachni CLI finishes, the previous logging information disappears<div><p>Exact CLI command from the other thread -></p>
<p><code>bin/arachni --profile-load-filepath ./security_scanner/Security_Profile.afp --scope-include-subdomains --scope-extend-paths ./security_scanner/spider_these_urls.txt --report-save-path=arachni_report.afr http://app:8081/ | tee arachni_log.txt</code></p>
<p>I've recorded the terminal to show you what i'm seeing: <a href="https://www.youtube.com/watch?v=gAkEioi9qMI&feature=youtu.be">https://www.youtube.com/watch?v=gAkEioi9qMI&feature=youtu.be</a></p>
<p>At 2:10, you'll see i'm unable to not scroll to the above log, it's only showing the report. Would any <code>--output</code> arguments help in this case?</p></div>Zukkytag:support.arachni-scanner.com,2012-07-01:Comment/425697992017-05-19T15:33:42Z2017-05-19T15:33:42ZWhen Arachni CLI finishes, the previous logging information disappears<div><p>The video is unavailable, can you try configuring your terminal to allow unlimited scrollback please?</p></div>Tasos Laskostag:support.arachni-scanner.com,2012-07-01:Comment/425697992017-05-19T15:35:48Z2017-05-19T15:35:51ZWhen Arachni CLI finishes, the previous logging information disappears<div><p>Try the link now,</p>
<p>I have enabled maximum scroll lines, which is much more than the report.</p></div>Zukkytag:support.arachni-scanner.com,2012-07-01:Comment/425697992017-05-19T15:43:39Z2017-05-19T15:43:39ZWhen Arachni CLI finishes, the previous logging information disappears<div><p>I don't know what's going on, are you intercepting its output somehow or maybe docker?<br>
I'm pretty sure that if you run Arachni on its own in any terminal it'll work as expected.</p></div>Tasos Laskos