Skip to content

Instantly share code, notes, and snippets.

@alirezaarzehgar
Last active October 19, 2022 06:58
Show Gist options
  • Select an option

  • Save alirezaarzehgar/fbf4a7b49eb7be82f7d2eb6832cefca5 to your computer and use it in GitHub Desktop.

Select an option

Save alirezaarzehgar/fbf4a7b49eb7be82f7d2eb6832cefca5 to your computer and use it in GitHub Desktop.
Fahsha Saz. InsultingBot
// This source code used for sending many messages immediately on virtual networks
// you should create file with "fahsha.dic" name and code find all of them of corrent directory
// then read them and randomly select a line and type on selected entry and send it.
// for selecting entry and starting attack you should click and hold your mouse on a entry.
// where app says "Writing a message..." or "Type a message" etc
// then you should press ctrl+a keys on keyboard and attack will be started
//
// usage:
// wordlist format: fahsha.dic files on correct directory
// start attack: holding your mouse on entry and press ctrl+a
// stop: ctrl+p
package main
import (
"bufio"
"fmt"
"math/rand"
"os"
"github.com/go-vgo/robotgo"
)
func main() {
fmt.Println("FahshaSaz is running. press ctrl+a to start attack")
attack := robotgo.AddEvents("a", "ctrl")
if !attack {
panic("Failed to get event")
}
x, y := robotgo.GetMousePos()
robotgo.MoveClick(int(x), int(y), "left")
var context []string
quit := make(chan bool)
file, err := os.Open("fahsha.dic")
if err != nil {
panic(err.Error())
}
defer file.Close()
scanner := bufio.NewScanner(file)
for scanner.Scan() {
context = append(context, scanner.Text())
}
go func() {
for {
select {
case <-quit:
return
default:
random := rand.Intn(len(context))
robotgo.TypeStr(context[random])
robotgo.KeyTap("enter")
robotgo.MilliSleep(500)
}
}
}()
robotgo.AddEvents("p", "ctrl")
quit <- true
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment