scannerl
scannerl copied to clipboard
output file: comma - point
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
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.
If you need any help, feel free to open an issue on my fork.