c0m4r / paranoya Goto Github PK
View Code? Open in Web Editor NEWSimple IOC and YARA scanner for Linux®
License: GNU General Public License v3.0
Simple IOC and YARA scanner for Linux®
License: GNU General Public License v3.0
CodeFactor found multiple issues:
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)
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
CodeFactor found multiple issues:
CodeFactor found an issue: subprocess call with shell=True identified, security issue.
It's currently on:
loki.py:851
CodeFactor found multiple issues:
CodeFactor found an issue: Try, Except, Pass detected.
It's currently on:
loki.py:1623-1624
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.