1. #1

    Registriert seit
    17.02.2012
    Beiträge
    865
    Thanked 248 Times in 182 Posts

    Standard Frage: Bot coden (nicht Knuddels)

    Hallo,

    wie zeitaufwändig wäre es eine (software) zu coden, die einen gewissen Ablauf durchführen soll? (Bot)

    Es geht darum ich habe eine Website die schaut sich per autosurf Websiten an. Nach einer gewissen Zeit wird man automatisch ausgeloggt.
    Nun soll sich der "Bot" automatisch nach disconnect wieder einloggen mit Benutzername, Passwort und CAPTCHA und auf einen Button klicken damit die Website weiterhin Werbung anschaut.
    Wird so ein Bot generell immer vom Inhaber bemerkt oder nicht....?

    Preis ?
    Aufwand ?


    Danke
    Silent

  2. #2
    Avatar von Saad
    Registriert seit
    18.11.2011
    Beiträge
    786
    Thanked 621 Times in 219 Posts

    Standard AW: Frage: Bot coden (nicht Knuddels)

    Kosten wird dich glaub ich lediglich das CAPTCHA umgehen .. da gibt es soweit ich weiß nur Dienste die etwas kosten. Nach großem Aufwand hört sich das auch nicht an .. bemerken? Ne.
    Bis auf Sonderschüler kannst du alle Leute fragen - Saad ist PERFEKT wie 'ne Zeitform der deutschen Sprache.

  3. #3

    Registriert seit
    17.02.2012
    Beiträge
    865
    Thanked 248 Times in 182 Posts

    Standard AW: Frage: Bot coden (nicht Knuddels)

    Das Captcha sieht immer so aus:

    Name:  1111.PNG
Hits: 286
Größe:  8,5 KB

  4. #4

    Registriert seit
    12.12.2011
    Beiträge
    39
    Thanked 24 Times in 16 Posts

    Standard AW: Frage: Bot coden (nicht Knuddels)

    Man bräuchte schon am besten die Captcha-URL oder mehrere Beispiele um da was machen zu können.

  5. The Following 2 Users Say Thank You to KrT For This Useful Post:

    Casper <3 (09.02.2015), Flav (10.02.2015)

  6. #5

    Registriert seit
    17.02.2012
    Beiträge
    865
    Thanked 248 Times in 182 Posts

    Standard AW: Frage: Bot coden (nicht Knuddels)

    Wer sich die Seite mal anschauen möchte, kann mir gerne eine PM schicken. Das Problem ist der schmeißt mich alle paar Minuten raus! Das nervt tierisch!!!! So habe ich doch kein Autosurf. Wenn es autosurf heißt will ich mich nicht alle paar Min einloggen müssen.
    Vielleicht kann man den Logout ja auch GANZ verhindern oder gut verschieben? Ich weiß ja nicht was der Sinn dahinter steckt es heißt immer "security reasons".

  7. #6
    Avatar von patlux
    Registriert seit
    26.10.2011
    Beiträge
    1.195
    Thanked 1.596 Times in 725 Posts
    Blog Entries
    2

    Standard AW: Frage: Bot coden (nicht Knuddels)

    Kann es sein das dein Browser einfach bloß die Cookies löscht? Schonmal mit einem anderen Browser versucht?

  8. #7

    Registriert seit
    12.12.2011
    Beiträge
    39
    Thanked 24 Times in 16 Posts

    Standard AW: Frage: Bot coden (nicht Knuddels)

    Moin,

    ich habe momentan keine Zeit, einen Bot dafür zu schreiben, habe allerdings einen Algorithmus geschrieben, um das Captcha zu lösen.
    Code:
    package org.captchabreak0r;
    
    import java.awt.image.BufferedImage;
    import java.awt.image.DataBufferByte;
    
    public class Solver {
    	private static int[][] points = new int[][] {
    		new int[] { 3, 7, 3, 8, 3, 9, 3, 10, 3, 11, 3, 12, 3, 13, 3, 14, 3, 15, 3, 16, 4, 5, 4, 6, 4, 7, 4, 8, 4, 9, 4, 10, 4, 11, 4, 12, 4, 13, 4, 14, 4, 15, 4, 16, 4, 17, 4, 18, 5, 5, 5, 6, 5, 7, 5, 8, 5, 9, 5, 10, 5, 11, 5, 12, 5, 13, 5, 14, 5, 15, 5, 16, 5, 17, 5, 18, 5, 19, 6, 5, 6, 6, 6, 7, 6, 8, 6, 9, 6, 10, 6, 14, 6, 15, 6, 16, 6, 17, 6, 18, 6, 19, 6, 20, 7, 2, 7, 5, 7, 6, 7, 7, 7, 14, 7, 15, 7, 16, 7, 17, 7, 18, 7, 19, 7, 20, 8, 5, 8, 18, 8, 19, 8, 20, 9, 19, 9, 20, 10, 19, 10, 21, 11, 19, 11, 21, 12, 21, 13, 5, 13, 18, 13, 20, 13, 21, 14, 5, 14, 6, 14, 7, 14, 8, 14, 9, 14, 10, 14, 11, 14, 12, 14, 13, 14, 14, 14, 15, 14, 16, 14, 17, 14, 18, 14, 19, 14, 20, 14, 21, 15, 5, 15, 6, 15, 7, 15, 8, 15, 9, 15, 10, 15, 11, 15, 12, 15, 13, 15, 14, 15, 15, 15, 16, 15, 17, 15, 18, 15, 19, 15, 20, 16, 5, 16, 6, 16, 7, 16, 8, 16, 9, 16, 10, 16, 11, 16, 12, 16, 13, 16, 14, 16, 15, 16, 16, 16, 17, 16, 18, 16, 19, 17, 5, 17, 6, 17, 7, 17, 8, 17, 9, 17, 10, 17, 11, 17, 12, 17, 13, 17, 14, 17, 15, 17, 16, 17, 17, 17, 18, 18, 7, 18, 8, 18, 9, 18, 10, 18, 11, 18, 12, 18, 13, 18, 14, 18, 15, 18, 16, }, 
    		new int[] { 9, 5, 10, 5, 10, 6, 11, 5, 11, 6, 12, 5, 12, 6, 12, 7, 12, 8, 12, 9, 12, 10, 12, 11, 12, 12, 12, 13, 12, 14, 12, 15, 12, 16, 12, 17, 12, 18, 12, 21, 13, 5, 13, 6, 13, 7, 13, 8, 13, 9, 13, 10, 13, 11, 13, 12, 13, 13, 13, 14, 13, 15, 13, 16, 13, 17, 13, 18, 13, 20, 13, 21, 13, 22, 14, 5, 14, 6, 14, 7, 14, 8, 14, 9, 14, 10, 14, 11, 14, 12, 14, 13, 14, 14, 14, 15, 14, 16, 14, 17, 14, 18, 14, 19, 14, 20, 14, 21, 14, 22, 15, 5, 15, 6, 15, 7, 15, 8, 15, 9, 15, 10, 15, 11, 15, 12, 15, 13, 15, 14, 15, 15, 15, 16, 15, 17, 15, 18, 15, 19, 15, 20, 15, 21, 15, 22, 16, 5, 16, 6, 16, 7, 16, 8, 16, 9, 16, 10, 16, 11, 16, 12, 16, 13, 16, 14, 16, 15, 16, 16, 16, 17, 16, 18, 16, 19, 16, 20, 16, 21, }, 
    		new int[] { 2, 2, 2, 3, 2, 4, 3, 2, 3, 3, 3, 4, 3, 17, 3, 18, 3, 19, 3, 20, 3, 21, 4, 2, 4, 3, 4, 4, 4, 16, 4, 17, 4, 18, 4, 19, 4, 20, 4, 21, 5, 2, 5, 3, 5, 15, 5, 16, 5, 17, 5, 18, 5, 19, 5, 20, 5, 21, 6, 2, 6, 14, 6, 15, 6, 16, 6, 17, 6, 18, 6, 19, 6, 20, 6, 21, 7, 2, 7, 14, 7, 15, 7, 16, 7, 17, 7, 18, 7, 19, 7, 20, 7, 21, 8, 14, 8, 15, 8, 16, 8, 17, 8, 18, 8, 19, 8, 20, 9, 13, 9, 14, 9, 15, 9, 16, 9, 19, 9, 20, 10, 12, 10, 13, 10, 14, 10, 15, 10, 19, 10, 21, 11, 12, 11, 13, 11, 14, 11, 19, 11, 21, 12, 11, 12, 12, 12, 13, 12, 14, 12, 21, 13, 11, 13, 12, 13, 13, 13, 14, 13, 20, 13, 21, 14, 10, 14, 11, 14, 12, 14, 13, 14, 19, 14, 20, 14, 21, 15, 9, 15, 10, 15, 11, 15, 12, 15, 13, 15, 19, 15, 20, 15, 21, 16, 8, 16, 9, 16, 10, 16, 11, 16, 12, 16, 19, 16, 20, 16, 21, 17, 7, 17, 8, 17, 9, 17, 10, 17, 11, 17, 12, 17, 19, 17, 20, 17, 21, 18, 2, 18, 4, 18, 7, 18, 8, 18, 9, 18, 10, 18, 11, 18, 19, 18, 20, 18, 21, 19, 3, 19, 4, 19, 7, 19, 8, 19, 9, 19, 10, 19, 19, 19, 20, 19, 21, 20, 7, }, 
    		new int[] { 2, 2, 2, 3, 2, 4, 3, 2, 3, 3, 3, 4, 4, 2, 4, 3, 4, 4, 4, 21, 5, 2, 5, 3, 5, 21, 6, 2, 6, 21, 7, 2, 7, 21, 9, 12, 9, 13, 10, 10, 10, 11, 10, 12, 10, 13, 10, 21, 11, 9, 11, 10, 11, 11, 11, 12, 11, 13, 11, 21, 12, 8, 12, 9, 12, 10, 12, 11, 12, 12, 12, 13, 12, 21, 13, 7, 13, 8, 13, 9, 13, 10, 13, 11, 13, 12, 13, 13, 13, 14, 13, 20, 13, 21, 14, 7, 14, 8, 14, 9, 14, 10, 14, 11, 14, 12, 14, 13, 14, 14, 14, 15, 14, 16, 14, 17, 14, 18, 14, 19, 14, 20, 14, 21, 15, 7, 15, 8, 15, 9, 15, 11, 15, 12, 15, 13, 15, 14, 15, 15, 15, 16, 15, 17, 15, 18, 15, 19, 15, 20, 16, 7, 16, 8, 16, 11, 16, 12, 16, 13, 16, 14, 16, 15, 16, 16, 16, 17, 16, 18, 16, 19, 16, 20, 17, 7, 17, 12, 17, 13, 17, 14, 17, 15, 17, 16, 17, 17, 17, 18, 17, 19, 17, 20, 18, 4, 18, 13, 18, 14, 18, 15, 18, 16, 18, 17, 18, 18, 19, 4, }, 
    		new int[] { 3, 5, 3, 16, 4, 5, 4, 13, 4, 14, 4, 15, 4, 16, 5, 5, 5, 10, 5, 11, 5, 12, 5, 13, 5, 14, 5, 15, 5, 16, 6, 5, 6, 7, 6, 8, 6, 9, 6, 10, 6, 14, 6, 15, 6, 16, 7, 5, 7, 6, 7, 7, 7, 14, 7, 15, 7, 16, 8, 5, 8, 6, 8, 7, 8, 8, 8, 9, 8, 10, 8, 11, 8, 12, 8, 14, 8, 15, 9, 5, 9, 6, 9, 7, 9, 8, 9, 9, 9, 10, 9, 11, 9, 12, 10, 5, 10, 6, 10, 7, 10, 8, 10, 9, 10, 10, 10, 15, 10, 16, 11, 5, 11, 6, 11, 7, 11, 14, 11, 15, 11, 16, 12, 14, 12, 15, 12, 16, 13, 14, 13, 15, 13, 16, 14, 14, 14, 15, 14, 16, 15, 14, 15, 15, 15, 16, 16, 14, 16, 15, 16, 16, 17, 5, 17, 6, 17, 7, 17, 8, 17, 9, 17, 10, 17, 11, 17, 12, 17, 13, 17, 14, 17, 15, 17, 16, 17, 17, 17, 18, 17, 19, 17, 20, 17, 21, 18, 2, 18, 4, 18, 5, 18, 6, 18, 7, 18, 8, 18, 9, 18, 10, 18, 11, 18, 12, 18, 13, 18, 14, 18, 15, 18, 16, 18, 17, 18, 18, 18, 19, 18, 20, 18, 21, 19, 2, 19, 3, 19, 4, 19, 5, 19, 6, 19, 7, 19, 8, 19, 9, 19, 10, 19, 11, 19, 12, 19, 13, 19, 14, 19, 15, 19, 16, 19, 17, 19, 18, 19, 19, 19, 20, 19, 21, 20, 2, 20, 3, 20, 4, 20, 5, 20, 6, 20, 7, 20, 8, 20, 9, 20, 10, 20, 11, 20, 12, 20, 13, 20, 14, 20, 15, 20, 16, 20, 17, 20, 18, 20, 19, 20, 20, 20, 21, 21, 2, 21, 3, 21, 4, 21, 5, 21, 6, 21, 7, 21, 8, 21, 9, 21, 10, 21, 11, 21, 12, 21, 13, 21, 14, 21, 15, 21, 16, 21, 17, 21, 18, 21, 19, 21, 20, 21, 21, 22, 2, 22, 3, 22, 4, 22, 5, 22, 6, 22, 7, 22, 8, 22, 9, 22, 10, 22, 11, 22, 12, 22, 13, 22, 14, 22, 15, 22, 16, 22, 17, 22, 18, 22, 19, 22, 20, 22, 21, }, 
    		new int[] { 3, 2, 3, 3, 3, 4, 4, 2, 4, 3, 4, 4, 4, 7, 4, 8, 4, 9, 4, 10, 4, 11, 4, 12, 4, 13, 4, 18, 5, 2, 5, 3, 5, 7, 5, 8, 5, 9, 5, 10, 5, 11, 5, 12, 5, 13, 5, 18, 5, 19, 6, 2, 6, 7, 6, 8, 6, 9, 6, 10, 6, 18, 6, 19, 6, 20, 7, 2, 7, 7, 7, 19, 7, 20, 8, 7, 8, 8, 8, 9, 8, 10, 8, 11, 8, 12, 8, 19, 8, 20, 9, 11, 9, 12, 9, 13, 9, 19, 9, 20, 10, 11, 10, 12, 10, 13, 10, 19, 10, 21, 11, 11, 11, 12, 11, 13, 11, 19, 11, 21, 12, 11, 12, 12, 12, 13, 12, 21, 13, 11, 13, 12, 13, 13, 13, 20, 13, 21, 14, 11, 14, 12, 14, 13, 14, 14, 14, 18, 14, 19, 14, 20, 14, 21, 15, 11, 15, 12, 15, 13, 15, 14, 15, 15, 15, 16, 15, 17, 15, 18, 15, 19, 15, 20, 15, 21, 16, 11, 16, 12, 16, 13, 16, 14, 16, 15, 16, 16, 16, 17, 16, 18, 16, 19, 16, 20, 17, 11, 17, 12, 17, 13, 17, 14, 17, 15, 17, 16, 17, 17, 17, 18, 17, 19, 17, 20, 18, 2, 18, 12, 18, 13, 18, 14, 18, 15, 18, 16, 18, 17, 18, 18, 18, 19, 19, 2, 19, 3, 19, 14, 19, 15, 19, 16, 19, 17, 19, 18, 20, 2, 21, 2, 22, 2, }, 
    		new int[] { 4, 7, 4, 8, 4, 9, 4, 10, 4, 11, 4, 12, 4, 13, 4, 14, 4, 15, 4, 16, 4, 17, 4, 18, 5, 7, 5, 8, 5, 9, 5, 10, 5, 11, 5, 12, 5, 13, 5, 14, 5, 15, 5, 16, 5, 17, 5, 18, 5, 19, 6, 7, 6, 8, 6, 9, 6, 10, 6, 14, 6, 15, 6, 16, 6, 17, 6, 18, 6, 19, 6, 20, 7, 7, 7, 14, 7, 15, 7, 16, 7, 17, 7, 18, 7, 19, 7, 20, 8, 7, 8, 8, 8, 9, 8, 10, 8, 11, 8, 12, 8, 14, 8, 15, 8, 16, 8, 17, 8, 18, 8, 19, 8, 20, 9, 11, 9, 12, 9, 13, 9, 18, 9, 19, 9, 20, 10, 11, 10, 12, 10, 13, 10, 19, 10, 21, 11, 11, 11, 12, 11, 13, 11, 19, 11, 21, 12, 11, 12, 12, 12, 13, 12, 21, 13, 11, 13, 12, 13, 13, 13, 20, 13, 21, 14, 11, 14, 12, 14, 13, 14, 14, 14, 18, 14, 19, 14, 20, 14, 21, 15, 11, 15, 12, 15, 13, 15, 14, 15, 15, 15, 16, 15, 17, 15, 18, 15, 19, 15, 20, 15, 21, 16, 11, 16, 12, 16, 13, 16, 14, 16, 15, 16, 16, 16, 17, 16, 18, 16, 19, 16, 20, 17, 12, 17, 13, 17, 14, 17, 15, 17, 16, 17, 17, 17, 18, 17, 19, 17, 20, 18, 2, 18, 12, 18, 13, 18, 14, 18, 15, 18, 16, 18, 17, 18, 18, 18, 19, 19, 2, 19, 3, 19, 14, 19, 15, 19, 16, 19, 17, 19, 18, 20, 2, 21, 2, 22, 2, }, 
    		new int[] { 2, 2, 2, 3, 2, 4, 2, 5, 2, 6, 3, 2, 3, 3, 3, 4, 3, 5, 3, 6, 4, 2, 4, 3, 4, 4, 4, 5, 5, 2, 5, 3, 6, 2, 7, 2, 8, 14, 8, 15, 8, 16, 8, 17, 8, 18, 8, 19, 8, 20, 9, 12, 9, 13, 9, 14, 9, 15, 9, 16, 9, 17, 9, 18, 9, 19, 9, 20, 9, 22, 10, 10, 10, 11, 10, 12, 10, 13, 10, 14, 10, 15, 10, 16, 10, 17, 10, 18, 10, 19, 10, 21, 10, 22, 11, 9, 11, 10, 11, 11, 11, 12, 11, 13, 11, 14, 11, 15, 11, 16, 11, 17, 11, 18, 11, 19, 11, 21, 11, 22, 12, 8, 12, 9, 12, 10, 12, 11, 12, 12, 12, 13, 12, 14, 12, 15, 12, 16, 12, 17, 12, 18, 12, 21, 13, 7, 13, 8, 13, 9, 13, 10, 13, 11, 13, 12, 13, 13, 13, 14, 13, 15, 13, 16, 13, 17, 13, 18, 14, 7, 14, 8, 14, 9, 14, 10, 15, 7, 15, 8, 15, 9, 16, 7, 16, 8, 18, 2, 18, 4, 19, 2, 19, 3, 19, 4, 20, 2, 20, 3, 21, 2, }, 
    		new int[] { 3, 5, 3, 6, 3, 7, 3, 8, 3, 9, 3, 14, 3, 15, 3, 16, 3, 17, 3, 18, 4, 4, 4, 5, 4, 6, 4, 7, 4, 8, 4, 9, 4, 10, 4, 11, 4, 12, 4, 13, 4, 14, 4, 15, 4, 16, 4, 17, 4, 18, 4, 19, 5, 3, 5, 5, 5, 6, 5, 7, 5, 8, 5, 9, 5, 10, 5, 11, 5, 12, 5, 13, 5, 14, 5, 15, 5, 16, 5, 17, 5, 18, 5, 19, 5, 20, 6, 5, 6, 6, 6, 7, 6, 8, 6, 9, 6, 10, 6, 14, 6, 15, 6, 16, 6, 17, 6, 18, 6, 19, 6, 20, 7, 2, 7, 5, 7, 6, 7, 7, 7, 14, 7, 15, 7, 16, 7, 17, 7, 18, 7, 19, 7, 20, 7, 21, 8, 5, 8, 10, 8, 11, 8, 12, 8, 14, 8, 18, 8, 19, 8, 20, 9, 11, 9, 12, 9, 13, 9, 19, 9, 20, 10, 11, 10, 12, 10, 13, 10, 19, 10, 21, 11, 11, 11, 12, 11, 13, 11, 19, 11, 21, 12, 11, 12, 12, 12, 13, 12, 21, 13, 5, 13, 10, 13, 11, 13, 12, 13, 13, 13, 14, 13, 18, 13, 20, 13, 21, 14, 5, 14, 6, 14, 7, 14, 8, 14, 9, 14, 10, 14, 11, 14, 12, 14, 13, 14, 14, 14, 15, 14, 16, 14, 17, 14, 18, 14, 19, 14, 20, 15, 5, 15, 6, 15, 7, 15, 8, 15, 9, 15, 10, 15, 11, 15, 12, 15, 13, 15, 14, 15, 15, 15, 16, 15, 17, 15, 18, 15, 19, 15, 20, 16, 5, 16, 6, 16, 7, 16, 8, 16, 9, 16, 10, 16, 11, 16, 12, 16, 13, 16, 14, 16, 15, 16, 16, 16, 17, 16, 18, 16, 19, 16, 20, 17, 5, 17, 6, 17, 7, 17, 8, 17, 9, 17, 10, 17, 11, 17, 12, 17, 13, 17, 14, 17, 15, 17, 16, 17, 17, 17, 18, 17, 19, 18, 5, 18, 6, 18, 7, 18, 8, 18, 9, 18, 10, 18, 13, 18, 14, 18, 15, 18, 16, 18, 17, 18, 18, }, 
    		new int[] { 3, 5, 3, 6, 3, 7, 3, 8, 3, 9, 3, 10, 4, 4, 4, 5, 4, 6, 4, 7, 4, 8, 4, 9, 4, 10, 4, 11, 4, 12, 4, 21, 5, 3, 5, 5, 5, 6, 5, 7, 5, 8, 5, 9, 5, 10, 5, 11, 5, 12, 5, 13, 5, 21, 6, 5, 6, 6, 6, 7, 6, 8, 6, 9, 6, 10, 6, 21, 7, 5, 7, 6, 7, 7, 7, 21, 8, 5, 8, 10, 8, 11, 8, 12, 9, 11, 9, 12, 9, 13, 9, 20, 10, 11, 10, 12, 10, 13, 11, 11, 11, 12, 11, 13, 11, 19, 12, 11, 12, 12, 12, 13, 12, 18, 13, 5, 13, 11, 13, 12, 13, 13, 13, 17, 13, 18, 13, 20, 14, 5, 14, 6, 14, 7, 14, 8, 14, 9, 14, 10, 14, 11, 14, 12, 14, 13, 14, 14, 14, 15, 14, 16, 14, 17, 14, 18, 14, 19, 15, 5, 15, 6, 15, 7, 15, 8, 15, 9, 15, 10, 15, 11, 15, 12, 15, 13, 15, 14, 15, 15, 15, 16, 15, 17, 15, 18, 16, 5, 16, 6, 16, 7, 16, 8, 16, 9, 16, 10, 16, 11, 16, 12, 16, 13, 16, 14, 16, 15, 16, 16, 16, 17, 16, 18, 17, 5, 17, 6, 17, 7, 17, 8, 17, 9, 17, 10, 17, 11, 17, 12, 17, 13, 17, 14, 17, 15, 17, 16, 18, 5, 18, 6, 18, 7, 18, 8, 18, 9, 18, 10, 18, 11, 18, 12, 18, 13, 18, 14, }, 
    		new int[] { 3, 20, 3, 21, 4, 17, 4, 18, 4, 19, 4, 20, 4, 21, 5, 14, 5, 15, 5, 16, 5, 17, 5, 18, 5, 19, 5, 20, 5, 21, 6, 14, 6, 15, 6, 16, 6, 17, 6, 18, 6, 19, 6, 20, 6, 21, 7, 14, 7, 15, 7, 16, 7, 17, 7, 18, 7, 19, 7, 20, 7, 21, 8, 5, 8, 7, 8, 8, 8, 9, 8, 10, 8, 11, 8, 12, 8, 14, 8, 15, 8, 16, 8, 17, 9, 5, 9, 7, 9, 8, 9, 9, 9, 10, 9, 11, 9, 12, 9, 13, 9, 14, 9, 15, 9, 16, 10, 5, 10, 7, 10, 8, 10, 9, 10, 10, 10, 11, 10, 14, 10, 15, 10, 16, 11, 5, 11, 7, 11, 8, 11, 14, 11, 15, 11, 16, 12, 5, 12, 6, 12, 14, 12, 15, 12, 16, 13, 5, 13, 6, 13, 7, 13, 14, 13, 15, 13, 16, 14, 5, 14, 6, 14, 7, 14, 8, 14, 14, 14, 15, 14, 16, 15, 5, 15, 6, 15, 7, 15, 8, 15, 9, 15, 10, 15, 15, 15, 16, 16, 5, 16, 6, 16, 7, 16, 8, 16, 9, 16, 10, 16, 11, 16, 12, 17, 5, 17, 6, 17, 7, 17, 8, 17, 9, 17, 10, 17, 11, 17, 12, 17, 13, 17, 14, 18, 2, 18, 4, 18, 5, 18, 6, 18, 7, 18, 8, 18, 9, 18, 10, 18, 11, 18, 12, 18, 13, 18, 14, 18, 15, 18, 16, 18, 17, 19, 5, 19, 6, 19, 7, 19, 8, 19, 9, 19, 10, 19, 11, 19, 12, 19, 13, 19, 14, 19, 15, 19, 16, 19, 17, 19, 18, 19, 19, 19, 20, 20, 12, 20, 13, 20, 14, 20, 15, 20, 16, 20, 17, 20, 18, 20, 19, 20, 20, 20, 21, 21, 15, 21, 16, 21, 17, 21, 18, 21, 19, 21, 20, 21, 21, 22, 18, 22, 19, 22, 20, 22, 21, 23, 21, }, 
    		new int[] { 3, 2, 3, 3, 3, 4, 4, 2, 4, 3, 4, 4, 4, 7, 4, 8, 4, 9, 4, 10, 4, 11, 4, 12, 4, 13, 4, 14, 4, 15, 4, 16, 4, 17, 4, 18, 4, 19, 4, 20, 4, 21, 5, 2, 5, 3, 5, 7, 5, 8, 5, 9, 5, 10, 5, 11, 5, 12, 5, 13, 5, 14, 5, 15, 5, 16, 5, 17, 5, 18, 5, 19, 5, 20, 5, 21, 6, 2, 6, 7, 6, 8, 6, 9, 6, 10, 6, 14, 6, 15, 6, 16, 6, 17, 6, 18, 6, 19, 6, 20, 6, 21, 7, 2, 7, 7, 7, 14, 7, 15, 7, 16, 7, 17, 7, 18, 7, 19, 7, 20, 7, 21, 8, 7, 8, 8, 8, 9, 8, 10, 8, 11, 8, 12, 8, 14, 8, 15, 8, 16, 8, 17, 8, 18, 8, 19, 8, 20, 9, 19, 9, 20, 10, 19, 10, 21, 11, 19, 11, 21, 12, 21, 13, 11, 13, 20, 13, 21, 14, 12, 14, 19, 14, 20, 14, 21, 15, 12, 15, 19, 15, 20, 15, 21, 16, 13, 16, 19, 16, 20, 16, 21, 17, 5, 17, 14, 17, 18, 17, 19, 17, 20, 17, 21, 18, 2, 18, 4, 18, 5, 18, 10, 18, 11, 18, 12, 18, 15, 18, 16, 18, 17, 18, 18, 18, 19, 18, 20, 18, 21, 19, 2, 19, 3, 19, 4, 19, 5, 19, 6, 19, 7, 19, 8, 19, 9, 19, 10, 19, 11, 19, 12, 19, 15, 19, 16, 19, 17, 19, 18, 19, 19, 19, 20, 19, 21, 20, 2, 20, 3, 20, 4, 20, 5, 20, 6, 20, 7, 20, 8, 20, 9, 20, 10, 20, 11, 20, 12, 20, 13, 20, 16, 20, 17, 20, 18, 20, 19, 20, 20, 20, 21, 21, 2, 21, 3, 21, 4, 21, 5, 21, 6, 21, 7, 21, 8, 21, 9, 21, 10, 21, 11, 21, 12, 21, 17, 21, 18, 21, 19, 21, 20, 21, 21, 22, 3, 22, 4, 22, 5, 22, 6, 22, 7, 22, 8, 22, 9, 22, 10, 22, 19, 23, 4, 23, 5, 23, 6, 23, 7, 23, 8, }, 
    		new int[] { 3, 7, 3, 8, 3, 9, 3, 10, 3, 11, 3, 12, 3, 13, 4, 4, 4, 7, 4, 8, 4, 9, 4, 10, 4, 11, 4, 12, 4, 13, 4, 14, 4, 15, 4, 16, 5, 3, 5, 7, 5, 8, 5, 9, 5, 10, 5, 11, 5, 12, 5, 13, 5, 14, 5, 15, 5, 16, 5, 17, 5, 18, 6, 7, 6, 8, 6, 9, 6, 10, 6, 14, 6, 15, 6, 16, 6, 17, 6, 18, 6, 19, 7, 2, 7, 7, 7, 14, 7, 15, 7, 16, 7, 17, 7, 18, 7, 19, 7, 20, 8, 15, 8, 16, 8, 17, 8, 18, 8, 19, 8, 20, 9, 17, 9, 18, 9, 19, 9, 20, 10, 18, 10, 19, 10, 21, 11, 18, 11, 19, 11, 21, 12, 21, 13, 20, 13, 21, 14, 19, 14, 20, 15, 19, 15, 20, 16, 19, 16, 20, 17, 5, 17, 19, 18, 2, 18, 4, 18, 5, 18, 6, 19, 2, 19, 3, 19, 4, 19, 5, 19, 6, 20, 2, 20, 3, 20, 4, 21, 2, 21, 3, }, 
    		new int[] { 3, 2, 3, 3, 3, 4, 4, 2, 4, 3, 4, 4, 4, 7, 4, 8, 4, 9, 4, 10, 4, 11, 4, 12, 4, 13, 4, 14, 4, 15, 4, 16, 4, 17, 4, 18, 4, 19, 4, 20, 4, 21, 5, 2, 5, 3, 5, 7, 5, 8, 5, 9, 5, 10, 5, 11, 5, 12, 5, 13, 5, 14, 5, 15, 5, 16, 5, 17, 5, 18, 5, 19, 5, 20, 5, 21, 6, 2, 6, 7, 6, 8, 6, 9, 6, 10, 6, 14, 6, 15, 6, 16, 6, 17, 6, 18, 6, 19, 6, 20, 6, 21, 7, 2, 7, 7, 7, 14, 7, 15, 7, 16, 7, 17, 7, 18, 7, 19, 7, 20, 7, 21, 8, 7, 8, 8, 8, 9, 8, 10, 8, 11, 8, 12, 8, 14, 8, 15, 8, 16, 8, 17, 8, 18, 8, 19, 8, 20, 9, 18, 9, 19, 9, 20, 10, 18, 10, 19, 10, 21, 11, 17, 11, 18, 11, 19, 12, 16, 12, 17, 12, 18, 13, 15, 13, 16, 13, 17, 13, 18, 14, 14, 14, 15, 14, 16, 14, 17, 14, 18, 15, 5, 15, 13, 15, 14, 15, 15, 15, 16, 15, 17, 15, 18, 16, 5, 16, 6, 16, 10, 16, 11, 16, 12, 16, 13, 16, 14, 16, 15, 16, 16, 16, 17, 17, 5, 17, 6, 17, 7, 17, 8, 17, 9, 17, 10, 17, 11, 17, 12, 17, 13, 17, 14, 17, 15, 18, 2, 18, 4, 18, 5, 18, 6, 18, 7, 18, 8, 18, 9, 18, 10, 18, 11, 18, 12, 18, 13, 18, 14, 19, 2, 19, 3, 19, 4, 19, 5, 19, 6, 19, 7, 19, 8, 19, 9, 19, 10, 19, 11, 19, 12, 19, 13, 20, 2, 20, 3, 20, 4, 20, 5, 20, 6, 20, 7, 20, 8, 20, 9, 20, 10, 20, 11, 21, 3, 21, 4, 21, 5, 21, 6, 21, 7, 21, 8, 21, 9, }, 
    		new int[] { 3, 2, 3, 3, 3, 4, 4, 2, 4, 3, 4, 4, 4, 7, 4, 8, 4, 9, 4, 10, 4, 11, 4, 12, 4, 13, 4, 14, 4, 15, 4, 16, 4, 17, 4, 18, 4, 19, 4, 20, 4, 21, 5, 2, 5, 3, 5, 7, 5, 8, 5, 9, 5, 10, 5, 11, 5, 12, 5, 13, 5, 14, 5, 15, 5, 16, 5, 17, 5, 18, 5, 19, 5, 20, 5, 21, 6, 2, 6, 7, 6, 8, 6, 9, 6, 10, 6, 14, 6, 15, 6, 16, 6, 17, 6, 18, 6, 19, 6, 20, 6, 21, 7, 2, 7, 7, 7, 14, 7, 15, 7, 16, 7, 17, 7, 18, 7, 19, 7, 20, 7, 21, 8, 7, 8, 8, 8, 9, 8, 10, 8, 11, 8, 12, 8, 14, 8, 15, 8, 16, 8, 17, 8, 18, 8, 19, 8, 20, 9, 11, 9, 12, 9, 13, 9, 19, 9, 20, 10, 11, 10, 12, 10, 13, 10, 19, 10, 21, 11, 11, 11, 12, 11, 13, 11, 19, 11, 21, 12, 11, 12, 12, 12, 13, 12, 21, 13, 11, 13, 12, 13, 20, 13, 21, 14, 11, 14, 12, 14, 19, 14, 20, 14, 21, 15, 11, 15, 19, 15, 20, 15, 21, 16, 19, 16, 20, 17, 19, 17, 20, 18, 2, 18, 19, 18, 20, 19, 2, 19, 3, 19, 19, 20, 2, 20, 19, 21, 2, 22, 2, }, 
    		new int[] { 3, 2, 3, 3, 3, 4, 4, 2, 4, 3, 4, 4, 4, 7, 4, 8, 4, 9, 4, 10, 4, 11, 4, 12, 4, 13, 4, 14, 4, 15, 4, 16, 4, 17, 4, 18, 4, 19, 4, 20, 4, 21, 5, 2, 5, 3, 5, 7, 5, 8, 5, 9, 5, 10, 5, 11, 5, 12, 5, 13, 5, 14, 5, 15, 5, 16, 5, 17, 5, 18, 5, 19, 5, 20, 5, 21, 6, 2, 6, 7, 6, 8, 6, 9, 6, 10, 6, 14, 6, 15, 6, 16, 6, 17, 6, 18, 6, 19, 6, 20, 6, 21, 7, 2, 7, 7, 7, 14, 7, 15, 7, 16, 7, 17, 7, 18, 7, 19, 7, 20, 7, 21, 8, 7, 8, 8, 8, 9, 8, 10, 8, 11, 8, 12, 8, 14, 8, 15, 8, 16, 8, 17, 8, 18, 8, 19, 8, 20, 9, 11, 9, 12, 9, 13, 10, 11, 10, 12, 10, 13, 11, 11, 11, 12, 11, 13, 12, 11, 12, 12, 12, 13, 13, 11, 13, 12, 14, 11, 14, 12, 15, 11, 18, 2, 19, 2, 19, 3, 20, 2, 21, 2, 22, 2, }, 
    	};
    	
    	public static String solve(BufferedImage img) {
    		byte[] data = ((DataBufferByte) img.getRaster().getDataBuffer()).getData();
    
    		int pixelLength = img.getAlphaRaster() != null ? 4 : 3;
    		int alphaOffset = img.getAlphaRaster() != null ? 1 : 0;
    		int width = img.getWidth();
    		int offsetY = 7;
    		int offsetX = 8;
    		int charWidth = 24;
    
    		int solution = 0;
    		
    		for(int i = 0; i < 5; i++) {
    			int x0 = offsetX + charWidth * i;
    			int y0 = offsetY;
    			boolean success = false;
    			for (int j = 0; j < 0x10; j++) { 
    				success = true;
    				int[] p = points[j];
    				for(int k = 0; k < p.length; k += 2) {
    					int pos = ((y0+p[k+1])*width+(x0+p[k]))*pixelLength+alphaOffset;
    					if(((int)(data[pos]&0xFF) + (data[pos+1]&0xFF) + (data[pos+2]&0xFF)) > 0x250) {
    						success = false;
    						break;
    					}
    				}
    				if(success) {
    					solution |= (j << (4 * (4-i)));
    					break;
    				}
    			}
    			if(!success) {
    				return null;
    			}
    		}
    		return String.format("%05X", solution);
    	}
    }
    Aufruf ist einfach:
    Code:
    BufferedImage img = ImageIO.read(new File("/home/***/projects/test/captchas/turing.jpeg"));
    String sol = Solver.solve(img);
    Ist nicht sonderlich schön geschrieben, findet aber 100% der Lösungen.
    Benötigt im Durchschnitt auch nur 0,5ms pro Durchlauf.
    Geändert von KrT (11.02.2015 um 21:07 Uhr)

  9. The Following 3 Users Say Thank You to KrT For This Useful Post:

    Brainy (11.02.2015), Dose (22.08.2016), Saad (12.02.2015)

Ähnliche Themen

  1. Frage : Knuddels IP Änderung
    Von Published im Forum Fragen & Probleme
    Antworten: 3
    Letzter Beitrag: 06.09.2013, 14:44
  2. [Frage] Mandelentzündung oder nicht ?
    Von Silidor im Forum RealLife
    Antworten: 12
    Letzter Beitrag: 12.05.2012, 13:33
  3. [Frage] Knuddels PHP nachbau?
    Von Shazam im Forum Knuddels Programmierung
    Antworten: 6
    Letzter Beitrag: 26.12.2011, 12:16
Diese Seite nutzt Cookies, um das Nutzererlebnis zu verbessern. Klicken Sie hier, um das Cookie-Tracking zu deaktivieren.