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
    评论
Sure, here are the steps to build a decision tree model in Jupyter Notebook to predict if a person with a cholesterol level of 3 is mostly overweight using the Health_Data.csv file: 1. Import necessary libraries: ```python import pandas as pd from sklearn.tree import DecisionTreeClassifier, export_graphviz from sklearn.model_selection import train_test_split from sklearn.metrics import accuracy_score import graphviz ``` 2. Load the dataset: ```python data = pd.read_csv('Health_Data.csv') ``` 3. Prepare the data for modeling: ```python # Select the columns of interest df = data[['cholesterol', 'BMICat']] # Convert categorical column to numeric df['BMICat'] = pd.factorize(df['BMICat'])[0] # Split the data into training and testing sets X_train, X_test, y_train, y_test = train_test_split(df[['cholesterol']], df['BMICat'], test_size=0.2, random_state=42) ``` 4. Train the decision tree model: ```python model = DecisionTreeClassifier() model.fit(X_train, y_train) ``` 5. Make predictions on the test set: ```python y_pred = model.predict(X_test) ``` 6. Evaluate the model's accuracy: ```python accuracy = accuracy_score(y_test, y_pred) print('Accuracy:', accuracy) ``` 7. Visualize the decision tree: ```python dot_data = export_graphviz(model, out_file=None, feature_names=['cholesterol'], class_names=['Normal Weight', 'Overweight'], filled=True, rounded=True, special_characters=True) graph = graphviz.Source(dot_data) graph ``` This will display a decision tree that shows the rules used by the model to predict if a person with a cholesterol level of 3 is mostly overweight.
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值