vaptcha-手势验证码
2023-12-14 10:48:54
很外向,上班总想坐老板的位置。?
网址:https://www.vaptcha.com/#demo
第一次接触是在大学刚毕业的时候,搞了一半就没搞了。时隔1年多,回来看看。
?
难点,图片还原,轨迹,canvas校验等。
轨迹的话没办法,要么自己搞模型,要么去对接打码。canvas校验的这个其实咋说呢,部分生产的结果值过不了,有的又能过。
const { createCanvas, loadImage } = require('canvas')
var rt = function() {
function t() {}
t.prototype.GenerateFP = function(t) {
// var t = this.getComplexCanvasFingerprint(t);
return this.extractCRC32FromBase64(t);
};
t.prototype.getComplexCanvasFingerprint = function(t) {
var e = 'BrowserLeaks,com <canvas> 1.0' + t;
var n =createCanvas(220, 30,'svg')
var i = n.getContext("2d");
i.textBaseline = "top";
i.font = "14px 'Arial'";
i.textBaseline = "alphabetic";
i.fillStyle = "#f60";
i.fillRect(125, 1, 62, 20);
i.fillStyle = "#069";
i.fillText(e, 2, 15);
i.fillStyle = "rgba(102, 204, 0, 0.7)";
i.fillText(e, 4, 17);
return n.toDataURL();
};
t.prototype.extractCRC32FromBase64 = function(t) {
t = t.replace("data:image/png;base64,", "");
var e = atob(t);
var n = e.slice(-16, -12);
return this.string2Hex(n.toString());
};
t.prototype.string2Hex = function(t) {
var e = "";
for (var n = 0; n < t.length; n++) {
var i = t.charCodeAt(n);
i <= 15 && (e += "0");
e += i.toString(16).toLocaleUpperCase();
}
return e;
};
return t;
}();
var at = new rt();
console.log(at.GenerateFP("iVBORw0KGgoAAAANSUhEUgAAANwAAAAeCAYAAABHenA+AAAAAXNSR0IArs4c6QAAEpdJREFUeF7tW3lYVFey/10Q2aVBVkUjCBoIW4iIuMsSNWae68Q1alQayLxxmcxEY0wyOnGLJkbnM9JNxMSVLC7JG1wRDa7YSljcYUCRTRZF1m5Z7vvqdN/2dgOSL29i5332/Ye+fc89VadO/ap+VafhYLyMFjBa4JlZgHtmkoyCfjcW4KXgfzfKPENFODkM7u8GV+AZ2tsoSmMBI+AM5wpGwBnO9gaTbAScwUx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Kf1zwtDVTTattmgQjjcbq3Os1YzT20m5we/vZ2cE3OaxHOdC/VN1I0W9IkF3oudjJBZonZJNGM7BOItVwwQVqS1LGuS9RZxuiqGKQi8GhP07IVDSGariOdKLuqaC7IFMcVDr7b4E2jS3xy5rPbfZKZH/Bn1kNNwCfaW0vdDUJ9Ppzigap+7Hii8fXQlNAH3A0TP9dduAnOnDWOrNGIXqnvXnoO207nWWlJ3JFc7Buqbjdrh8UGCA1Lf82SxHp9jR54mcUKMDjAnj8F3UN2ZwigIuDTIsV1rHApfkBAR1v1Dc4yPbsXjcxfOSOHURVxXVbGz1FaxYCFVsuj8esYykcW/wGgBPbimo08bGAACgCjJBJaDx973kfyHoBrPliX9c54AQQEu2jrCqARAxEGkNAo+OCu07qLPbQRn0c0WKi1lSsUzsY0X71awDXHgh19krvuEffP/UxYPxvgaft0G/4TBMpIQSw31BU27hp/H+4Z2luHVlGwBnA9CwTNmCZKRCvPQh/hnp0RimfoSrPVFRnGe5ZKGME3LOw8u9MhhFwhtsQI+AMZ3uDSTYCzmCmN/4DquFMb5T8PFrAmOGex103rtlgFjACzmCmNwp+Hi1gBNzzuOvGNRvMAkbAGcz0RsHPowWMgHsed924ZoNZwAg4g5neKPh5tIARcM/jrhvXbDALGAFnMNMbBT+PFvhfhikK4mKawbAAAAAASUVORK5CYII="))
?这个也是我们最终生产加密值en所需要的,这个的话好像并没有强行要求,大家可写死试试并发的情况。
?
关于图片还原的数组,在这里,断点往回看看就清楚了。
reductionImg = function (){
l = ri.hex2int(at.GenerateFP(ha))
s = l + h + parseInt(secretC) + c;
m = ri.Decrypt(e.img_order, s);
}
?
然后的话 :哈哈
最后成功之后:
?
好了好了就这样了,提前祝大家2024快乐,出去玩的小伙伴也要注意安全。
完事儿了哦,大表哥们。以上需要算法,或者识别的都可以给我留言,最后也谢谢李成功的帮助。
记得关注我们的作坊:图腾视觉开放平台-高速、稳定、易用的webapi接口调用 (现已合作大佬超乎你想象)图腾视觉-OCR识别平台
提示:有问题的小伙伴可以私信讨论。
重要的事儿说三遍 :若是侵权请联系作者删,若是侵权请联系作者删,若是侵权请联系作者删。
文章来源:https://blog.csdn.net/qq_44657571/article/details/134986793
本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。 如若内容造成侵权/违法违规/事实不符,请联系我的编程经验分享网邮箱:veading@qq.com进行投诉反馈,一经查实,立即删除!
本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。 如若内容造成侵权/违法违规/事实不符,请联系我的编程经验分享网邮箱:veading@qq.com进行投诉反馈,一经查实,立即删除!