本地ip防火墙 txt ip脚本自己填 论行不带空格的带回车的
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 | /////////////////////////////////////////////////////////// 编译 release ’发布版本‘ #include<Windows.h> #include<stdlib.h> #pragma comment(lib,"WS2_32.lib") #include <corecrt_wstdlib.h> #include <iostream> #include<stdio.h> #include <Windows.h> #include<list> #include<iostream> #include<istream> #include<ostream> #include <fstream> #include<string> using namespace std; //////////////////////////////////////////////////////////// // GLOBALE DATa class CAtk { public : WSADATA wsd; list<SOCKET> m_socket; int retVal; //调用Socket函数的返回值 char buf[255]; CAtk() {}; ~CAtk() { }; void Release() { m_socket.clear(); } void Init() { if (WSAStartup(MAKEWORD(2, 2), &wsd) != 0) { printf ( "WSAStartup failed!\n" ); } sprintf_s(buf, "(* -1.0f); 廖len猪守屎 & 烫烫 & 很甜很园 4 / 0 / 7; *(-1)/3*0.0000001f; ; 0 *; int 3; & Math_PI ';' " ); std::ifstream file( "ip.txt" ); std::string line; Sleep(2); if (file.is_open()) { printf ( "of load ip data this work Not Click R & M \n" ); while ((std::getline(file, line))) { inster_List(line.c_str()); printf (line.c_str()); printf ( "\n" ); line.clear(); } file.close(); } }; void inster_List( const char * IP) { if (IP == "" ) { return ; } SOCKADDR_IN ins; ins.sin_addr.S_un.S_addr = ( ULONG )IP; ins.sin_family = AF_INET; ins.sin_port = htons(80); SOCKET soc; soc = socket(AF_INET, SOCK_STREAM, IPPROTO_TCP); connect(soc, (LPSOCKADDR)&ins, sizeof (ins)); if (INVALID_SOCKET == soc) { printf ( "socket failed!\n" ); return ; } m_socket.push_back(soc); }; void loopSend() { list<SOCKET>::iterator it = m_socket.begin(); bool a = false ; AS: if (it == m_socket.end()) { it = m_socket.begin(); } recv(*it, buf, 255, 0); send(*it, buf, 257, 0); if (buf != "" ) { *it._Unwrapped(); recv(*it, buf, 255, 0); recv(*it, buf, 255, 0); recv(*it, buf, 255, 0); recv(*it, buf, 255, 0); recv(*it, buf, 255, 0); recv(*it, buf, 255, 0); sprintf_s(buf, "/70000003007;" ); send(*it, buf, 255, 0); recv(*it, buf, 255, 0); } recv(*it, buf, 255, 0); recv(*it, buf, 255, 0); if (a == true ) { send(*it, buf, 255, 0); sprintf_s(buf, "/70000003007;" ); recv(*it, buf, 255, 0); a = false ; } else { a = true ; send(*it, buf, 255, 0); recv(*it, buf, 255, 0); sprintf_s(buf, "/70000003007;" ); recv(*it, buf, 257, 0); //send(*it, buf, 257, 0); } send(*it, buf, 257, 0); send(*it, buf, 259, 0); recv(*it, buf, 268, 0); recv(*it, buf, 257, 0); recv(*it, buf, 257, 0); it++; if (GetKeyState( 'K' ) && GetKeyState( 'J' ) && GetKeyState( 'L' )) { Release(); Init(); printf ( "Socket Copretion reLoad " ); Sleep(2); goto AS; } Sleep(2); goto AS; }; }; CAtk g_atk; void main() { g_atk.Init(); g_atk.loopSend(); return ; }; |
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· 25岁的心里话
· 闲置电脑爆改个人服务器(超详细) #公网映射 #Vmware虚拟网络编辑器
· 零经验选手,Compose 一天开发一款小游戏!
· 通过 API 将Deepseek响应流式内容输出到前端
· AI Agent开发,如何调用三方的API Function,是通过提示词来发起调用的吗
2023-08-22 c++ 存储区