Sign in to follow this  
Followers 0
duckblaster

.

10 posts in this topic

#1 ·  Posted (edited)

.

Edited by duckblaster

Share this post


Link to post
Share on other sites



If you have a webserver or an image hosting account, you could upload the image to the web, and then download easily on the other end.

Share this post


Link to post
Share on other sites

First of all, I wouldn't recommend sending/receiving messages in such huge chunks:

$recv = TCPRecv($ConnectedSocket, 1073741824)

Share this post


Link to post
Share on other sites

#4 ·  Posted (edited)

I am working on a similar program. This seems to work pretty good for me when I send my screenshots. One thing is the quick sleep can probably be changed but I had a huge problem not having a sleep and the program sending faster than the client could write to a file and it would miss info. The other note is the sendPacket() is a UDF I made that is a TCPSend() with some error checking and connFail() is just a routine to go through when establishing a reconnect.

Func sendFile($file, $delete = 0)
    $FileOpen = FileOpen($file, 16) ;opens in binary mode... means you should write in binary mode in client
    $FileSize = FileGetSize($file)
    $BytesSent = 0
    While $BytesSent < $FileSize
        $ReadFile = FileRead($FileOpen, 4096)
        TCPSend($socket, $ReadFile)
        If @error Then 
            FileClose($FileOpen)
            If $delete = 1 Then FileDelete($file)
            connFail()
        EndIf
        $BytesSent = $BytesSent + 4096
        sleep(20) ;allows other computer time to write to file LARGE PROBLEM TIME TO FIX..... 45 MINUTES!!!!!!!!!!!!
    WEnd
    sleep(20)
    sendPacket("Transfer Complete")
    FileClose($FileOpen)
    If $delete = 1 Then FileDelete($file)
EndFunc
Edited by SoulA

Share this post


Link to post
Share on other sites

can you send me the full program please? i would like to see how you have made yours, mine needs the extra code removed

I would rather keep my code for now because I may be using it as a project. I posted this small bit because I gathered a lot of it from programs already posted on the forums. I can try to point you in the right direction if you have any questions/want advice.

Share this post


Link to post
Share on other sites

sounds like you are making a RAT search for Radical in the example script forum.

Share this post


Link to post
Share on other sites

sounds like you are making a RAT search for Radical in the example script forum.

wait what?

Share this post


Link to post
Share on other sites

a RAT is a remote administration tool. Radical is the name of a RAT created by a member of this forum. His program is great and has a feature to see the users screen. In order to implement this feature he would have to send picture files quickly.

Share this post


Link to post
Share on other sites

.

Share this post


Link to post
Share on other sites
Guest
This topic is now closed to further replies.
Sign in to follow this  
Followers 0