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.

47 lines
1.9 KiB

  1. # projectFlock
  2. a twitter botnet with bots replying tweets with text generated by Markov chains
  3. ##### generating text with Markov chains
  4. 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).
  5. #### Replying tweets with Markov chains
  6. 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.
  7. In the following examples, the bots ("andreimarkov", "dodecahedron", "projectNSA") are replying some people.
  8. ![Argos](https://raw.githubusercontent.com/arnaucode/projectFlock/master/screenshots/01.png "01")
  9. ![Argos](https://raw.githubusercontent.com/arnaucode/projectFlock/master/screenshots/02.jpeg "02")
  10. ![Argos](https://raw.githubusercontent.com/arnaucode/projectFlock/master/screenshots/03.jpeg "03")
  11. ![Argos](https://raw.githubusercontent.com/arnaucode/projectFlock/master/screenshots/04.jpeg "04")
  12. configuration file example (flockConfig.json):
  13. ```
  14. [{
  15. "title": "account1",
  16. "consumer_key": "xxxxxxxxxxxxx",
  17. "consumer_secret": "xxxxxxxxxxxxx",
  18. "access_token_key": "xxxxxxxxxxxxx",
  19. "access_token_secret": "xxxxxxxxxxxxx"
  20. },
  21. {
  22. "title": "account2",
  23. "consumer_key": "xxxxxxxxxxxxx",
  24. "consumer_secret": "xxxxxxxxxxxxx",
  25. "access_token_key": "xxxxxxxxxxxxx",
  26. "access_token_secret": "xxxxxxxxxxxxx"
  27. },
  28. {
  29. "title": "account3",
  30. "consumer_key": "xxxxxxxxxxxxx",
  31. "consumer_secret": "xxxxxxxxxxxxx",
  32. "access_token_key": "xxxxxxxxxxxxx",
  33. "access_token_secret": "xxxxxxxxxxxxx"
  34. }
  35. ]
  36. ```