OCR stage image base64?

Discussion in 'Cracking Discussions & Help Forum' started by m1st, Jan 17, 2016.

  1. m1st

    m1st Well-Known Member Elite

    Messages:
    2,762
    Likes:
    1,735
    Ratio:
    1.71
    I got first time see when captcha is not url its base64 string
    idk how encrypt to image any idea?
     
  2. d0rkbLiTz

    d0rkbLiTz Basic Member

    Messages:
    49
    Likes:
    14
    Ratio:
    0.14
    Translation? Not really sure what you trying to say.
     
  3. Sam_03

    Sam_03 Member

    Messages:
    443
    Likes:
    250
    Ratio:
    0.04
    you can use base64 decode function from var !
     
  4. Tarwin

    Tarwin Advanced Member

    Messages:
    384
    Likes:
    315
    Ratio:
    3.09
    This will just decode the base64 string as if the plain bytes were an ASCII string which it's not in this case.
     
    m1st likes this.
  5. CharlieM

    CharlieM Basic Member

    Messages:
    101
    Likes:
    72
    Ratio:
    0.59
    Also trying to figure this out, did you find a solution?
    Sorry for gravedigging.
     
  6. Tarwin

    Tarwin Advanced Member

    Messages:
    384
    Likes:
    315
    Ratio:
    3.09
    Not possible with sentry
     
  7. CharlieM

    CharlieM Basic Member

    Messages:
    101
    Likes:
    72
    Ratio:
    0.59
    Okay thanks ! :)
     
  8. MR.ViPeR

    MR.ViPeR Well-Known Member Retired Staff

    Messages:
    3,758
    Likes:
    2,194
    Ratio:
    2.87
    i have not tried this still, and it's about months that i have not used sentry and not made any configs, but i think you can do something with this:
    http://www.base64-image.net/
     
  9. MR.ViPeR

    MR.ViPeR Well-Known Member Retired Staff

    Messages:
    3,758
    Likes:
    2,194
    Ratio:
    2.87
    shit, can't edit
    some info:
    you need to parse base64 image string and then post it to this site and it will upload the image ( not showing it by
    data:image/jpeg;base64 ) , then you just need to parse the download link that it gave you and send that to OCR stage as Image URL

    all this steps should be done with variables

    You can also write a simple and easy PHP script to convert base64 image to image and save that , then you can run that in localhost or host


    php file:

    PHP:
    Select All
    <?php

    function saveBase(){
    $ccimg $_POST['base'];    /// Getting Submitted Base64 From Post
    $ccimg base64_decode($ccimg);     /// Decoding Base64
    file_put_contents('image.png'$ccimg);   /// Saving Decoded Base64 Image as: image.png , Address Will be: @FileDir/image.png

    echo 'Image saved.<br>';
    echo 
    '<img id="savedImage" src="image.png"></img>';
    }

    If (Isset(
    $_POST['base'])){    /// When Base64 Submitted by user then Call to the Function
    saveBase();
    }

    ?>

    <DOCTYPE HTML>
    <html>
    <head>
    <title>Save Base64 image - [email protected]</title>
    </head>
    <body>
    <form method="POST">
    <input type="text" id="base" name="base" placeholder="Base64 Image">
    <input type="submit" id="submit" name="submit" value="Submit">
    </form>
    <p style="font-size: 11px;">example: <br> iVBORw0KGgoAAAANSUhEUgAAAXgAAABiCAMAAABteTjdAAAANlBMVEVNh8H///9Nh8FNh8FNh8FNh8FNh8FNh8FNh8FNh8FNh8FNh8FNh8FNh8FNh8FNh8FNh8FNh8HbAD0BAAAAEXRSTlMAABAgMEBQYHB/j5+vv8/f79hldlkAAAYuSURBVHgB7NAxAQAADAKgrX9pY+gBEbinQrx48YgXj3jxiBfPXjzixYtHvHjEi0e8eMSLR7x4xIsXj3jxiBcfdu50S3EViAM4AsUCYan3f9mrWEpBxyVzOtdj6//TaBLD+QVJQewR+8emFLVYiwQtNuZvwis4Rv+2Ox7jV7dUxCQ/HV77hJQSjfi9+FvwCk+Jnw0PCYcUsz+8O5/pk+EVsfOE3eEtnpI/GB4qrgT2hpeVtnwqvO3YKaWMlGVveKETVi8+Fl4TdA1atJhY6a63MzzlQ+FloQ4u2SAQdh9qvvABW5wYYqoVX/g94dWNGob3f+vTMd7KyxvGL+mY6I0UPX3reaPeDE+HeqtWNkI7aXD6b8CHRzWdjHgJfQt8xZ4FJp6lbytuDd5mxEXTzRVTN1YRr0kwtYKdNNu/AF8elI66IoseiqCVm8OCQyKH51OGevJehlN7HBLkMPIhT5JvD69Zh3/sjo64huQrkcw4RXd4JkivE4eP2DM3KuCUqt8d3pHnraSLQkoFERXN9HP0xyRSDLN7TYkOhA7PBKsRM7y7M3f2+CNFvjl8uD/SAPXP1qeVc403ecXX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Pp0aIuj3WrYvCUzGau+8LXJ6oaCkS+c41we5FMxboOP1/CGuahpstn+SQ8RbrlpJUjXKo1fe1ann1tcyp0i5/gpy9kJvjX1fE94EM6ZvFWiwcB59M53nsAKViUbduC02KHXJ/QV5oHdVs3LwrN8EImpCRJpd3r4d8hBB97QSwrWynQC7FHJWZ4CsSMWBdzgM0z1y88IFtblM7J4ado3oO4E377M1/4B5EcDip/kiO2pMPrSoPVF/5elnLtxiZiC/xL+7UiH6hPjDRfeHpowP9qIvxT+wuWxXsfy7mu2g++YI8VBnvqO8E7nBMP/9J+jRRy3w9ed/k4TFArvBP8gmOqOfwbPH/WLd//L7v3j4mFdVUrt7d//gH+Q/YvPEWC8cdYkN//ROKb/9qhAxkAAACAQf7W5/hWCIkXLx7x4hEvHvHiES8e8eIRL/5CvHjEi0e8eMSLJ9siQj1vy3jiAAAAAElFTkSuQmCC</p>
    </body>
    </html>
     
    m1st and Luxor like this.
  10. CharlieM

    CharlieM Basic Member

    Messages:
    101
    Likes:
    72
    Ratio:
    0.59
    Very nice!

    How would I go about making a variable to support this?
     
  11. MR.ViPeR

    MR.ViPeR Well-Known Member Retired Staff

    Messages:
    3,758
    Likes:
    2,194
    Ratio:
    2.87
    if you link me the page then i can help you
     
  12. CharlieM

    CharlieM Basic Member

    Messages:
    101
    Likes:
    72
    Ratio:
    0.59
    Will try to find it again, I kind of gave up when someone said it was not doable :)
     
  13. Tarwin

    Tarwin Advanced Member

    Messages:
    384
    Likes:
    315
    Ratio:
    3.09
    What's the point of using an external api, you might as well ddos the site
     
  14. MR.ViPeR

    MR.ViPeR Well-Known Member Retired Staff

    Messages:
    3,758
    Likes:
    2,194
    Ratio:
    2.87
    The Point is cracking, i also posted PHP file, that @CharlieM Can use that in Localhost with Xampp or another shits
     
    CharlieM likes this.
  15. CharlieM

    CharlieM Basic Member

    Messages:
    101
    Likes:
    72
    Ratio:
    0.59
    It makes perfect sense to me bro!
    Thanks a lot.
     
  16. Tarwin

    Tarwin Advanced Member

    Messages:
    384
    Likes:
    315
    Ratio:
    3.09
    You're just ddossing the site for stuff which is done in 3 lines of code. Don't be a skid and just code an mf plugin
     
  17. MR.ViPeR

    MR.ViPeR Well-Known Member Retired Staff

    Messages:
    3,758
    Likes:
    2,194
    Ratio:
    2.87
    I don't know what are you talking about, When Sentry want to get Image, first of all will connect to login page, then will get image link and then will get image, It's the same with this php! no more steps! even it's better, cos it's base64! @CharlieM Just need to first of all go to login page, and then parse image base64, then Send post request to the php file with base64 image String ( PHP file is located in Localhost in his PC! not a website/host ) and then Sentry needs to go an static Image url ( localhost/image.png ) ! you just need to think before posting

    @CharlieM You just need to enable "After intermediate action"
    it would be something like:
    http://img04.imgland.net/j7RM120.png
     
    Last edited by a moderator: Jun 7, 2016
    m1st likes this.
  18. Tarwin

    Tarwin Advanced Member

    Messages:
    384
    Likes:
    315
    Ratio:
    3.09
    You're using a webrequest to do something which is done in 3 lines of code. There's honestly no worse way of going about this
     
  19. MR.ViPeR

    MR.ViPeR Well-Known Member Retired Staff

    Messages:
    3,758
    Likes:
    2,194
    Ratio:
    2.87
    lol all your problem is that 3 line of code? why that's fucking you? 3line of codes , 3line of codes : )))) is this fucking you?
     
    CharlieM likes this.
  20. CharlieM

    CharlieM Basic Member

    Messages:
    101
    Likes:
    72
    Ratio:
    0.59
    Not to sound harsh or anything, but ignore that imbecile, I understood what you showed be straight away, I don't give two shits if its 3 lines of code or 30, 3 is actually more appealing to me!
    Thanks again, awesome wisdom :sneaky:
     
    MR.ViPeR likes this.

Share This Page