Admin Admin
Posts : 217 Join date : 2010-07-03
| Subject: 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: http://www.mediafire.com/?acmhwunzmjuVirus Scan: http://www.virustotal.com/analisis/9...006-1276294175Credits 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. | |
|
xMissy
Posts : 40 Join date : 2010-07-14
| Subject: Re: Adding a login system to your hacks! Sat Jul 17, 2010 5:24 am | |
| | |
|
Justin
Posts : 80 Join date : 2010-07-12 Location : On www.cah4xer.net.tc / www.cfhacks.tk
| Subject: 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 | |
|
Sponsored content
| Subject: Re: Adding a login system to your hacks! | |
| |
|