You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

55 lines
2.2 KiB

7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
  1. # flock-botnet [![Go Report Card](https://goreportcard.com/badge/github.com/arnaucode/flock-botnet)](https://goreportcard.com/report/github.com/arnaucode/flock-botnet)
  2. A twitter botnet with autonomous bots replying tweets with text generated based on probabilities in Markov chains
  3. ### generating text with Markov chains
  4. Markov chain: https://en.wikipedia.org/wiki/Markov_chain
  5. The 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).
  6. ### Replying tweets with Markov chains
  7. 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.
  8. In the following examples, the bots ("andreimarkov", "dodecahedron", "projectNSA") are replying some people.
  9. ![flock-botnet](https://raw.githubusercontent.com/arnaucode/flock-botnet/master/screenshots/01.png "01")
  10. -
  11. ![flock-botnet](https://raw.githubusercontent.com/arnaucode/flock-botnet/master/screenshots/02.jpeg "02")
  12. -
  13. ![flock-botnet](https://raw.githubusercontent.com/arnaucode/flock-botnet/master/screenshots/03.jpeg "03")
  14. -
  15. ![flock-botnet](https://raw.githubusercontent.com/arnaucode/flock-botnet/master/screenshots/04.jpeg "04")
  16. configuration file example (flockConfig.json):
  17. ```
  18. [{
  19. "title": "account1",
  20. "consumer_key": "xxxxxxxxxxxxx",
  21. "consumer_secret": "xxxxxxxxxxxxx",
  22. "access_token_key": "xxxxxxxxxxxxx",
  23. "access_token_secret": "xxxxxxxxxxxxx"
  24. },
  25. {
  26. "title": "account2",
  27. "consumer_key": "xxxxxxxxxxxxx",
  28. "consumer_secret": "xxxxxxxxxxxxx",
  29. "access_token_key": "xxxxxxxxxxxxx",
  30. "access_token_secret": "xxxxxxxxxxxxx"
  31. },
  32. {
  33. "title": "account3",
  34. "consumer_key": "xxxxxxxxxxxxx",
  35. "consumer_secret": "xxxxxxxxxxxxx",
  36. "access_token_key": "xxxxxxxxxxxxx",
  37. "access_token_secret": "xxxxxxxxxxxxx"
  38. }
  39. ]
  40. ```