Solved Howto stream a hack-dll from an vServer or webFTP ?

Hexui Undetected CSGO Cheats Sinkicheat PUBG Cheat

GAFO666

Hacker
Meme Tier VIP
Aug 19, 2012
520
3,188
23
Hey Guys,
Im wondering why no-one knows howto stream a dll from an vServer or web-ftp,
I try to find that out since a long time, but the internet is no help atm, that would be more usefull than downloading the file to inject >.<
(like the vip-hack streamers of gameanarchy or aimjunkies)
I just gues that I have to read the dll into an byte-array and inject it~

May someone here knows howto solve this problem :)


,greetings GAFO~
 

GAFO666

Hacker
Meme Tier VIP
Aug 19, 2012
520
3,188
23
Why do you even want to stream your hack?
Probably because he wants his hack to stay private, so lesser experienced coders doesn't get the DLL.
Well, my view of things is not one-sided.
I just want be able to do that and gain the knowlede and it would be more easy for me and others, if I write pub hacks and they can just stream and inject it without to much downloading, so they just would need my injector and they have all hacks wich are public stored in my prog :)


EDIT:
problem solved, my hack-stream works now with perfect injection :D

here the code for pll who want stream dll's as well :p

C++:
private bool DownloadPackage(string Dll_Path)
        {
            try
            {
                lock (this)
                {                    
                    WebClient wClient = new WebClient();
                    wClient.DownloadProgressChanged += new DownloadProgressChangedEventHandler(DownloadProgressChanged);
                    wClient.DownloadDataCompleted += DownloadDataCompleted;
                    wClient.DownloadDataAsync(new Uri(Dll_Path)); //new Uri(Dll_Path)                   
                    return true;
                }
            }
            catch (Exception)
            {
                MessageBox.Show("Error -Serverconnection not available.\nPlease try it later again or check your\nInternetconnection.", "ConnectionManager", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
                return false;
                //this.Close();
            }
        }
        private void DownloadDataCompleted(object sender, DownloadDataCompletedEventArgs e)
        {
            lbDownload.Text = "Done.. 100%";
            DLL_Stream = e.Result;
            Thread.Sleep(400);
            lbDownload.Text = "Your hack has been streamed !\nInjection_Loop starting !";
            InjectionLoop();
        }
        private void DownloadProgressChanged(object sender, DownloadProgressChangedEventArgs e)
        {
            progressBar1.Value = e.ProgressPercentage;
            lbDownload.Text = "Streaming - " + Convert.ToString(e.ProgressPercentage) + " %";
        }
 
Last edited:

terrorbyte

Newbie
Full Member
Sep 13, 2013
10
182
0
You're correct, best way is by reading it into a byte-array and then injecting it.
Here's an example code, hope it helps.
I was recently looking into this for a project I'm working on.
As far as I know I did something similar to the example written.
Obviously changing to your liking.


private void InjectHackBTN_Click(object sender, EventArgs e)
(

WebClient request = new WebClient();

request.Credentials=
new NetworkCredentials(this.txtUsername.txt,
this.txtPassword.Text);


byte[] fileData =
request.DownloadData(this.txtAddress.Text + "/"+
this.txtFileToDownload.text


FileStream file=
File.Create(this.txtDownloadPath.text + "\\" +
this.txtFileToDownload.Text);


file.Write(fileData, 0, fileData.Length);

file.Close();

MessageBox.Show("Injected Successfully");
What I did here was when you would click the button labeled "Inject or Load" it would then download the file and not inject it until the download process was complete.
I'm sure you can find all this information in a simple google search as that's how I came across it.
The code I've written above may or may not work, it's simply an example although I don't see anything wrong with it.

If you have any questions regarding this, let me know.
I can give you a more in depth explanation.
Obviously I did this in C#.

In my one I only got as far as typing in the url to fetch the file from, however it wouldn't be too hard to intergrate the url into the code itself.
But I see no issue with the URL being visible as they'll need a login to access it anyway. (Unless you're trying to do a VIP system)
 
Last edited:

GAFO666

Hacker
Meme Tier VIP
Aug 19, 2012
520
3,188
23
ty :D hope that works :)

EDIT:
hmm rewrote my download-file code to streaming-code but somehow it wont start to stream, nothing happen whyever oO
C++:
private byte[] DLL_Stream;
private bool DownloadPackage(string Dll_Path)
        {
            try
            {
                lock (this)
                {                    
                    WebClient wClient = new WebClient();
                    wClient.DownloadProgressChanged += new DownloadProgressChangedEventHandler(DownloadProgressChanged);
                    wClient.DownloadFileCompleted += new AsyncCompletedEventHandler(DownloadComplete);
                    DLL_Stream = wClient.DownloadData(new Uri(Dll_Path));                    
                    return true;
                }
            }
            catch (Exception)
            {
                MessageBox.Show("Error -Serverconnection not available.\nPlease try it later again or check your\nInternetconnection.", "ConnectionManager", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
                return false;
                //this.Close();
            }
        }
        private void DownloadProgressChanged(object sender, DownloadProgressChangedEventArgs e)
        {
            progressBar1.Value = e.ProgressPercentage;
            lbDownload.Text = "Streaming - " + Convert.ToString(e.ProgressPercentage) + " %";
        }
        void DownloadComplete(object sender, AsyncCompletedEventArgs e)
        {
            progressBar1.Value = 0;
            lbDownload.Text = "Done.. 100%";
            Thread.Sleep(200);
            lbDownload.Text = "Your hack has been streamed !\nInjection_Loop starting !";
            InjectionLoop();
        }
 
Last edited:

c5

Kim Kong Trasher
Dank Tier VIP
Dank Tier Donator
Jul 19, 2012
1,187
12,638
76
Why do you even want to stream your hack?
 

GAFO666

Hacker
Meme Tier VIP
Aug 19, 2012
520
3,188
23
Glad you got it working buddy, hope I was of some assistance :)
yh you were :D my onliest prob I have is, that small-dlls are streamed and injected without problems, but bigger ones like my css hack .dll -> it streams up to 25% and jumps to 100% whyever :x
 

terrorbyte

Newbie
Full Member
Sep 13, 2013
10
182
0
yh you were :D my onliest prob I have is, that small-dlls are streamed and injected without problems, but bigger ones like my css hack .dll -> it streams up to 25% and jumps to 100% whyever :x
Hm, that's odd. I'll have a look into it for you. Let me know if you figure it out.

Edit:

I've managed to find a simpler way to get the file.

You can simply intergrate the option of a username/login requirement yourself.
By using:
request.Credentials=
new NetworkCredentials(this.txtUsername.txt,
this.txtPassword.Text);
Ofcourse, you could always just create a login screen which stores the login credentials and uses them for the server.


Here's the way I've done it:

}

private void btnInject_Click(object sender, EventArgs e)
{
WebClient client = new WebClient();
client.DownloadProgressChanged += new DownloadProgressChangedEventHandler(client_DownloadProgressChanged);
client.DownloadFileCompleted += new AsyncCompletedEventHandler(client_DownloadFileCompleted);


client.DownloadFileAsync(new Uri("WEB SERVER/FTP URL TO FILE"), @"Where the file will be stored.");

btnInject.Text = "Load Hack";
btnInject.Enabled = false;
}
void client_DownloadProgressChanged(object sender, DownloadProgressChangedEventArgs e)
{
double bytesIn = double.Parse(e.BytesReceived.ToString());
double totalBytes = double.Parse(e.TotalBytesToReceive.ToString());
double percentage = bytesIn / totalBytes * 100;

progressBar1.Value = int.Parse(Math.Truncate(percentage).ToString());
}
void client_DownloadFileCompleted(object sender, AsyncCompletedEventArgs e)
{
MessageBox.Show("Successfully Loaded, Injecting.");

btnInject.Text = "Loading..";
btnInject.Enabled = true;
}
}
}
I've tested this with many different sized DLL's and all appear to download just fine.
Of course you don't have to have a progress bar or message pop up, it's upto you how you do it.
I personally did it so once loading completes, it injects and closes the ui.
 
Last edited:

GAFO666

Hacker
Meme Tier VIP
Aug 19, 2012
520
3,188
23
Hm, that's odd. I'll have a look into it for you. Let me know if you figure it out.

Edit:

I've managed to find a simpler way to get the file.

You can simply intergrate the option of a username/login requirement yourself.
By using:


Ofcourse, you could always just create a login screen which stores the login credentials and uses them for the server.


Here's the way I've done it:



I've tested this with many different sized DLL's and all appear to download just fine.
Of course you don't have to have a progress bar or message pop up, it's upto you how you do it.
I personally did it so once loading completes, it injects and closes the ui.
thank you very much, I will try it out :D (just got my new pc today, thatswhy late answer :) )

and I just add
C++:
byte[] BytesToInject;
into
C++:
void client_DownloadFileCompleted(object sender, AsyncCompletedEventArgs e)
{
MessageBox.Show("Successfully Loaded, Injecting.");
btnInject.Text = "Loading..";
btnInject.Enabled = true;
BytesToInject = e.Result;// <------------------------
}
as usual ? or on a different way ?
 
Last edited:

terrorbyte

Newbie
Full Member
Sep 13, 2013
10
182
0
thank you very much, I will try it out :D (just got my new pc today, thatswhy late answer :) )

and I just add
C++:
byte[] BytesToInject;
into
C++:
void client_DownloadFileCompleted(object sender, AsyncCompletedEventArgs e)
{
MessageBox.Show("Successfully Loaded, Injecting.");
btnInject.Text = "Loading..";
btnInject.Enabled = true;
BytesToInject = e.Result;// <------------------------
}
as usual ? or on a different way ?
I'll have to check, but that should be fine.
 
Attention! Before you post:

Read the How to Ask Questions Guide
99% of questions are answered in the Beginner's Guide, do it before asking a question.

No Hack Requests. Post in the correct section.  Search the forum first. Read the rules.

How to make a good post:

  • Fill out the form correctly
  • Tell us the game name & coding language
  • Post everything we need to know to help you
  • Ask specific questions, be descriptive
  • Post errors, line numbers & screenshots
  • Post code snippets using code tags
  • If it's a large project, zip it up and attach it

If you do not comply, your post may be deleted.  We want to help, please make a good post and we will do our best to help you.

Community Mods