Jump to content
Whistle Master

[Official] p0f

Recommended Posts

Module: p0f

Version: 1.0

Features:

  • Manage dependencies
  • Live output
  • Start on boot
  • Run History

jd51rcx5413tfqc4g.jpg

Edited by Whistle Master

Share this post


Link to post
Share on other sites

Installed this (p0f 1.0) module today on nano 1.05 to SD card. When starting up, it seems to be unable to find the p0f.fp fingerprint file. It's looking for it in /etc/p0f but it's located at /sd/etc/p0f.

When I changed the /pineapple/p0f/scripts/p0f.sh script so that the start command adds the '-f' switch (see below), it does start. However not really being familiar with this stuff yet, I'm not sure if this is the best way to solve the problem so I that it works properly if it was installed on internal storage.

if [ "$1" = "start" ]; thenp0f -i ${MYINTERFACE} \
-o /pineapple/modules/p0f/log/output_${MYTIME}.log \
-f /sd/etc/p0f/p0f.fp
  • Upvote 1

Share this post


Link to post
Share on other sites

I will fix that in the next version so that a sym link will be created at the installation of the dependencies.

Make sure that the symlink doesn't already exist -- I'm going to see and bake this into the next firmware.

Best Regards,

Sebkinne

Share this post


Link to post
Share on other sites

With firmware 2.0.2 - at time of writing requires a symlink to run on nano when installed to /sd/

ln -s /sd/usr/bin/p0f /usr/bin/p0f

also needed to create a log dir in /pineapple/modules/p0f/

EDIT - the latest firmware 2.1.2 the history counter is working again ?

Edited by Just_a_User
  • Like 1

Share this post


Link to post
Share on other sites
4 minutes ago, handletwo0nne said:

I had p0f working a long time ago. Now it never works. Any insight?

did you read the posts before yours?

Edited by Just_a_User

Share this post


Link to post
Share on other sites

Is there a place to plug the results into to better unstand the often immense signature?

 

Share this post


Link to post
Share on other sites

Just installed the module with an sdcard as the destination; had to manually create (/sd/modules/p0f/log) or the module wouldn't start.

Please consider adding the extra test for the log directory; creating it if it doesn't exist.

Like this:

[ -d /pineapple/modules/p0f/log ] || mkdir /pineapple/modules/p0f/log

 

The whole script:

#!/bin/sh
#2015 - Whistle Master

export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/sd/lib:/sd/usr/lib
export PATH=$PATH:/sd/usr/bin:/sd/usr/sbin

MYTIME=`date +%s`
MYINTERFACE=`uci get p0f.run.interface`

if [ "$1" = "start" ]; then
        [ -d /pineapple/modules/p0f/log ] || mkdir /pineapple/modules/p0f/log
        p0f -i ${MYINTERFACE} -o /pineapple/modules/p0f/log/output_${MYTIME}.log
elif [ "$1" = "stop" ]; then
  killall -9 p0f
fi

 

Share this post


Link to post
Share on other sites

During the git migration of the modules, all empty folders were just skipped: logs, dumps, scans, etc.

This will be fixed soon for all modules.

Share this post


Link to post
Share on other sites

Pineapple v2.6.1 with p0f v1.3:

I had to edit the file

/pineapple/modules/p0f/scripts/p0f.sh

and insert the following option for p0f

-f /etc/p0f/p0f.fp

to be able to run the p0f module in the WiFi Pineapple web interface.

Share this post


Link to post
Share on other sites
On 9/27/2019 at 4:16 AM, ApplePie said:

Pineapple v2.6.1 with p0f v1.3:

I had to edit the file


/pineapple/modules/p0f/scripts/p0f.sh

and insert the following option for p0f


-f /etc/p0f/p0f.fp

to be able to run the p0f module in the WiFi Pineapple web interface.

Thanks a lot! now the module works. Great!

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...