arnaucube
arnaucube/echo-botnetPublic Self-hosted repository
update
arnaucode idoctnef@openmailbox.org
Thu, 11 May 2017 23:25:02 +0200
commit

e5e9af033e842a71bb9866f00976a19f184b3d40

parent

ae20ff5e71859127f47b1c027d29fa961c7f7d05

5 files changed, 13 insertions(+), 8 deletions(-)

jump to
M README.md → README.md

@@ -12,6 +12,11 @@ keywordsConfig.json --> contains the keywords to track from Twitter API

repliesConfig.json --> contains the replies ``` +Just need to configure: + +![echo-botnet](https://raw.githubusercontent.com/arnaucode/echo-botnet/master/configurationScreenshot.png "configurationScreenshot") + + configuration file example (botsConfig.json): ``` [{
M readConfigTokensAndConnect.go → readConfigTokensAndConnect.go

@@ -11,11 +11,11 @@ )

//Config stores the data from json botsConfig.json file type Config struct { - Title string `json:"title"` - Consumer_key string `json:"consumer_key"` - Consumer_secret string `json:"consumer_secret"` - Access_token_key string `json:"access_token_key"` - Access_token_secret string `json:"access_token_secret"` + Title string `json:"title"` + ConsumerKey string `json:"consumer_key"` + ConsumerSecret string `json:"consumer_secret"` + AccessTokenKey string `json:"access_token_key"` + AccessTokenSecret string `json:"access_token_secret"` } //Botnet stores each bot configured

@@ -38,8 +38,8 @@ fmt.Println("botnetConfig.json read comlete")

fmt.Print("connecting to twitter api --> ") for i := 0; i < len(config); i++ { - configu := oauth1.NewConfig(config[i].Consumer_key, config[i].Consumer_secret) - token := oauth1.NewToken(config[i].Access_token_key, config[i].Access_token_secret) + configu := oauth1.NewConfig(config[i].ConsumerKey, config[i].ConsumerSecret) + token := oauth1.NewToken(config[i].AccessTokenKey, config[i].AccessTokenSecret) httpClient := configu.Client(oauth1.NoContext, token) // twitter client client := twitter.NewClient(httpClient)

@@ -48,7 +48,7 @@ botnet.ScreenNames = append(botnet.ScreenNames, config[i].Title)

} botnet.Clients = clients - fmt.Println("connection successfull") + fmt.Println("connection successful") return botnet }