Jump to content

[Official] p0f


Whistle Master

Recommended Posts

  • 2 months later...
Posted

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
Posted

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

  • 1 year later...
Posted

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 ?

  • 5 months later...
Posted
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?

Posted

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

 

  • 2 weeks later...
Posted

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

 

  • 1 month later...
  • 1 year later...
Posted

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.

  • 3 months later...
Posted
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!

  • 1 year later...
Posted
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.

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

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