基于改进 ResNet18 的滑动拼图验证码破解方法

A CRACKING METHOD OF SLIDING PUZZLE VERIFICATION CODE BASED ON IMPROVED RESNET18

  • 摘要: 针对新型带伪缺口的滑动拼图验证码程序有效阻止了现有方法的攻击,提出改进 ResNet18 的滑动拼图验证码破解方法。为保证训练模型具有泛化性,通过数据增强方式获取百万级训练样本并进行图像预处理;随后将预处理图像送入改进的 ResNet18 进行训练和测试获得网络模型,紧接着使用该模型进行滑块检测和缺口检测计算滑块与缺口之间的距离,并使用随机曲线拟合算法生成滑动轨迹;利用 Selenium 拖动滑块完成拼图验证。经实验表明改进 ResNet18 相较于传统的 ResNet18 参数量减少 41%、GFLOPs (Giga Floating-point Operations Per Second) 减少 59%,在检测精度提高 1.8 百分点的情况下推理速度快了 2.75 倍,还能有效破解新型和普通滑动拼图验证码程序,其中 mAP (Mean Average Precision) 达到 98.66%,mAS (Mean Average Speed) 为 3.68s,具有较强的普适性且整体性能优于现有方法。

     

    Abstract: Aiming at the new sliding puzzle captcha program with pseudo notch effectively preventing the attack of existing methods, this paper proposes an improved ResNet18 sliding puzzle captcha cracking method. In order to ensure the generalization of the training model, millions of training samples were obtained through data enhancement and images were preprocessed. The preprocessed images were sent to the improved ResNet18 for training and testing to obtain the network model. The model was used for slider detection and notch detection to calculate the distance between the slider and the notch, and the random curve fitting algorithm was used to generate the sliding trajectory. Selenium drag slider was used to complete the puzzle verification. The experimental results show that compared with the traditional ResNet18, the improved ResNet18 reduces the number of parameters by 41% and the GFLOPs by 59%. Under the condition that the detection accuracy is increased by 1.8 percentage points, the inference speed is 2.75 times faster, and the new and common sliding puzzle verification codes can be effectively solved. The mAP reaches 98.66%, and mAS reaches 3.68 s, with good universality and overall performance better than existing methods.

     

/

返回文章
返回