BitByByte-File-Pumper
BitByByte-File-Pumper copied to clipboard
Revisiting a classic tool, the file pumper! 💦
⭐️ Star the project on GitHub — it helps! ⭐️
🖥 BitByByte-File-Pumper
Increases the size of a file by adding null hexadecimal value(s) (00) to the end depending on the amount the user wants in KB, MB, or GB. Usually, anti-virus softwares ignore files bigger than 100 MB therefore qualifiying this file pumper useful in that situation. Another way it could be used is for phishing or testing a network/thumb drives transfer speed. Above all, this is a penetration testing tool/utility, not a black hat tool.
⏱ Motivation
The graphical user interface was programmed line by line, I didn't use WindowBuilder (Eclipse) to make the GUI. Reasoning why is that I took this up as a challenge to better understand how GUI's work using Java and low-level functions. Also, it is user friendly and I'm not responsible for any damages.
📸 Screenshots
💻 Tech/framework used
💡 Features
Write once, run anywhere. Currently there isn't a file pumper out there programmed in Java, there was one, but it's gone now.
🧠 Code Example
int valueUserMain = (Integer) valueBox.getValue(); // Grabs valueBox value.
byte[] nullValue = new byte [1]; // Placeholder for length.
FileChannel rwChannel = null;
writeRead = rwChannel.map(FileChannel.MapMode.READ_WRITE, 0, nullValue.length * valueUserMain * x.get() / 2); // Multiples and divides for correct file size.
for (int i1 = 0; i1 < valueUserMain; i1++) // Creates a for loop based on the valueUserMain value.
{
try {
rwChannel.write(writeRead); // Writes data according to writeRead multiplication/division.
} catch (IOException e) {
e.printStackTrace();
} while (i1 == valueUserMain);
Data table:
8 BITS = 1 BYTE
1000 BYTE = 1 KB
1000 KB = 1 MB
1000 MB = 1 GB
💼 Installation
You can download the JAR file here.
🔨 How to use?
Example: Step increment of 1 input value = 1 KB/MB/GB
Minimum: 1 for KB, MB, and GB. Maximum: 999 for KB and MB. 1 for GB.
If no radio button is selected default is KB automatically.
🔑 Contribute
If you would like to contribute, just fork and push an update or make an issue.
📚 License
Creative Commons Attribution 4.0 International License. Perfect.exe