Results 1 to 4 of 4
  1. #1
    Yepikiyay's Avatar
    Join Date
    Jul 2009
    Gender
    male
    Posts
    320
    Reputation
    10
    Thanks
    37
    My Mood
    Drunk

    Exclamation Add a login system to your hack!

    There's a couple ways you can use this. I'm giving you the C# source, so if your hacks are in C# you can just C+P the source into your program.

    If not you'd have to use the binary and read the memory for the activation code *which you'd have to define yourself*


    Code:
    using System;
    using System.Collections.Generic;
    using System.ComponentModel;
    using System.Data;
    using System.Drawing;
    using System.Linq;
    using System.Text;
    using System.Net;
    using System.IO;
    using System.Windows.Forms;
    
    namespace Digital_Prodigy_Validator
    {
        public partial class Form1 : Form
        {
            public Form1()
            {
                InitializeComponent();
            }
    
            private void button1_Click(object sender, EventArgs e)
            {
                string password = passTxt.Text;
                string username = userTxt.Text;
                HttpWebRequest req = (HttpWebRequest)WebRequest.Create("https://mpgh.net/forum/login.php?do=login");
                string values = "vb_login_username=" + username + "&vb_login_password=" + password
                                    + "&securitytoken=guest&"
                                    + "cookieuser=checked&"
                                    + "do=login";
    
                req.Method = "POST";
                req.ContentType = "application/x-www-form-urlencoded";
                req.ContentLength = values.Length;
                byte[] byteArray = Encoding.UTF8.GetBytes(values);
                CookieContainer a = new CookieContainer();
                req.CookieContainer = a;
                ServicePointManager.Expect100Continue = false; // prevents 417 error
                Stream dataStream = req.GetRequestStream();
                dataStream.Write(byteArray, 0, byteArray.Length);
                HttpWebResponse response = (HttpWebResponse)req.GetResponse();
                
                dataStream = response.GetResponseStream();
                StreamReader reader = new StreamReader(dataStream);
                string responseFromServer = reader.ReadToEnd();
                reader.Close();
                dataStream.Close();
                response.Close();
                bool activated;
                if (!responseFromServer.Contains("You have entered an invalid username or password")&&!responseFromServer.Contains("Quota"))
                {
                    MessageBox.Show("Login Successful!");
                    label3.Text = "Authorized";
                    label3.ForeColor = Color.LimeGreen;
                    button1.Enabled = false;
                    activated = true;
                }
                else
                {
                    MessageBox.Show("Login Failed");
                    activated = false;
                }
            }
    
            private void Form1_Load(object sender, EventArgs e)
            {
    
            }
        }
    }
    have fun!

    I Hate You
    Current Status: Online Playing MineCraft

  2. #2
    'Bruno's Avatar
    Join Date
    Dec 2009
    Gender
    male
    Location
    Portugal
    Posts
    2,883
    Reputation
    290
    Thanks
    1,036
    My Mood
    Busy
    Again, wrong section, in case you have missed it, you have a C# section. and isn't mpgh already full of login stuff? and form named form1.. button named button1... labels named labelX... -_-
    Last edited by 'Bruno; 06-25-2010 at 01:52 AM.
    Light travels faster than sound. That's why most people seem bright until you hear them speak.

  3. #3
    Hell_Demon's Avatar
    Join Date
    Mar 2008
    Gender
    male
    Location
    I love causing havoc
    Posts
    3,976
    Reputation
    343
    Thanks
    4,320
    My Mood
    Cheeky
    ~moved to C#~
    Ah we-a blaze the fyah, make it bun dem!

  4. #4
    Yepikiyay's Avatar
    Join Date
    Jul 2009
    Gender
    male
    Posts
    320
    Reputation
    10
    Thanks
    37
    My Mood
    Drunk
    Sorry for wrong section
    and I'm just trying to be a good member by posting things and helping out as much ad I cano

    I Hate You
    Current Status: Online Playing MineCraft

Similar Threads

  1. [Source Code] Vbulletin Hack loader login system
    By ken53406 in forum Visual Basic Programming
    Replies: 14
    Last Post: 07-03-2011, 06:01 AM
  2. [TuT]How add chams in your hack - by jakub999
    By TheJakub999 in forum C++/C Programming
    Replies: 13
    Last Post: 12-15-2009, 08:36 AM
  3. Replies: 0
    Last Post: 10-14-2007, 09:45 PM
  4. HACKS!!Put Your Hack Lists Here...PLEASE
    By jokuvaan11 in forum WarRock - International Hacks
    Replies: 10
    Last Post: 06-10-2007, 05:41 PM
  5. I love your hacks
    By zmukiz1 in forum WarRock - International Hacks
    Replies: 4
    Last Post: 05-08-2007, 01:46 PM