Don't you hate it so much when your go-to file pumper just plainly asks for your file and desired bytes? Well fear no more, I have the solution for you. sExePumper ( Sexy Pumper ) has your back if you're feeling lonely and just need a sweet technologically advanced and intellectually profound woman to talk to you. sExePumper will flirtatiously ask for your file and bytes all in a simple console window with beautiful visuals. Okay, that last point was a lie, you can't really make consoles look pretty, but I sure tried.
All kidding aside, this file pumper was coded in pure C++ with excellent commenting in case you want to know what's going on. The source is below.
Code:
/*
@title
sExePumper ( Sexy Pumper )
@Author
Itsumi (https://www.mpgh.net/forum/member.php?u=4778894)
@Copyright
(c) 2019
sExePumper (Sexy Pumper) is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
sExePumper (Sexy Pumper) is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
Published under the GNU General Public License.
For more information, see the GNU documentation.
*/
// Includes
#include "sExePumper.h"
// Shorthand the input and string data type
using namespace std;
/* // -----------------------------------------------------------------------------
* func <main>
* [ null ]
*
* Desc:
* Entry point of the program.
*/ // -----------------------------------------------------------------------------
int main() {
// Add some color and write logo
cc(0xB);
w(logo);
cc(0xF);
// Greet the user in a 'sexe' manner, take the file input
w("\nHey there sexy, go ahead and paste the file path here: ");
cc(0xB);
string input;
getline(cin, input);
// Ask the user for the byte count
cc(0xF);
w("\nAlright hun, now how many kilobytes do you want to add to this file: ");
cc(0xB);
int byteAmount;
cin >> byteAmount;
// Tell the user the task is being performed
cc(0xF);
w("\n\nSit back and let the magic happen... ");
cc(0xC);
w("<3 xoxo\n\n");
// Start the file pumping, calculating the kb->bytes
if (pumpFile(input.c_str(), (byteAmount * 1024)) == 1) {
// The file doesn't exist -.-
cc(0x6);
w("Whoops!\n");
cc(0xC);
w("It might be my fault, but I'm pretty sure that file doesn't exist.");
cc(0xF);
w(" Try again, won't you?");
system("pause > nul");
cc(0x7);
exit(-1);
} else {
// Everything went as planned, mission accomplished
cc(0xB);
w("Okay sugar, your file is all pumped and ready to go!");
cc(0xF);
w(" I'll see you around! ");
cc(0xC);
w("<3 xoxoxo");
system("pause > nul");
cc(0x7);
exit(0);
}
// Close the console, idk how the program would even reach this >_>
cc(0x7);
return 0;
}
Code:
/*
@title
sExePumper ( Sexy Pumper )
@Author
Itsumi (https://www.mpgh.net/forum/member.php?u=4778894)
@Copyright
(c) 2019
sExePumper (Sexy Pumper) is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
sExePumper (Sexy Pumper) is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
Published under the GNU General Public License.
For more information, see the GNU documentation.
*/
// Include necessary files
#include <iostream>
#include <iomanip>
#include <string>
#include <stdio.h>
#include <windows.h>
#include <cstdio>
// Shorthand the output
using namespace std;
// Define console handle for coloring
HANDLE HCSL = GetStdHandle(STD_OUTPUT_HANDLE);
// Define logo
string logo =
" ___ ___ \n"
" __| __|_ _____| _ \\_ _ _ __ _ __ ___ _ _ \n"
" (_-< _|\\ \\ / -_) _/ || | ' \\| '_ \\/ -_) '_|\n"
" /__/___/_\\_\\___|_| \\_,_|_|_|_| .__/\\___|_| \n"
" |_| \n";
/* // -----------------------------------------------------------------------------
* func <w>
* [ string par1 ]
*
* Desc:
* Shorthand for writing <par1> to the console output buffer.
*/ // -----------------------------------------------------------------------------
void w(string par1) {
// Simple output
cout << par1;
}
/* // -----------------------------------------------------------------------------
* func <cc>
* [ integer par1 ]
*
* Desc:
* Change the console color to the integer->color matrix based on <par1>.
*/ // -----------------------------------------------------------------------------
void cc(int par1) {
// Utilize windows.h to change text attributes.
SetConsoleTextAttribute(HCSL, par1);
}
Code:
/*
@title
sExePumper ( Sexy Pumper )
@Author
Itsumi (https://www.mpgh.net/forum/member.php?u=4778894)
@Copyright
(c) 2019
sExePumper (Sexy Pumper) is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
sExePumper (Sexy Pumper) is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
Published under the GNU General Public License.
For more information, see the GNU documentation.
*/
// Include required files
#include "init.h"
/* // -----------------------------------------------------------------------------
* func <pumpFile>
* [ string pointer fname, long bytesToPump ]
*
* Desc:
* Opens the file passed to *fname, and adds {bytesToPump} to the final size.
*/ // -----------------------------------------------------------------------------
short pumpFile(const char *fname, long bytesToPump) {
// Define the FILE type to store to in memory
FILE *f = NULL;
// Open the file <fname>
f = fopen(fname, "a");
// Check if the file exists
if (f == NULL) {
return 1; //Return 1 because it failed to open file
}
// Set up loop for pumping
for (long i = 0; i < bytesToPump; i++) {
fputc(0xC3, f);
}
// Close the file to prevent memory leaks
fclose(f);
// Return 0 because it successfully wrote the bytes
return 0;
}
You can also download the binary below, be sure to leave a thanks if you enjoyed it.
News Force Head Editor from 09/14/2018 - 03/02/2020
Publicist from 11/23/2017 - 06/07/2019
Global Moderator since 09/24/2017
Minion+ from 04/16/2017 - 09/24/2017
Market Place Minion from 04/16/2017 - 09/24/2017
Minecraft Minion from 02/23/2017 - 09/24/2017
Realm of the Mad God Minion from 11/06/2016 - 09/24/2017
Middleman from 09/14/2016 - 09/24/2017
News Force Editor from 08/23/2016 - 09/14/2018
News Force (Section of the Week) from 03/21/2016 - 07/17/2017
News Force (User News) from 10/18/2015 - 09/14/2018
Donator since 03/16/2015
Realm of the Mad God Editor from 05/20/2014 - 07/08/2014
Member since 12/23/2012