登录 注册
当前位置:主页 > 资源下载 > RAR密码检测源代码

RAR密码检测源代码

  • 更新:2024-10-05 23:30:02
  • 大小:286KB
  • 推荐:★★★★★
  • 来源:网友上传分享
  • 类别:其它 - 安全技术
  • 格式:RAR

资源介绍

用于RAR密码暴力破解的源码-仅供参考 function ExtractArchive(ArcName: PChar; Mode: Integer):boolean; var hArcData: THandle; RHCode, PFCode: Integer; CmtBuf: array[0..Pred(16384)] of Char; HeaderData: RARHeaderData; OpenArchiveData: RAROpenArchiveDataEx; Operation: Integer; begin OpenArchiveData.ArcName := ArcName; OpenArchiveData.CmtBuf := @CmtBuf; OpenArchiveData.CmtBufSize := SizeOf(CmtBuf); OpenArchiveData.OpenMode := RAR_OM_EXTRACT; hArcData := RAROpenArchiveEx(OpenArchiveData); if (OpenArchiveData.OpenResult <> 0) then begin showmessage('打开失败'); Exit; end; RARSetCallback (hArcData, CallbackProc, Integer (@Mode)); HeaderData.CmtBuf := nil; repeat RHCode := RARReadHeader(hArcData, HeaderData); if RHCode <> 0 then Break; if Mode = EXTRACT then Operation := RAR_EXTRACT else Operation := RAR_TEST; PFCode := RARProcessFile(hArcData, Operation, nil, nil);