scannerl icon indicating copy to clipboard operation
scannerl copied to clipboard

output file: comma - point

Open Daniilisi opened this issue 6 years ago • 2 comments

Hi, thx for your application.

If used output flag, log will look like line below: {fp_httpbg,{1,1,1,190},81,{{ok,result},["nginx"]}} I fixed it by sed 's/,/./g' Is it bug or I do something wrong?

ex: scannerl -m httpbg -p 81 -F input.txt -o file:./out.lof

input.txt: 1.1.1.0/24 2.2.2.0/24

Daniilisi avatar May 14 '19 19:05 Daniilisi

Your welcome :-)

This is due to the fact that Erlang consider an IP as a tuple composed of 4 ints and thus transforming it as a string without formatting results in {1,2,3,4}.

But you can easily implement your own output module to transform the output to any form you want. As an example, see this output module in my fork of scannerl that will display ips and hostnames in a more common format: 1.2.3.4:81 or somehostname:81.

deadc0de6 avatar May 15 '19 16:05 deadc0de6

If you need any help, feel free to open an issue on my fork.

deadc0de6 avatar May 15 '19 16:05 deadc0de6