SharpC2
SharpC2 copied to clipboard
Download command
Please add exfiltration capabilities
Hi @rasta-mouse - to clarify, is adding a new command to a Drone just a matter of:
- 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.
- Adding an implementation class in Drone/Commands/ using the same command number chosen in step 1.
- Recompiling Client/Drone/Teamserver
? Is there anything else that needs to be done ?
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
Hi @rasta-mouse - to clarify, is adding a new command to a Drone just a matter of:
- 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.
- Adding an implementation class in Drone/Commands/ using the same command number chosen in step 1.
- Recompiling Client/Drone/Teamserver
? Is there anything else that needs to be done ?
and about what u asking i think its right
@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.