flock-botnet/README.md
README.mdRaw
1# flock-botnet
2
3A twitter flock botnet with bots replying tweets with text generated by Markov chains
4
5#### generating text with Markov chains
6Markov chain: https://en.wikipedia.org/wiki/Markov_chain
7
8The 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).
9
10### Replying tweets with Markov chains
11When 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.
12
13In the following examples, the bots ("andreimarkov", "dodecahedron", "projectNSA") are replying some people.
14
15
16
17-
18
19
20
21-
22
23
24
25-
26
27
28
29
30configuration file example (flockConfig.json):
31```
32[{
33 "title": "account1",
34 "consumer_key": "xxxxxxxxxxxxx",
35 "consumer_secret": "xxxxxxxxxxxxx",
36 "access_token_key": "xxxxxxxxxxxxx",
37 "access_token_secret": "xxxxxxxxxxxxx"
38 },
39 {
40 "title": "account2",
41 "consumer_key": "xxxxxxxxxxxxx",
42 "consumer_secret": "xxxxxxxxxxxxx",
43 "access_token_key": "xxxxxxxxxxxxx",
44 "access_token_secret": "xxxxxxxxxxxxx"
45 },
46 {
47 "title": "account3",
48 "consumer_key": "xxxxxxxxxxxxx",
49 "consumer_secret": "xxxxxxxxxxxxx",
50 "access_token_key": "xxxxxxxxxxxxx",
51 "access_token_secret": "xxxxxxxxxxxxx"
52 }
53]
54
55```