1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

C#: Solving Fiverr captcha?

Discussion in 'C, C++, C#' started by kytro360, Jun 18, 2012.

  1. kytro360

    kytro360 Power Member

    Joined:
    Jan 12, 2010
    Messages:
    703
    Likes Received:
    732
    How would you go about solving Fiverr captchas in C#?
     
  2. -ReX-

    -ReX- Power Member

    Joined:
    Apr 26, 2012
    Messages:
    707
    Likes Received:
    274
    Location:
    Manly, Australia
    Use the dbc Api?
     
  3. kytro360

    kytro360 Power Member

    Joined:
    Jan 12, 2010
    Messages:
    703
    Likes Received:
    732
    Its not a captcha thats the thing.

    Its stuff like: 7 + 2 =

    ...but its not in an image but spelled out in a string or regular text, thats why its tricky.
     
  4. theMagicNumber

    theMagicNumber Regular Member

    Joined:
    May 13, 2010
    Messages:
    345
    Likes Received:
    195
    I cannot see what the problem is. This is one of the worst spam protections i have ever seen.
    I think they only use sum(+), so get the numbers, parse them to integers(int.Parse(number)) and sum them.
    If it is more complex and you don't want to write your own math eval class. You can use this one at codeplex:
    http://ncalc.codeplex.com/
    Code:
                NCalc.Expression expr = new NCalc.Expression("2+2");
                string result = expr.Evaluate().ToString(); //CAPTCHA Solved
    
     
    • Thanks Thanks x 1
  5. something77

    something77 Registered Member

    Joined:
    Jan 6, 2010
    Messages:
    73
    Likes Received:
    10
    For maths sums, you do not need external libraries, you can use the system.data.datatable

    Code:
    string result = new System.Data.DataTable().Compute(sum, null).ToString();
     
  6. theMagicNumber

    theMagicNumber Regular Member

    Joined:
    May 13, 2010
    Messages:
    345
    Likes Received:
    195
    Yes you are correct. I won't use any third party library for a simple math operation like this, however i won't use DataTable either, you are instancing a DataTable class with all of its variables, properties and methods, which have no relevance to the Compute method. It is the same as killing a mosquito with a cannon.
     
  7. something77

    something77 Registered Member

    Joined:
    Jan 6, 2010
    Messages:
    73
    Likes Received:
    10
    But the mosquito is killed right? lol


    But on a more serious note you are quite right :)
     
  8. omnipotent

    omnipotent Newbie

    Joined:
    Jun 7, 2012
    Messages:
    23
    Likes Received:
    4
    aren't the numbers sometimes displayed as pictures? if so, then you still need to have some pattern recognition for them
     
  9. haylander

    haylander Registered Member

    Joined:
    May 24, 2009
    Messages:
    54
    Likes Received:
    20