Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/arnaucube/flock-botnet
Twitter botnet with autonomous bots replying tweets with text generated based on probabilities in Markov chains
https://github.com/arnaucube/flock-botnet
Last synced: about 9 hours ago
JSON representation
Twitter botnet with autonomous bots replying tweets with text generated based on probabilities in Markov chains
- Host: GitHub
- URL: https://github.com/arnaucube/flock-botnet
- Owner: arnaucube
- License: gpl-3.0
- Created: 2017-04-21T22:54:00.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-10-07T14:47:07.000Z (about 6 years ago)
- Last Synced: 2024-06-20T09:31:54.248Z (5 months ago)
- Language: Go
- Homepage: http://arnaucube.com/flock-botnet/
- Size: 4.39 MB
- Stars: 58
- Watchers: 5
- Forks: 15
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# flock-botnet [![Go Report Card](https://goreportcard.com/badge/github.com/arnaucode/flock-botnet)](https://goreportcard.com/report/github.com/arnaucode/flock-botnet)
A twitter botnet with autonomous bots replying tweets with text generated based on probabilities in Markov chains
### generating text with Markov chains
Markov chain: https://en.wikipedia.org/wiki/Markov_chainThe algorithm calculates the probabilities of Markov chains, analyzing a considerable amount of text, for the examples, I've done it with the book "The Critique of Pure Reason", by Immanuel Kant (http://www.gutenberg.org/cache/epub/4280/pg4280.txt).
### Replying tweets with Markov chains
When the botnet is up working, the bots start streaming all the twitter new tweets containing the configured keywords. Each bot takes a tweet, analyzes the containing words, and generates a reply using the Markov chains previously calculated, and posts the tweet as reply.In the following examples, the bots ("andreimarkov", "dodecahedron", "projectNSA") are replying some people.
![flock-botnet](https://raw.githubusercontent.com/arnaucode/flock-botnet/master/screenshots/01.png "01")
-
![flock-botnet](https://raw.githubusercontent.com/arnaucode/flock-botnet/master/screenshots/02.jpeg "02")
-
![flock-botnet](https://raw.githubusercontent.com/arnaucode/flock-botnet/master/screenshots/03.jpeg "03")
-
![flock-botnet](https://raw.githubusercontent.com/arnaucode/flock-botnet/master/screenshots/04.jpeg "04")
configuration file example (flockConfig.json):
```
[{
"title": "account1",
"consumer_key": "xxxxxxxxxxxxx",
"consumer_secret": "xxxxxxxxxxxxx",
"access_token_key": "xxxxxxxxxxxxx",
"access_token_secret": "xxxxxxxxxxxxx"
},
{
"title": "account2",
"consumer_key": "xxxxxxxxxxxxx",
"consumer_secret": "xxxxxxxxxxxxx",
"access_token_key": "xxxxxxxxxxxxx",
"access_token_secret": "xxxxxxxxxxxxx"
},
{
"title": "account3",
"consumer_key": "xxxxxxxxxxxxx",
"consumer_secret": "xxxxxxxxxxxxx",
"access_token_key": "xxxxxxxxxxxxx",
"access_token_secret": "xxxxxxxxxxxxx"
}
]```