Comments (5)
Copy log4j-finder.py and log4j-finder.spec from repo
Install Python 3.10
=> pip install pyinstaller
=> pyinstaller log4j-finder.spec
Exe is in your dist folder.
All our virusscanners were blocking the binary listed on frontpage for some reason, the one I generated myself was considered "suspicous", but at least not removed straight away.
Also good to know: For some reason it has big trouble when being run from a Onedrive folder and network drive on our machines (suspect it's because of pyinstaller, but could again be our virusscanner). It will only scan a few files and report it's done. Just copy it to C: and you're good.
from log4j-finder.
They are generated using pyinstaller automatically via the GitHub actions workflow:
https://github.com/fox-it/log4j-finder/actions
More specifically:
https://github.com/fox-it/log4j-finder/blob/main/.github/workflows/pyinstaller.yaml
For the release we download the generated artifacts manually and attach it to the release page
I will add this info to the main README.md later
from log4j-finder.
@yunzheng , can you add info about using pyinstaller to compile .py into exe manually without github action ?
This will allow users to compile their own exe and push out binary to their systems with more confidence.
from log4j-finder.
Thanks for the great feedback and suggestion.
The instructions has been added. Not as detailed as yours @tjyang but I think it should be ok :)
from log4j-finder.
@jkommeren , Thanks for the note.
- Here is the note for rocky8 (RHEL 8 downstream)
[me@rocky8t01 github]$ cat /etc/redhat-release
Rocky Linux release 8.5 (Green Obsidian)
[me@rocky8t01 github]$ pip -V && python -V
pip 21.2.4 from /usr/local/lib/python3.9/site-packages/pip (python 3.9)
Python 3.9.8
[me@rocky8t01 github]$ pip install pyinstaller
<snipped>
[me@rocky8t01 github]$ which pyinstaller
~/.local/bin/pyinstaller
[me@rocky8t01 github]$
[me@rocky8t01 github]$ git clone https://github.com/fox-it/log4j-finder.git
[me@rocky8t01 github]$ cd log4j-finder
[me@rocky8t01 log4j-finder] pyinstaller log4j-finder.spec
<snipped>
[me@rocky8t01 log4j-finder]$ dist/log4j-finder -h
usage: log4j-finder [-h] [-v] [-n] [-b] [PATH ...]
Find vulnerable log4j2 on filesystem (Log4Shell CVE-2021-4428)
positional arguments:
PATH Directory or file(s) to scan (recursively) (default: ['/'])
optional arguments:
-h, --help show this help message and exit
-v, --verbose verbose output (-v is info, -vv is debug) (default: 0)
-n, --no-color disable color output (default: False)
-b, --no-banner disable banner (default: False)
Files are scanned recursively, both on disk and in Java Archive Files
[me@rocky8t01 log4j-finder]$
from log4j-finder.
Related Issues (20)
- Errors on one certain server - too long filename perhaps? HOT 5
- Critical issue on Windows HOT 3
- LICENSE is missing HOT 1
- Renamed class extensions are not found HOT 2
- Bug (Windows): Default path only scans the system partition. HOT 4
- GitHub Action didnt publish the release HOT 1
- Symantec Endpoint Protection detects as Trojan HOT 3
- Documentation could use a parameter list with their uses HOT 1
- log4j-finder will change acces time of a jar file HOT 2
- One-Click Windows Version (cmd stays open after execution) HOT 3
- Not working for log4j-1.x where JMSAppender.class exists HOT 1
- Missing 'known bad' hash for versions <2.1? HOT 2
- Scanning issue very large zip files HOT 6
- Very strange security issues from running the Log4j-finder.exe on a Windows 10 machine?
- Exit with error when Vulnerability is found (optional parameter)
- Error with a ZIP file HOT 6
- redhat linux 6 glibc_2.14 not found error HOT 1
- script (binary) requires executable option on /tmp mount HOT 2
- does not scan .nar files
- Signed Windows Binary Out-Of-Date
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from log4j-finder.