Code Monkey home page Code Monkey logo

Comments (4)

xnih avatar xnih commented on August 30, 2024

Added new feature "limit" that gives you the choice of how long to put another fingerprint out to screen.

python3 satori.py -i ens33 -r /home/xnih/Downloads/printer.pcap | wc -l
5016

python3 satori.py -i ens33 -r /home/xnih/Downloads/printer.pcap -l 1 | wc -l
214

So testing with one file dropped it from 5016 entries to screen down to 214. Time Limit is in minutes, could do 10, 60, or some other random #

To implement this it puts the fingerprint in a dictionary in the format:
fingerprint, timestamp

I'm unsure how much memory this will take up as it builds up this dictionary and keeps it over time as the program runs, so this was implemented as an optional feature. I also know some may want to see "every" fingerprint to verify functionality.

Doing some initial testing before I commit later this week.

from satori.

xnih avatar xnih commented on August 30, 2024

77 files from ctf at dc17 coming in at 7.3 Gb in size

./test1.sh
Sun 12 Sep 2021 08:02:04 PM PDT
4965435
Sun 12 Sep 2021 09:21:09 PM PDT
1 hr 19 mins

./test2.sh (with -l 1)
Sun 12 Sep 2021 09:47:55 PM PDT
581
Sun 12 Sep 2021 11:00:31 PM PDT
1 hr 13 mins

Memory/CPU usage seems to be the same using the limit feature, so shoving it into a dictionary, at least in limited testing so far doesn't seem to cause any issues.

I don't think the limit feature is making it any/much quicker, but it didn't add to the time which I was worried about. Will look into threads next.

from satori.

xnih avatar xnih commented on August 30, 2024

Fixed a number of bugs in the code I implemented, so maybe threads next version. Notice more fingerprints for both runs:

./test1.sh
Mon 13 Sep 2021 04:03:47 PM PDT
5009429
Mon 13 Sep 2021 05:33:02 PM PDT
1 hr 30 mins

./test2.sh
Mon 13 Sep 2021 06:34:09 PM PDT
694
Mon 13 Sep 2021 08:05:00 PM PDT
1 hour 29 mins

from satori.

xnih avatar xnih commented on August 30, 2024

running code in production for over a month with no issues, closing.

from satori.

Related Issues (17)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.