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

/home/p0f-logs/socket #1

Closed
leakeung opened this issue Aug 4, 2015 · 22 comments
Closed

/home/p0f-logs/socket #1

leakeung opened this issue Aug 4, 2015 · 22 comments

Comments

@leakeung
Copy link

leakeung commented Aug 4, 2015

Hello, can you put the/home/p0f - logs/above the socket on the socket open source? Thank you for

@ValdikSS
Copy link
Owner

ValdikSS commented Aug 7, 2015

Excuse me? I don't understand.

@leakeung
Copy link
Author

leakeung commented Aug 7, 2015

Hello, I am Chinese, English is not very good!
In PHP, this line of code, in the index.
The exec ("/home/p0f - mtu/tools/p0f - client/home/p0f - logs/socket ". $_SERVER [' REMOTE_ADDR], $pof_output);
The first argument why this happen

@ValdikSS
Copy link
Owner

ValdikSS commented Aug 7, 2015

It executes p0f-client with socket path. p0f-client is a client you can find in "tools" folder of p0f.

@leakeung
Copy link
Author

leakeung commented Aug 7, 2015

I have seen https://github.com/ValdikSS/p0f-mtu, tried to install, but failed in the end.

@ValdikSS
Copy link
Owner

ValdikSS commented Aug 7, 2015

To build client, you should run "make" in p0f "tools" folder
https://github.com/ValdikSS/p0f-mtu/tree/master/tools

@leakeung
Copy link
Author

leakeung commented Aug 7, 2015

Enter the tools folder, and then run "make"?

@ValdikSS
Copy link
Owner

ValdikSS commented Aug 7, 2015

Yes.

@leakeung
Copy link
Author

leakeung commented Aug 7, 2015

After the make?

@ValdikSS
Copy link
Owner

ValdikSS commented Aug 7, 2015

After make you can run client.

./p0f-client

@leakeung
Copy link
Author

leakeung commented Aug 7, 2015

Can directly enter the command window. / p0f - client? So you can perform?
Finally in the PHP can also use the exec ("/home/p0f - mtu/tools/p0f - client/home/p0f - logs/socket ". $_SERVER [' REMOTE_ADDR], $pof_output); ??

@leakeung
Copy link
Author

leakeung commented Aug 7, 2015

Hello, after I make, and then execute"./p0f-client /home/p0f-logs/socket ip" the following information:
[-] SYSTEM ERROR : Can't connect to API socket.
Location : main(), p0f-client.c:128
OS message : No such file or directory

@ValdikSS
Copy link
Owner

ValdikSS commented Aug 7, 2015

You should run p0f first, then use the client.

@leakeung
Copy link
Author

leakeung commented Aug 7, 2015

In p0f - mtu folder one build.Sh need to perform?

@ValdikSS
Copy link
Owner

ValdikSS commented Aug 7, 2015

Yes

@leakeung
Copy link
Author

leakeung commented Aug 7, 2015

run p0f first?In p0f-mtu folder, also need to make first?

@ValdikSS
Copy link
Owner

ValdikSS commented Aug 7, 2015

Please read this

http://lcamtuf.coredump.cx/p0f3/README

@leakeung
Copy link
Author

leakeung commented Aug 7, 2015

I'm sorry, I ability is limited.
run . / p0f is working,
but cd tools to run "./p0f-client xx xx " is failure.
notice: SYSTEM ERROR : Can't connect to API socket.

@ValdikSS
Copy link
Owner

ValdikSS commented Aug 7, 2015

./p0f -s socket
./tools/p0f-client ./socket

@leakeung
Copy link
Author

leakeung commented Aug 7, 2015

run "./tools/p0f-client ./socket IP" no response? I input the wrong? So does change the IP.

@ValdikSS
Copy link
Owner

ValdikSS commented Aug 7, 2015

You should run p0f as root in one window and client in another. p0f should be running when you use client.

@leakeung
Copy link
Author

leakeung commented Aug 7, 2015

Thank you, must keep p0f background continues to run. When users request was then extracted data in the cache

@ValdikSS
Copy link
Owner

ValdikSS commented Aug 7, 2015

Yes.

@ValdikSS ValdikSS closed this as completed Aug 7, 2015
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