GithubHelp home page GithubHelp logo

spacecase123 / procpuppy Goto Github PK

View Code? Open in Web Editor NEW

This project forked from saket-upadhyay/procpuppy

0.0 0.0 0.0 195 KB

Multi-threaded Yara-based process memory scanner for *nix systems.

License: MIT License

C++ 9.76% Python 76.00% YARA 14.24%

procpuppy's Introduction

By default it scans the exe and fd/* symlinks, but you can add your own list too. The default Yara rule file is YaraRules/index.yar.

Initial setup

cd ~
sudo apt-get update && sudo apt-get upgrade -y
sudo apt-get install virtualenv git -y
git clone https://github.com/Saket-Upadhyay/ProcPuppy.git
cd ProcPuppy
virtualenv ProcPuppyEnv
source ProcPuppyEnv/bin/activate
pip install -r requirements.txt
deactivate

Run

cd ~/ProcPuppy
source ProcPuppyEnv/bin/activate
python ProcPuppy.py

Global Variables

YARARULEFILE = "<YOUR VALID YARA FILE HERE>"
NUMBEROFTHREADS = <NUMBER OF THREADS YOU WANT, must be integer>
ENABLEYARAINCLUDE= <True/False> (Enables or Disables 'include' capabilities of the yara compiler.)

Import Custom Yara Rules

There are two ways to do it-

Method 1

You can either add a import statement to "YaraRules/index.yar" like -

include "PhPinImages"
include "CustomExeSig"
include "<path to your custom rule>" 

(for this ENABLEYARAINCLUDE must be set to True)

Method 2

Or you can also direct the YARARULEFILE variable to your custom file directly.

Suggestion: If you are using multiple rule files, the first option is better. If you are using single file with multiple rules defined in it, second option is better.


Tested on:

  • Ubuntu 20.4
  • WSL 2.0 on Windows 10 Pro for Workstations 21H1 BUILD:19043.1288

Will be discussed at PyCode Conference 2021 (Online). See Saket-Upadhyay/Talks_and_Presentation for presentation slides and credits.

exploit.png: 'in-image PhP' payload in "Test Malicious App" folder is created using CUPPS

Thanks to macrovector for the base puppy vector in the logo, I downloaded it from www.freepik.com, then edited it for my use.

procpuppy's People

Contributors

saket-upadhyay avatar

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.