Cold Fusion Fuse to the max
 
HomePortalCalendarFAQSearchMemberlistUsergroupsRegisterLog in

Share | 
 

 Adding a login system to your hacks!

Go down 
AuthorMessage
Admin
Admin


Posts : 217
Join date : 2010-07-03

PostSubject: Adding a login system to your hacks!   Tue 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: 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
View user profile http://cfhacks.worldcupboard.net
xMissy



Posts : 40
Join date : 2010-07-14

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

wow hacking is confusing
Back to top Go down
View user profile
Justin



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

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

xMissy wrote:
wow hacking is confusing

ya mean codin rite

_________________
Ever wanted to be awesome? you can be awesome today for free! (no you cant) Press the Thanx button!





Made by Me =P ^.^
Back to top Go down
View user profile
Sponsored content




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

Back to top Go down
 
Adding a login system to your hacks!
Back to top 
Page 1 of 1
 Similar topics
-
» Electronic Filing and Payment System
» Spectroscopy of the HR 8799 system
» Discovery of a very cool brown dwarf amongst the ten nearest stars to the Solar System
» ~~~~DEPEND ON CHRIST NOT WORLD SYSTEM
» Jinggoy wants to probe DOTC's P4B contract for air traffic control system

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