Socials:
- Clone the github repository
git clone https://github.com/initd1/HackAlert.git
- Install python-pip in your environment
- Install virtualenv
pip install virtualenv
- Create virtual environment
virtualenv <environment-name>
- Activate virtual environment
Mac or Linux
source <environment-name>/bin/activate
Windows
<environment-name>\Scripts\activate.bat
- Install required packages in the virtual environment
pip install -r requirements.txt
- Ensure
config.ini
file is created under Config directory - Format of
config.ini
file is as below:
[APIKeys]
VT_APIKey = 1234567890
HIBP_APIKey = 1234567890
- Add API keys for Virus Total and Haveibeenpwned
It is important that before you do anything you have the requirements.txt
file
installed as it is required for the dependencies that are used in this project.
To install all dependencies listed in this file, run the following:
python -m pip install -r requirements.txt
To execute tests, please ensure that you have the pytest
module installed.
The unittest module is used, however, this is native to python and does not have to be installed.
To run tests, please ensure that you are in the base directory, where Tests
and main.py
is visible.
To run tests with print output:
pytest -s
To run tests without print output:
pytest
Warning pytest will not run if python site-packages are not already in your global path!
- HackAlert Usage:
python hackalert.py -h
usage: hackalert.py [-h] [-e EMAIL] [-i IP] [-u USERNAME]
Check if the given data has been compromised in a data breach.
options:
-h, --help show this help message and exit
-e EMAIL, --email EMAIL
Email address to check
-i IP, --ip IP IP address to check
-u USERNAME, --username USERNAME
Username to check