Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added Download capability #189

Open
wants to merge 6 commits into
base: main
Choose a base branch
from
Open

Conversation

Talismancer
Copy link

Added a secure "download" command for injection into Linux (.sh) & Windows (.ps1) to download files from the target machine to the C2 hub (but not siblings at this stage).

Sample Download command:

download .\winpeas.bat /home/kali/winpeas.bat

@t3l3machus
Copy link
Owner

Ok, I will check it out @Talismancer, thank you. I generally try to add features that are fully functional (sibling servers as well). Let me see how you approached this and maybe we can co-author the complete solution, I'll get back to you.

@Talismancer
Copy link
Author

I added a new port (in start_receiver_server() ) to receive the file with a threaded FileReceiverHandler to handle incoming files. A new global ticket variable that can be seen by the new thread is used to compare to the ticket on the incoming file. The injected scripts send headers that include the path that the handler uses to place the file in the correct location.
Appended yesterday: the new Utilities/Shell/download/http/src.sh injected script now operates correctly for Linux targets. I haven't touched src.bat yet.
I haven't looked into how you handle pass-off to siblings so I've yet to actually test across siblings.

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.

2 participants