com组件 的劫持_网站劫持 - ascertain - 博客园

最近网站部分域名被劫持,刚开始以为DNS原因,经过曲折故障排查,最终确定被劫持的部分域名未使用https导致网站劫持,下为测试脚本

@echo off

Echo *******************************************************************************

Echo          Collect Machine Information…………

Echo *******************************************************************************

ipconfig /all >> "%userprofile%"\desktop\Information.txt

echo. >> "%userprofile%"\desktop\Information.txt

echo. >> "%userprofile%"\desktop\Information.txt

nslookup -qt=ns hs.51cjml.com >> "%userprofile%"\desktop\Information.txt

echo. >> "%userprofile%"\desktop\Information.txt

echo. >> "%userprofile%"\desktop\Information.txt

nslookup -qt=a hs.51cjml.com >> "%userprofile%"\desktop\Information.txt

Echo *******************************************************************************

Echo *******************************************************************************

Echo          Changing DNS Server…………

Echo *******************************************************************************

::cmd /c netsh interface ip set address name="本地连接" source=static addr=192.168.1.136 mask=255.255.255.0 gateway=192.168.0.1 gwmetric=1

chcp 65001

cmd /c netsh interface ip set dns name="以太网" source=static addr=8.8.8.8

cmd /c netsh interface ip add dns name="以太网" addr=127.0.0.1 index=2

cmd /c netsh interface ip set dns name="本地连接" source=static addr=8.8.8.8

cmd /c netsh interface ip add dns name="本地连接" addr=127.0.0.1 index=2

cmd /c netsh interface ip set dns name="WLAN" source=static addr=8.8.8.8

cmd /c netsh interface ip add dns name="WLAN" addr=127.0.0.1 index=2

cmd /c netsh interface ip set dns name="无线网络连接" source=static addr=8.8.8.8

cmd /c netsh interface ip add dns name="无线网络连接" addr=127.0.0.1 index=2

ipconfig /all

ipconfig /flushdns

Echo *******************************************************************************

Echo          OK!!Success…………

Echo          All done

Echo *******************************************************************************

cls

color 0A

chcp 65001

Echo *******************************************************************************

Echo          Collect Machine Information…………

Echo *******************************************************************************

ipconfig /all >> "%userprofile%"\desktop\Information.txt

echo. >> "%userprofile%"\desktop\Information.txt

echo. >> "%userprofile%"\desktop\Information.txt

nslookup -qt=ns hs.51cjml.com >> "%userprofile%"\desktop\Information.txt

echo. >> "%userprofile%"\desktop\Information.txt

echo. >> "%userprofile%"\desktop\Information.txt

nslookup -qt=a hs.51cjml.com >> "%userprofile%"\desktop\Information.txt

Echo *******************************************************************************

Pause

部分截图

下面的502为安全联盟的

下面为被篡改的连接

http://jump.anquan.org:8080/warning/index.html?q=320501X1376122809PHDGBITAVPASST+http://aximo.51cjml.com/

http://jump.anquan.org:8080/warning/index.html?q=320501X1376122809PHDGBITAVPASST+http://aximo.51cjml.com/

http://jump.anquan.org:8080/complain/report/?ac=320501&url=http%3A%2F%2Faximo.51cjml.com%2F&unet=0&pa=warning&sc=320501X1376122809PHDGBITAVPASST&et=39&ar=consult&id=3205011774320200831181112805773

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值