forked from Lemophile/KrakenNet
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.go
More file actions
39 lines (33 loc) · 758 Bytes
/
main.go
File metadata and controls
39 lines (33 loc) · 758 Bytes
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
package main
import (
"bufio"
"fmt"
"github.com/vexsx/KrakenNet/color"
"github.com/vexsx/KrakenNet/config"
"github.com/vexsx/KrakenNet/pkg"
"log"
"math/rand"
"os"
"strings"
"time"
)
func main() {
rand.Seed(time.Now().UnixNano())
pkg.PrintBanner()
reader := bufio.NewReader(os.Stdin)
config.LoadLists("useragents.txt", "referers.txt")
for {
in, err := pkg.PromptInputs()
if err != nil {
log.Fatal(err)
}
in.RunAttack()
fmt.Print(color.Yellow + "\n🔄 Do you want to start another attack? (y/n): " + color.Reset)
again, _ := reader.ReadString('\n')
again = strings.TrimSpace(strings.ToLower(again))
if again != "y" {
fmt.Println(color.Green + "👋 Bye! Hope you liked your attacks" + color.Reset)
break
}
}
}