Giter Site home page Giter Site logo

c0m4r / paranoya Goto Github PK

View Code? Open in Web Editor NEW
5.0 1.0 0.0 39.44 MB

Simple IOC and YARA scanner for Linux®

License: GNU General Public License v3.0

Python 80.34% Classic ASP 0.02% Shell 17.82% Dockerfile 1.82%
yara yara-scanner malware-detector python security security-tool paranoya

paranoya's Issues

Loki does not follow symlinks

Describe the bug
Loki does not follow symlinks

To Reproduce
Run on symlink

Expected behavior
Should follow symlinks

Additional context
os.walk has followlinks=False

Add a progress bar

Is your feature request related to a problem? Please describe.
For higher amounts of files scanned in oneshot it's worth adding a progress bar.

Describe the solution you'd like
Implement a progress bar

Additional context
Quick PoC

import time
import progressbar
import os

source = "/usr/share"

def file_list(source):
    matches = []
    print("Calculating... This might take a while...")
    for root, dirnames, filenames in os.walk(source, followlinks=True):
        for filename in filenames:
            matches.append(os.path.join(root, filename))
    return matches

files = file_list(source)
files_len = len(files)

with progressbar.ProgressBar(max_value=files_len, redirect_stdout=True, enable_colors=False) as bar:
    i = 0
    for file in files:
        i += 1
        print(file)
        time.sleep(0.0000001)
        bar.update(i)

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.