ColdFusion
Would you like to react to this message? Create an account in a few clicks or log in to continue.


Cold Fusion Fuse to the max
 
HomePortalLatest imagesSearchRegisterLog in

 

 Adding a login system to your hacks!

Go down 
3 posters
AuthorMessage
Admin
Admin



Posts : 217
Join date : 2010-07-03

Adding a login system to your hacks! Empty
PostSubject: Adding a login system to your hacks!   Adding a login system to your hacks! EmptyTue Jul 06, 2010 12:25 am

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*

Well here it is, a way to make users use a DP login for your page.




Code:
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("http://digital-prodigy.com/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("WOOT YOU DID IT!");
                label3.Text = "Authorized";
                label3.ForeColor = Color.LimeGreen;
                button1.Enabled = false;
                activated = true;
            }
            else
            {
                MessageBox.Show("Failed");
                activated = false;
            }
        }

        private void Form1_Load(object sender, EventArgs e)
        {

        }
    }
}That's the complete source for the Binary. Since I didn't want to make it a function. Should be easy enough for you to figure out.

Binary Download here: http://www.mediafire.com/?acmhwunzmju
Virus Scan: http://www.virustotal.com/analisis/9...006-1276294175

Credits to Howeii on releasing sources awhile back that taught me how to use the WebRequest class. And C4Vendetta when he fixes his GUI so I can use it xD.
Back to top Go down
http://cfhacks.worldcupboard.net
xMissy




Posts : 40
Join date : 2010-07-14

Adding a login system to your hacks! Empty
PostSubject: Re: Adding a login system to your hacks!   Adding a login system to your hacks! EmptySat Jul 17, 2010 5:24 am

wow hacking is confusing
Back to top Go down
Justin




Posts : 80
Join date : 2010-07-12
Location : On www.cah4xer.net.tc / www.cfhacks.tk

Adding a login system to your hacks! Empty
PostSubject: Re: Adding a login system to your hacks!   Adding a login system to your hacks! EmptySat Jul 17, 2010 1:18 pm

xMissy wrote:
wow hacking is confusing

ya mean codin rite
Back to top Go down
Sponsored content





Adding a login system to your hacks! Empty
PostSubject: Re: Adding a login system to your hacks!   Adding a login system to your hacks! Empty

Back to top Go down
 
Adding a login system to your hacks!
Back to top 
Page 1 of 1
 Similar topics
-
» Our login screen

Permissions in this forum:You cannot reply to topics in this forum
ColdFusion :: Coding :: C#-
Jump to: