09-23-2013, 01:37 AM
hey there is a very smal source of an tool i made to quick chekc psc cards, i dont upload the complete tool bc then ppl will say i try to steal there psc card numbers.... u know waht i mean.
ok first of all we start a new WindowsFormsApplication project
what do we need?
2 Buttons
5 TextBoxes
2 Label
1 pictureBox
you can place them already on the form and name them like this:
button 1: bt_refresh
button 2: button_check
textbox 1: tb_pin1
textbox 2: tb_pin2
textbox 3: tb_pin3
textbox 4: tb_pin4
textbox 5: tb_capt
lable 1: label1 ( text = Result : )
lable 2: label_psc
pictureBox 1: pictureBox_captcha
here is the fully source of the tool its all waht u need
namespace PSC_Check
{
public partial class Form1 : Form
{
public static string URL = "https://www.paysafecard.com/en-us/check-balance/";
WebBrowser browser = new WebBrowser();
public Form1()
{
InitializeComponent();
browser.DocumentCompleted += new WebBrowserDocumentCompletedEventHandler(webBrowser_DocumentCompleted);
Start();
}
private void Start()
{
browser.ScriptErrorsSuppressed = true;
browser.Navigate(URL);
}
private void button_check_Click(object sender, EventArgs e)
{
browser.Document.GetElementById("cardnumber0").SetAttribute("value", tb_pin1.Text.Trim());
browser.Document.GetElementById("cardnumber1").SetAttribute("value", tb_pin2.Text.Trim());
browser.Document.GetElementById("cardnumber2").SetAttribute("value", tb_pin3.Text.Trim());
browser.Document.GetElementById("cardnumber3").SetAttribute("value", tb_pin4.Text.Trim());
browser.Document.GetElementById("captcha").SetAttribute("value", tb_capt.Text.Trim());
browser.Document.GetElementById("balacecheck_desktop_submit").InvokeMember("click");
}
private void bt_refresh_Click(object sender, EventArgs e)
{
Start();
}
private void webBrowser_DocumentCompleted(object sender, WebBrowserDocumentCompletedEventArgs e)
{
label_psc.Text = "";
if (browser.DocumentText.Contains("Your paysafecard credit: EUR") || browser.DocumentText.Contains("Guthaben deiner paysafecard: EUR"))
{
int index = browser.DocumentText.IndexOf("Your paysafecard credit: EUR", 0) + "Your paysafecard credit: EUR".Length;
label_psc.Text = "Your paysafecard credit: EUR " + browser.DocumentText.Substring(index + 1, 6);
}
if (browser.DocumentText.Contains("Die eingegebene Zahlenkombination stimmt nicht mit dem Captcha") || browser.DocumentText.Contains("The numbers you entered do not match the CAPTCHA"))
{
label_psc.Text = "The numbers you entered do not\n match the CAPTCHA!";
}
if (browser.DocumentText.Contains("The full amount of credit on this paysafecard is still available."))
{
label_psc.Text = "The full amount of credit on this\n paysafecard is still available.";
}
if (browser.DocumentText.Contains("The paysafecard PIN you entered has not been recognised. Please check your entry."))
{
label_psc.Text = "The paysafecard PIN you entered\n has not been recognised.\n Please check your entry.";
}
int i = 0;
while (true)
{
Application.DoEvents();
try
{
int count = browser.Document.Images.Count;
IHTMLDocument2 doc = (IHTMLDocument2)browser.Document.DomDocument;
IHTMLControlRange imgRange = (IHTMLControlRange)((HTMLBody)doc.body).createControlRange();
foreach (IHTMLImgElement img in doc.images)
{
if (i == 2)
{
imgRange.add((IHTMLControlElement)img);
imgRange.execCommand("Copy", false, null);
pictureBox_captcha.Image = (Bitmap)Clipboard.GetDataObject().GetData(DataFormats.Bitmap);
}
i++;
}
break;
}
catch
{
}
}
}
}
}
there probaly bether ways but this one works to

this can be done in C# console application to if wishes are there i can release the code for it.
good luck and have fun

