설치 / 사용기

기 타 [SHA-256] 디지탈서명 배치스크립트 소스 : 바이러스 오진 줄이기

2023.08.16 19:38

세이퍼컴 조회:674 추천:12

 

 

SHA-256.7z

 

첨부된 디지털인증 파일3개는 제가  만들어낸 가짜입니다.

 

 

가짜인증서 만드는 방법까지 댓글로 알려주신 분이

 

자신개인의 56년 인증가능한

중요한 인증서라고

진짜인증서인 것처럼 주장을 하셔서

파일 3개를 삭제하고 바꾸어서 다시 올려드립니다

 

 

001.png

 

 

@pushd "%~dp0" >nul 2>&1

 

@echo off

title SHA-256 Adding digital signatures.

echo Please Wait ...

pushd "%~dp0"

if exist %windir%\system32\cmd.exe set syspath=%windir%\system32

if exist %windir%\sysnative\cmd.exe set syspath=%windir%\sysnative

echo.

echo Working, Please wait...

echo.

 

@set b2eextd="%~dp0Data\Cert\extd.exe"

@set extd=@call:extd

@set b2etempfile="%temp%\b2e.tmp"

 

%extd% /browseforfile "Please select an exe file!" "" "exe file (*.exe)|*.exe" 1

IF "%result%"=="" goto exit

set exefile=%result%

echo Adding digital signatures to %exefile% && echo.

if not exist "%exefile%.bak" copy /y "%exefile%" "%exefile%.bak" >nul

 

call "Data\Cert\signtool.exe" sign /a /f Data\Cert\MyCert.pfx /p 1722 /t http://timestamp.sectigo.com/ "%exefile%"

call "Data\Cert\signtool.exe" sign /v /f Data\Cert\Mycert.pfx /p 1722 /tr http://timestamp.digicert.com /td sha256 /fd sha256 "%exefile%"

call "Data\Cert\signtool.exe" sign /f Data\Cert\Mycert.pfx /p 1722 /fd sha256  /v /d "NtwowDev" /du "http://timestamp.digicert.com" /tr http://timestamp.digicert.com/sha256/ /as /v "%exefile%"

 

if not exist %userprofile%\Desktop\SHA-256 MD %userprofile%\Desktop\SHA-256

1>nul 2>nul move /y "%exefile%"  "%userprofile%\Desktop\SHA-256\" && ping 127.0.0.1 -n 2 >nul && if not exist "%exefile%" move /y "%exefile%.bak" "%exefile%"

goto:end

 

:extd

 @set result=

 @%b2eextd% "%~1" "%~2" "%~3" "%~4" "%~5" "%~6" "%~7" "%~8" "%~9" > "%b2etempfile%"

 @set /p result= < "%b2etempfile%"

 @del "%b2etempfile%"

 @goto:eof

 

:end

echo.

ping 127.0.0.1 -n 2 >nul

color 1F

cls

echo.

echo Done, Successfully.

echo.

ping 127.0.0.1 -n 3 >nul

========================

 

 

번호 제목 글쓴이 조회 추천 등록일
[공지] 사용기/설치기 이용안내 gooddew - - -
10328 기 타| WORLD`S BEST WINDOWS 8.1 PE _USB 부팅 [23] 구들목 8383 7 04-21
10327 윈 도 우| 팡팡tv 업데이트 [15] 땅콩 8380 13 06-22
10326 소프트웨어| 윈도우8 개발자용 프리뷰 스샷 & 사용기 [1] citizen 8380 0 09-16
10325 영구인증과 실행기 [2] 이훈 8378 1 07-18
10324 하드웨어| 아이폰4 케이스 에그 리뷰(4세대통신망) [10] 이건뭔가요 8370 0 05-21
10323 소프트웨어| windows 8 Beta 에대한 한마디. [12] 아깝게루저 8367 0 06-25
10322 CS5 MC Premiere pro 테스트-인코딩 [11] 하늘바람 8367 0 05-03
10321 하드웨어| 샌디 G530 외장/내장그래픽의 게임성능 [1] 메리아 8362 0 02-23
10320 소프트웨어| Windows To Go 설치기... [7] 미테니사키 8361 0 09-05
10319 Windows 7-7127에서 OCZ Trim 소프트웨어 wiper.exe 작동문제 [1] 송경용 8352 0 05-16
10318 윈도우7, 32비트 설치후 모니터 해상도 주파수 문제점... [1] 김선달 8350 0 05-14
10317 하드웨어| 로지텍 M325 배터리 정말 오래가네요. [4] 오펜하이머 8345 0 01-19
10316 XP 비스타 세븐 [16] 청포장수 8335 0 10-11
10315 기 타| Windows_8.1_Dream_PE 부팅방법 [17] suk 8321 5 11-08
10314 윈 도 우| 범진버전 윈도우7 엔터프라이즈 x64 만능고스트 EasySyspre... [39] 범진이빠빠 8321 8 12-01
10313 메인보드 바이오스 업데이트후기.오늘하루 삽질했네요.ㅠㅠ [4] 가군자 8320 0 03-27
10312 소프트웨어| 1KEY Ghost32 [5] 만사형통 8318 0 04-25
10311 소프트웨어| 크롬 Vs 익스프롤러 10 [22] 비숍 8317 0 11-25
10310 나형동님 windows 7 7100 x64 한글패치판#2 을 멀티 부팅 ... [8] 왜그래아마 8317 0 05-12
10309 소프트웨어| r smbr툴 1.54 [12] 카멜 8306 36 05-16
XE1.11.6 Layout1.4.8