Hack Forums
[C] File pumper written in C-free for all *Along with Source*-Direct link - Printable Version

+- Hack Forums (https://hackforums.net)
+-- Forum: Tech (https://hackforums.net/forumdisplay.php?fid=444)
+--- Forum: Coding (https://hackforums.net/forumdisplay.php?fid=151)
+---- Forum: Software Development (https://hackforums.net/forumdisplay.php?fid=118)
+---- Thread: [C] File pumper written in C-free for all *Along with Source*-Direct link (/showthread.php?tid=2534501)



File pumper written in C-free for all *Along with Source*-Direct link - war8lck - May 28, 2012

Hi HF,
I noticed that a lot of Public Crypters don't have file pumper's in it,But a file pumper is very important to make your stub look like a legit one.

So I'm giving this free file pumper to the HF community

Way to use it:
> Put your RAT and File pumper in the same folder
> Run it and put you rat name as input
> Enter the size of waste to be pumped
> Press Enter then you are done.

Video :





Download Link : http://dl.dropbox.com/u/81670784/file_pumper.exe

Virus Scan : https://www.virustotal.com/file/33b5991f...338199708/

PM me for the source I'll give a direct link


* - Foco - May 28, 2012

If you wanna contribute to the C++ forum you should post the source 😅


* - war8lck - May 28, 2012

Dude If you want a direct link just PM me


* - Foco - May 28, 2012

What compiler does is used for this program?


* - war8lck - May 28, 2012

Dev c++ compiler,well it is a basic program


* - Han. - May 28, 2012

/facepalm

It used the compiler that comes with Dev C++? The IDE that hasn't been updated since 2006?

Epic Win Dude 🙃


* - SpriteZ - May 28, 2012

(May 28, 2012 03:43 PM)Han. Wrote:  /facepalm

It used the compiler that comes with Dev C++? The IDE that hasn't been updated since 2006?

Epic Win Dude 🙃

IDE =/= Compiler. Who cares, it compiles just fine.


* - war8lck - May 28, 2012

PM sent bro I hope you like the code


* - _SLQ - May 29, 2012

Very good! You may wanna check mine out as well, I give out the source code and you can try improve it: Pump++


* - war8lck - May 29, 2012

thanks buddy it is good,did you learn Win32API


* - Noobo - May 29, 2012

Can I please get the source mate? Would love to see how this works as I am starting to learn C :).


* - war8lck - May 29, 2012

Link sent buddy,if you like it say thanks


* - Apathy - May 30, 2012

Hey, can I take a look at the source code?


* - Krofnica - May 30, 2012

Hmm... This is indeed very interesting idea.
Wonder how did you do it. (share your code :D)

My first guess was to open the file in ios::app | ios::binary, allocate shit loads of memory into char* and then write it into file:
Code
#include <iostream>
#include <fstream>
#include <string>
using namespace std;

int main()
{
    size_t size;
    string filename;
    cin >> filename >> size;
    ofstream file(filename, ios::app | ios::binary);
    char* p = (char*)malloc(size*sizeof(char));
    file << p;
    free(p);
}

Tho it doesn't seem like a good idea, because it limited by RAM.

Second guess would be to allocate 1MB of ram and write 1 by one megabyte:
Code
#include <iostream>
#include <fstream>
#include <string>
using namespace std;

int main()
{
    size_t size;
    string filename;
    cout << "Enter file name: ";
    cin >> filename;
    cout << "Enter size in MB: ";
    cin >> size;
    ofstream file(filename, ios::app | ios::binary);
    char* p = (char*)malloc(1048576*sizeof(char)); //Get 1 megabyte

    while(size != 0)
    {
  file << p;
  --size;
    }
    free(p);
}
Much more RAM friendly.

Can anyone think of better idea? :D