Home Upgrade Search Memberlist Extras Hacker Tools Award Goals Help Wiki Contact

C# 

[C#] Exe Pumper [Source]

You need 2 buttons , 2 textbox and 1 openFileDialog1

Code
using System;
using System.ComponentModel;
using System.IO;
using System.Windows.Forms;

namespace AddBytes
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }

        private void Form1_Load(object sender, EventArgs e)
        {

        }

        private void button1_Click(object sender, EventArgs e)
        {
            var file = File.OpenWrite(textBox1.Text);
            var siza = file.Seek(0, SeekOrigin.End);
            var size = Convert.ToInt32(textBox2.Text);
                decimal bite = size*1048576;
                while (siza < bite)
                {
                    siza++;
                    file.WriteByte(0);
                }
                file.Close();

            MessageBox.Show("Done !");

        }

        private void button2_Click(object sender, EventArgs e)
        {
            openFileDialog1.DefaultExt = "exe";
            openFileDialog1.Filter = "exe files (*.exe)|*.exe";
            openFileDialog1.FilterIndex = 1;
            if (openFileDialog1.ShowDialog(this) == DialogResult.OK)
            {
                textBox1.Text = string.Empty;
                textBox1.Text = openFileDialog1.FileName;
            }
        }

        private void openFileDialog1_FileOk(object sender, CancelEventArgs e)
        {

        }

    }
}
Credits goes to t0fx. Enjoy. 👍
thx very much :) .
No problem. Enjoy it. 🙂
thanks for the credits ^^
What does it do ?
(Jul 7, 2009 08:01 AM)Xx1232shooterxX Wrote:  What does it do ?

It makes a file bigger by adding bytes ;-)
(Jul 7, 2009 08:09 AM)Kolabi Wrote:  It makes a file bigger by adding bytes ;-)
oh, thanks.
(Jul 7, 2009 04:11 PM)Apple Wrote:  Format looks like C#

that's why the post is called
Quote:[C#] Exe Pumper [Source]

(Jul 7, 2009 07:54 AM)t0fx Wrote:  thanks for the credits ^^

No problem 🤗
(Sep 17, 2009 10:06 PM)WarlockSyno Wrote:  Is there a way you could convert this to VB.NET?
I've seen this code:

http://www.leetcoders.org/showthread.php...93#pid4593


But it just makes a big mess and results in a big error.

ever heard of google?

http://www.developerfusion.com/tools/con...arp-to-vb/
(Sep 17, 2009 10:11 PM)WarlockSyno Wrote:  I did that dumb ass. It's the same thing.

lol

u must be some kinda retard if u cant get that working...

just fucking create a new project and the controls that the code requires then copy the fucking mehtod body from the converted code and paste it inside appropriate methdos that handles the buttons click event...if dont work then post THE ERRORS....
(Sep 17, 2009 10:42 PM)WarlockSyno Wrote:  In English? I'm pretty sure, "if dont work", isn't right. 😁
Yea. I did that. Does ABSOLUTELY NOTHING. There isn't any errors. Just, nothing.

it will do nothing, if the number you set for a size is lower than the actual size.
(Sep 18, 2009 02:02 AM)Eprouvez Wrote:  Got it working, thanks.

Btw, I'm pretty sure this post is in the wrong section? Lol.

nope. vb.net is (almost) the same as c#.
Thanks dude! thanks for sharing the code to!
Is this C# or VB.net?


Possibly Related Threads...
Thread / Author Replies Views Last Post
[C#] by DaHaxorAug 11, 2015 11:43 PM 15 977 Aug 11, 2015 11:43 PM
Last Post: Geekie
[.NET] by nathan72389Feb 21, 2013 07:55 AM 16 1,596 Feb 21, 2013 07:55 AM
Last Post: Thy Shade
[.NET] by spartanier7777Jan 24, 2013 03:23 PM 64 9,723 Jan 24, 2013 03:23 PM
Last Post: wοrlockt