Jump to content

[Official] p0f


Whistle Master
 Share

Recommended Posts

  • 2 months later...

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
Link to comment
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

Link to comment
Share on other sites

  • 1 year later...

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
Link to comment
Share on other sites

  • 5 months later...
  • 2 weeks later...

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

 

Link to comment
Share on other sites

  • 1 month later...
  • 1 year later...
  • 3 months later...
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!

Link to comment
Share on other sites

  • 1 year later...
On 9/26/2019 at 7:16 PM, 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.

Yep. Just installed p0f and it definitely wasn't working until the config file is added as a parameter to tho command.

Link to comment
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.

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...