_____________ ____________________ _______
___ __ \_ / / /_ ___/ ___/ __ `/_ __ \
__ /_/ / /_/ /_(__ )/ /__ / /_/ /_ / / /
_ .___/_\__, / /____/ \___/ \__,_/ /_/ /_/
/_/ /____/
Pyscan - A fast malware scanner using ShellScannerPatterns.
==
- 1.12
- CentOS 5/6/7
- CloudLinux 5/6/7
- Redhat 5/6/7
- Ubuntu and Debian - All versions.
- Windows with https://msys2.github.io
- cPanel - Plesk - Directadmin (other control panels not tested.)
- Any cms.
https://raw.githubusercontent.com/bashcode/Pyscan/master/scan_example.png
Options..
-
-c for current directory
-
-u for scan username
-
-p for custom path
-
--exclude for exclude custom dir
-
-D for debug mode
-
DETECT ONLY
python <(curl -ks https://raw.githubusercontent.com/bashcode/Pyscan/master/pyscan.py)
- CLEAN MALWARE
python <(curl -ks https://raw.githubusercontent.com/bashcode/Pyscan/master/removeinjections.py)
Use rev hits.txt | cut -d: -f1 | rev
to extract a list of files. Logs will always be found at ~/found_shells.log
.
Download, install, and run MSYS2
Run update-core to update the core packages.
Run pacman -S python2 python2-setuptools
For significantly faster scans, compile and install re2. Install the Pyton module with easy_install2.7 re2.
Use the function pyscan provided above.