Hack Forums
[C#] [C#] Exe Pumper [Source] - 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#] [C#] Exe Pumper [Source] (/showthread.php?tid=98291)

Pages: Pages 1 2


[C#] Exe Pumper [Source] - Farhan879 - Jul 4, 2009

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. πŸ‘


- PwNaGeβ„’ - Jul 4, 2009

thx very much :) .


- Farhan879 - Jul 5, 2009

No problem. Enjoy it. πŸ™‚


- t0fx - Jul 7, 2009

thanks for the credits ^^


- Xx1232shooterxX - Jul 7, 2009

What does it do ?


- Kolabi - Jul 7, 2009

(Jul 7, 2009 08:01 AM)1232shooter Wrote:  What does it do ?

It makes a file bigger by adding bytes ;-)


- Xx1232shooterxX - Jul 7, 2009

(Jul 7, 2009 08:09 AM)Kolabi Wrote:  It makes a file bigger by adding bytes ;-)
oh, thanks.


- Apple - Jul 7, 2009

Format looks like C#


- t0fx - Jul 7, 2009

(Jul 7, 2009 04:11 PM)GizSho Wrote:  Format looks like C#

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




- Farhan879 - Jul 8, 2009

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

No problem πŸ€—


* - WarlockSyno - Sep 17, 2009

Is there a way you could convert this to VB.NET?
I've seen this code:

http://www.leetcoders.org/showthread.php?tid=749&pid=4593#pid4593


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


* - staticVoid - Sep 17, 2009

(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?tid=749&pid=4593#pid4593


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

ever heard of google?

http://www.developerfusion.com/tools/convert/csharp-to-vb/


* - WarlockSyno - Sep 17, 2009

(Sep 17, 2009 10:07 PM)staticVoid Wrote:  ever heard of google?

http://www.developerfusion.com/tools/convert/csharp-to-vb/

I did that dumb ass. It's the same thing.


* - staticVoid - Sep 17, 2009

(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....


* - WarlockSyno - Sep 17, 2009

(Sep 17, 2009 10:35 PM)staticVoid Wrote:  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....

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.