Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > .NET Languages
You last visited: Today at 10:27

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



vb.net captcha Übernahme/Umgehung

Discussion on vb.net captcha Übernahme/Umgehung within the .NET Languages forum part of the Coders Den category.

Reply
 
Old   #1
 
MaBarker's Avatar
 
elite*gold: 274
Join Date: Jun 2012
Posts: 4,523
Received Thanks: 434
vb.net captcha Übernahme/Umgehung

Hallo,
Ich arbeite gerade an einem Programm wo ich ein Captcha übergeben muss.
Also ich muss entweder das Captcha in mein Programm übergeben oder generell das Captcha umgehen.

Ich krieg das nicht wirklich hin und nach langer suche frag ich hier einfach mal.



Ps. Ja ich habe schon lange die SuFu bzw. google benutzt.
MaBarker is offline  
Old 07/05/2014, 19:30   #2
 
tolio's Avatar
 
elite*gold: 2932
The Black Market: 169/1/0
Join Date: Oct 2009
Posts: 6,966
Received Thanks: 1,097
http verstehen!

seite requesten
captcha requesten
captcha lösen (hand/anticaptcha/whatever)
nächsten request abschicken
tolio is offline  
Thanks
2 Users
Old 07/06/2014, 20:46   #3
 
elite*gold: 50
Join Date: May 2014
Posts: 562
Received Thanks: 47
Quote:
Originally Posted by tolio View Post
http verstehen!

seite requesten
captcha requesten
captcha lösen (hand/anticaptcha/whatever)
nächsten request abschicken
Genau, jetzt google alles einzeln nach und sollteste hinkriegen.
Tirmon is offline  
Thanks
2 Users
Old 07/10/2014, 21:29   #4
 
elite*gold: 0
Join Date: Feb 2013
Posts: 62
Received Thanks: 5
Es gibt auch nen "Noob" Weg indem man nen Web Browser in dem Programm macht, die gefragte Website aufruft und dann auf den Captcha zoomt.

Das ist zwar nicht gerade elegant, aber funktioniert, vor allem für Leute die sich noch nicht so mit VB.net/HTTP auskennen ^^
TheBeanjay is offline  
Old 07/11/2014, 13:26   #5
 
Kraizy​'s Avatar
 
elite*gold: 0
The Black Market: 471/0/0
Join Date: Apr 2010
Posts: 9,696
Received Thanks: 1,811
Quote:
Originally Posted by TheBeanjay View Post
Das ist zwar nicht gerade elegant, aber funktioniert, vor allem für Leute die sich noch nicht so mit VB.net/HTTP auskennen ^^
Erst recht, wenn man so ein "Noob" ist, sollte man sich nicht so nen scheiß aneignen, sondern es schon von Anfang an richtig lernen und umsetzen. Wer mit der Ausrede kommt "ich machs auf die "einfache" Art und scheiß drauf, dass ich puren Mist hinklatsche, weil ich zu faul bin es richtig zu lernen" sollte das Programmieren gleich sein lassen.
Kraizy​ is offline  
Thanks
3 Users
Old 07/11/2014, 15:52   #6
 
elite*gold: 0
Join Date: Jun 2014
Posts: 43
Received Thanks: 14
Ich nutze den Service von

Mir geht es vorallem um die Google Captchas, da kosten hier keine Rolle spielen nutze ich den obigen Service.

Hab dir mal meinen Code unten angefügt. Eventuell hilft dir der weiter.

Winform Aufbau:



Winform Code:
Code:
    public partial class CaptchaWindow : Form
    {
        string _captchaText;
        Bitmap _captchaImage;
        string _captchaPath;

        public string CaptchaText
        {
            get { return _captchaText; }
            private set { _captchaText = value; }
        }

        public CaptchaWindow(Bitmap captchaimage)
        {
            InitializeComponent();
            _captchaImage = captchaimage;
            this.pb_captcha.Image = _captchaImage;

            timer_autoClose.Enabled = true; //Close Timer starten
            
            //Image speichern
            try
            {
                _captchaPath = System.IO.Path.GetTempPath() + Guid.NewGuid() + ".bmp";  //Captcha Pfad speichern
                _captchaImage.Save(_captchaPath);           //Captcha im temporären Ordner speichern
                thread_captchaservice.RunWorkerAsync();     //Captcha Service starten
            }
            catch (Exception)
            {
               
            }

            //Guthaben abfragen
            try
            {
                lbl_credits.Text = "CS:" + _9kw.getCredits();
            }
            catch (Exception) { }
        }

        private void btn_send_Click(object sender, EventArgs e)
        {
            if (thread_captchaservice.IsBusy && !thread_captchaservice.CancellationPending)
            {
                thread_captchaservice.CancelAsync();
            }

            CaptchaText = tb_inputcaptcha.Text.Trim();
            this.DialogResult = System.Windows.Forms.DialogResult.OK;
        }

        private void btn_cancel_Click(object sender, EventArgs e)
        {
            if (thread_captchaservice.IsBusy && !thread_captchaservice.CancellationPending)
            {
                thread_captchaservice.CancelAsync();
            }

            this.DialogResult = System.Windows.Forms.DialogResult.Cancel;
        }

        private void tb_inputcaptcha_KeyDown(object sender, KeyEventArgs e)
        {
            if (thread_captchaservice.IsBusy && !thread_captchaservice.CancellationPending)
            {
                thread_captchaservice.CancelAsync();
            }

            if (e.KeyCode == Keys.Enter)
            {
                btn_send.PerformClick();
            }
        }

        private void timer_autoClose_Tick(object sender, EventArgs e)
        {
            btn_send.PerformClick();
        }

        private void thread_captchaservice_DoWork(object sender, DoWorkEventArgs e)
        {
            CheckForIllegalCrossThreadCalls = false;

            for (int i = 30; i >= 0; i--)
            {
                if (thread_captchaservice.CancellationPending)
                {
                    e.Cancel = true;
                    return;
                }
                
                lbl_message.Text = "Auto Solver in " + i + "s";
                Thread.Sleep(1000);
            }
            lbl_message.Text = "Auto Solver AKTIV";

            string code = _9kw.getCaptchaCode(_captchaPath);
            e.Result = code;
        }

        private void thread_captchaservice_RunWorkerCompleted(object sender, RunWorkerCompletedEventArgs e)
        {
            try
            {
                File.Delete(_captchaPath); //Captcha Bild löschen
            }
            catch (Exception) { }

            if (!e.Cancelled)
            {
                if (e.Result != null)
                {
                    tb_inputcaptcha.Text = (string)e.Result; //Code in Textbox eintragen
                    btn_send.PerformClick(); //Captcha absenden
                }
            }
        }

        private void CaptchaWindow_FormClosed(object sender, FormClosedEventArgs e)
        {
            if (thread_captchaservice.IsBusy && !thread_captchaservice.CancellationPending)
            {
                thread_captchaservice.CancelAsync();
            }
        }
9kw Klasse:
Code:
class _9kw
    {        
        private const string Globalname = "";        
        public static string APIKey;
        public static int Debug;

        public static string CaptchaID;

        static _9kw()
        {
            APIKey = "";
            Debug = 0;
        }

        public static void successCaptchaResponsoe(bool success)
        {
            if (CaptchaID != null)
            {
                if (success)
                {
                    // Captcha richtig
                    get_9kw_api("usercaptchacorrectback&id=" + CaptchaID + "&correct=1");
                }
                else
                {
                    // Captcha falsch
                    get_9kw_api("usercaptchacorrectback&id=" + CaptchaID + "&correct=2");
                }

                CaptchaID = null;
            }
        }

        public static string getCaptchaCode(string image)
        {
            //Captcha einreichen
            CaptchaID = get_9kw_api_upload(image);
            
            Regex myRegexDigit = new Regex("^[0-9]+$", RegexOptions.IgnoreCase);
            if ((myRegexDigit.IsMatch(CaptchaID)))
            {
                int wait = 5;
                System.Threading.Thread.Sleep(new TimeSpan(0, 0, wait));
                for (int i = 1; i < 100; i++)
                {
                    string checkdata = get_9kw_api("usercaptchacorrectdata&id=" + CaptchaID);
                    if (checkdata.Length != 0)
                    {
                        return checkdata;
                    }
                    System.Threading.Thread.Sleep(new TimeSpan(0, 0, 1));
                    System.Threading.Thread.Sleep(new TimeSpan(0, 0, 1));
                    System.Threading.Thread.Sleep(new TimeSpan(0, 0, 1));
                }
            }

            return "";
        }

        public static string getCredits()
        {
            string guthaben = get_9kw_api("usercaptchaguthaben");
            return guthaben;
        }

        private static string get_9kw_api(string data)
        {
            return get_9kw_http("http://www.9kw.eu/index.cgi?source=csapi&debug=" + Debug + "&apikey=" + APIKey + "&action=" + data);
        }

        private static string get_9kw_api_upload(string data)
        {
            HttpClient client = new HttpClient();
            HttpPost postMethod = new HttpPost(new Uri("http://www.9kw.eu/index.cgi"));

            MultipartEntity multipartEntity = new MultipartEntity();
            postMethod.Entity = multipartEntity;

            StringBody stringBody = new StringBody(Encoding.UTF8, "apikey", APIKey);
            multipartEntity.AddBody(stringBody);

            StringBody stringBody3 = new StringBody(Encoding.UTF8, "source", "csapi");
            multipartEntity.AddBody(stringBody3);

            StringBody stringBody2 = new StringBody(Encoding.UTF8, "action", "usercaptchaupload");
            multipartEntity.AddBody(stringBody2);

            StringBody stringBody4 = new StringBody(Encoding.UTF8, "captchaperhour", "9999");
            multipartEntity.AddBody(stringBody4);

            FileInfo fileInfo = new FileInfo(@data);
            FileBody fileBody = new FileBody("file-upload-01", data, fileInfo);            
            multipartEntity.AddBody(fileBody);

            HttpResponse response = client.Execute(postMethod);
            return EntityUtils.ToString(response.Entity);
        }

        private static string get_9kw_http(string url)
        {
            HttpClient httpClient = new HttpClient();
            HttpGet httpGet = new HttpGet(new Uri(url));
            HttpResponse httpResponse = httpClient.Execute(httpGet);//httpResponse.ResponseCode
            return EntityUtils.ToString(httpResponse.Entity);
        }
SIEЯRA is offline  
Thanks
2 Users
Reply


Similar Threads Similar Threads
Automatische Captcha Eingabe Arcor Bot ( Kein Captcha )
07/23/2013 - elite*gold Trading - 83 Replies
Ich biete hier ein Programm an, welches das Captcha des Arcor Bottes liest und Automatisch einfügt :) So funktioniert es :) (Video) Automatische Captcha Eingabe Arcor Bot - YouTube So sieht alles aus :) Lizenz - Login http://i.epvpimg.com/s1OJg.png
Account übernahme??????
05/30/2012 - WarRock - 6 Replies
So nun mal bitte wer hat eine GENAUE beschreibung ob und wie der Account übernommen wird. Muss man bei Nexon einen neuen Account erstellen oder sowas um seinen von Gamersfirst zu übernehmen? Bitte Bitte keine Spekulation sondern Fakten Danke!!
Übernahme eines Stickys
09/24/2011 - WarRock - 17 Replies
Servus Community, da der User .Reality' mir persönlich mitgeteilt hat, dass er für seinen Sticky with Status - Daily Update nicht mehr genügend Zeit hat, suchen wir beide hier einen kompetenten User, der diesen übernehmen möchte. Folgende Eigenschaften solltest Du haben, wenn Du den Sticky übernehmen willst: eine ausreichende Aktivität einige Kenntnisse über Bots etc. die Möglichkeit sicherzustellen, dass keine Viren in den Bots sind Geduld und Führungsqualitäten
Thread übernahme
04/08/2011 - Combat Arms - 2 Replies
Liebe Mods, da ich Chico™. jetzt gebannt bin, möchte ich meinen Thread übernehmen!. Außerdem werde ich mich jetzt an alle Regeln halten, welche Regeln weiß ich und welche habe ich gebrochen, Doppelpost = 3 mal xD Push = 1 mal epic fail = 0 in trading section posten, obwohl ich nix will xD Signature zu groß = 1 OMG!! Thanks Pushing = Angeblich^^ Pushen Elite gold Area: alle 4 h! Pushen sonstiges bm: 24 h !



All times are GMT +1. The time now is 10:27.


Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2026 elitepvpers All Rights Reserved.