Home Upgrade Search Memberlist Extras Hacker Tools Award Goals Help Wiki Contact

.NET 

[SOLVED][RAT] Help with recieving and sending images/files

As the title says, i need help with recieving and sending images or files without interrupting other services

The "RAT" can already send and recieve text.
Now i need a way to send images/files without interrupting text messages.
But the problem is detecting if images/files or text messages are incoming.

It is possible using an pre-image message and some smart coding, but thats an really bad way to do it and i would like some fresh ideas from you guys!
Convert the files to Base64, send it, then decode it.
Tyranitar, do you mean like read into a byte array > byte array to base64 > add pre-fix so the server knows what to do with it> send > recieve > decode to byte array > write to file or is there another way to do it?
to send image u can use memorie stream -_- and send pic from memorie also u can
use based64 to convert data and send img
If you wish to stay with sending strings back and forth you can convert bytes into a Base64 string and send them. Imo, that's not really optimal. Since everything breaks down into bytes, my advice is to change your client and server so that they are sending bytes instead of string. That way, you convert any image/string into a byte array before sending it and revert it back when receiving it. Any files that you are trying to send are already in a byte array.
(May 8, 2015 01:33 PM)KingCobraXD Wrote:  If you wish to stay with sending strings back and forth you can convert bytes into a Base64 string and send them. Imo, that's not really optimal. Since everything breaks down into bytes, my advice is to change your client and server so that they are sending bytes instead of string. That way, you convert any image/string into a byte array before sending it and revert it back when receiving it. Any files that you are trying to send are already in a byte array.

Second this, instead of worrying about converting the bytes to something change the other functions to send bytes instead, and for some reason if you want to keep the ability to send text (like easily readable commands in your code) just convert the command to a byte and then send it over and when it's received turn it back into a string.

[Image: bitcoin.png]
1QCPKi1afC7NKmSjt7HFap8a3Ez7NeGSpq
Firstly thanks for all the help,
Secondly i made it work using base64 string but sending big files is too unoptimized, doesn't crash anything just is slow in converting all to bytes and then base64 string
Il just re-write the whole comms system, add heavy encryption, and maybe realase it here as an open-source project.
Add an option to send images and just on the recieving side il put up an option to send header info so the client has some idea what is incoming
(May 8, 2015 11:56 PM)N3w8i3H4ck3r Wrote:  Firstly thanks for all the help,
Secondly i made it work using base64 string but sending big files is too unoptimized, doesn't crash anything just is slow in converting all to bytes and then base64 string
Il just re-write the whole comms system, add heavy encryption, and maybe realase it here as an open-source project.
Add an option to send images and just on the recieving side il put up an option to send header info so the client has some idea what is incoming

Well the reason that it's slow is that you're converting it like this:

Bytes -> String -> Bytes

I think what you're missing is that even if it looks like the source is sending a string, the string is actually sent as a byte array. You can convert the file you're trying to send to bytes then just ship the bytes as is

Use File.IO.ReadAllBytes("") then change your communications to retrieve that byte array so it's easier on both ends, there's no point in converting it 3 times when you just have to read the bytes off one machine, send them then write the array on the server side machine.

[Image: bitcoin.png]
1QCPKi1afC7NKmSjt7HFap8a3Ez7NeGSpq


Possibly Related Threads...
Thread / Author Replies Views Last Post
[Shell] by Johnny CacheJan 23, 2021 11:08 AM 3 241 Jan 23, 2021 11:08 AM
Last Post: Shellc0de™
[Python] by TralenDec 2, 2017 09:30 AM 2 324 Dec 2, 2017 09:30 AM
Last Post: Tralen
[C] by Pinhead LarrySep 2, 2016 09:18 AM 3 158 Sep 2, 2016 09:18 AM
Last Post: Pinhead Larry