You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
importjson, requests, argparse, yaml, re, datetime, os, subprocess, platform, hashlib
4
+
fromtinydbimportTinyDB, Query
5
+
frompwdimportgetpwuid
6
+
7
+
# Create a TinyDB instance for storing previous alert hashes
8
+
db=TinyDB('previous_alerts.json')
9
9
10
-
console=Console()
11
10
parser=argparse.ArgumentParser(description='🦅 A powerful scanner to scan your Filesystem, S3, MySQL, PostgreSQL, MongoDB, Redis, Google Cloud Storage and Firebase storage for PII and sensitive data.')
Copy file name to clipboardExpand all lines: readme.md
+10-1Lines changed: 10 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -39,11 +39,20 @@ See how this works on Youtube - https://youtu.be/LuPXE7UJKOY
39
39
pip3 install hawk-scanner
40
40
```
41
41
42
-
## Example working command (To scan all supported services, or use fs/s3/gcs etc...)
42
+
43
+
## Example working command (Use all/fs/s3/gcs etc...)
43
44
```bash
44
45
hawk_scanner all --connection connection.yml --fingerprint fingerprint.yml --json output.json --debug
45
46
```
46
47
48
+
### Note: Scanning Postgresql?, then you have to install some extra dependencies.
49
+
50
+
For scanning postgresql source, this tool requires psycopg2-binary dependency, we can't ship this dependency with main package because psycopg2-binary not works with most of the systems espically with Windows, so you have to install it manually.
51
+
52
+
```bash
53
+
pip3 install psycopg2-binary
54
+
```
55
+
47
56
## Building or running from source
48
57
49
58
HAWK Eye is a Python-based CLI tool that can be installed using the following steps:
0 commit comments