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

Download command #17

Open
giomke opened this issue May 15, 2023 · 4 comments
Open

Download command #17

giomke opened this issue May 15, 2023 · 4 comments

Comments

@giomke
Copy link

giomke commented May 15, 2023

Please add exfiltration capabilities

@tbaker57
Copy link

Hi @rasta-mouse - to clarify, is adding a new command to a Drone just a matter of:

  1. Adding an entry to one of the .yaml files in Client/Commands/ with an unused Command number between 0 and 255 and choosing the appropriate Output/Argument parameters.
  2. Adding an implementation class in Drone/Commands/ using the same command number chosen in step 1.
  3. Recompiling Client/Drone/Teamserver

? Is there anything else that needs to be done ?

@rakan-dev
Copy link
Contributor

i think download file need to be handling more that just normal task need chunking logic in teamserver and client to know how many KBs downloaded by % i think need to be handled as socks and reverse port forwarding
as solution :
1- send task to download file
2- drone send information about file and how many chunks will be sent
3- teamserver register that information and after drone finish send need to validate the chunks using checksum or something like that and know the missing chunk and send to drone to resend that part missing and then mark the task completed

@rakan-dev
Copy link
Contributor

Hi @rasta-mouse - to clarify, is adding a new command to a Drone just a matter of:

  1. Adding an entry to one of the .yaml files in Client/Commands/ with an unused Command number between 0 and 255 and choosing the appropriate Output/Argument parameters.
  2. Adding an implementation class in Drone/Commands/ using the same command number chosen in step 1.
  3. Recompiling Client/Drone/Teamserver

? Is there anything else that needs to be done ?

and about what u asking i think its right

@rasta-mouse
Copy link
Owner

rasta-mouse commented May 20, 2023

@tbaker57 for a basic command that would just return string output, then yes. For something more complex then @rakan-dev is correct, it would need a bit more. At the very least it would need a new server-side module to deal with the output. A command like download would also need database changes for storage and additional API endpoints to manage the files.

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

No branches or pull requests

4 participants