Tricks Duniya -ONLINE SHOPPING GUIDE, MOBILE TRICKS, ANDROID TRICKS, HACKING
Post: #1 File Creator (make any file any size) free / open source [Image: 2j5cuvd.j - Printable Version

+- Tricks Duniya -ONLINE SHOPPING GUIDE, MOBILE TRICKS, ANDROID TRICKS, HACKING (http://tricksduniya.com)
+-- Forum: RULEBRAKER ZONE (http://tricksduniya.com/forum-3.html)
+--- Forum: Ethical Hacking (http://tricksduniya.com/forum-8.html)
+---- Forum: tools (http://tricksduniya.com/forum-19.html)
+---- Thread: Post: #1 File Creator (make any file any size) free / open source [Image: 2j5cuvd.j (/thread-130.html)



Post: #1 File Creator (make any file any size) free / open source [Image: 2j5cuvd.j - admin - 12-06-2014

File Creator (make any file any size) free / open source

Image has been scaled down 49% (700x394). Click this bar to view original image (1366x768). Click image to open in new window.
[Image: 2j5cuvd.jpg]




This is something that I quickly put together today in 5 mins, basically I needed to make different files of different sizes to perform a memory consumption attack and it worked so thought I'd share it in case you find it useful.

Download executable

Source (cross platform C++)


Code:
Code:
/* A simple tool to create a user defined file and allocate

size in bytes by user defined amount Coded by Dreamwalker*/



#include<iostream>

#include<fstream>

#include<string>

using namespace std;



int main()

{

    string the_name,tmp;

    int the_defined_size;



    cout<<"\t\t\thttp://Dreamwalker-Software.com/\n\n";

    cout<<"This tool will create a file and extension of your choosing, along with it's\n";

    cout<<"size, use: http://www.matisse.net/bitcalc/ for size in bytes calculation\n\n";

    



    cout<<"Name of file and extension?:"<<endl;