웹페이지 위변조 감시, 감지시 슬랙 알림
index.js, article.js, article_instant.js 의 아래 "" 값 설정.
// 알림 받을 슬랙 웹훅 URL
const webHookUrl = "https://hooks.slack.com/services/xxxxxxxxxx/xxxxxxxxx/xxxxxxxxxxxxxxxx";
...
// 위변조 감시할 페이지 URL
await page.goto("http://www.domain.com/article/G1110879371");
- cd /home/nodejs/website_malicious_scanbot
- nohup node index.js >> /var/log/website_malicious_scanbot.log &
- nohup node article.js >> /var/log/website_malicious_scanbot.log &
- nohup node photo_slide.js >> /var/log/website_malicious_scanbot.log &
- jobs -l
[1]- 13198 Running nohup node index.js >> /var/log/website_malicious_scanbot.log &
[2]+ 13213 Running nohup node article.js >> /var/log/website_malicious_scanbot.log &
[3]+ 13214 Running nohup node photo_slide.js >> /var/log/website_malicious_scanbot.log &
- kill %1
- kill %2
- kill %3
- fg %1
- fg %2
- fg %3
- bg %1
- bg %2
- bg %3
tailf /var/log/website_malicious_scanbot.log