Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

output file: comma - point #3

Open
Daniilisi opened this issue May 14, 2019 · 2 comments
Open

output file: comma - point #3

Daniilisi opened this issue May 14, 2019 · 2 comments

Comments

@Daniilisi
Copy link

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

@deadc0de6
Copy link
Contributor

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
Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants