LouKY_Anon

#TweetCannon paste backup.

Apr 20th, 2014
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. How to install (and run) sferik /t, a command-line power tool for Twitter on your Mac
  2.  
  3. By: @Louky_Anon
  4.  
  5. I was able to successfully install this on my Kali Linux laptop without running into any problems following the instructions provided at the github link. I wanted to be able to run this on my Macbook Pro but I ran into some installation issues. Below are are the steps I took to install sferik/t on my Macbook.
  6.  
  7. 1. Install Apple XCode if you don’t already have it installed, it’s located in the app store.
  8. 2. Open XCode and go to XCode -> Preferences and click on downloads.
  9. 3. Install “Command Line Tools”
  10. 4. Follow the instructions here: https://github.com/sferik/t
  11.  
  12. You may need to install json if you receive errors in step 4:
  13. $ sudo gem install json
  14.  
  15. To post timed tweets (twitter storm) contained in a plain text file I created a shell script and named it storm.sh and you pass a file name as the first parameter, the number of seconds between tweets in seconds in the second parameter, the number of seconds to wait before tweeting.
  16.  
  17. Example:
  18. $ ./storm.sh storm.txt 300 3600
  19.  
  20. This will invoke the script and tweet each line in sequence from the text file storm.txt, one line every 300 seconds, to start running in one hour after you hit enter/return.
  21.  
  22. Contents of the file you wish to tweet should be in plain text, each line no longer than the 140 character maximum and should reside in the same directory as your script. An example text file contents:
  23.  
  24. #OpWhaterver Text to tweet, line one
  25. #OpWhaterver Text to tweet, line two
  26. #OpWhaterver Text to tweet, line three
  27. #OpWhaterver Text to tweet, line four
  28. Etc...
  29.  
  30. **NOTE** Be sure not to have any blank lines in your input file.
  31.  
  32. The script I currently use (below) displays my EXTERNAL IP address so I can make sure my vpn is running. If it is not running I exit the script by hitting control c.
  33.  
  34. #!/bin/bash
  35. ## first parameter is the file name
  36. ## second parameter is the time between tweets in seconds
  37. ## third parameter is the time to wait to begin tweeting
  38. clear
  39. echo "Your current external IP is: "
  40. curl icanhazip.com
  41. echo "Make sure your VPN is enabled. You have $3 seconds to exit (control-c)"
  42. echo "before the script begins."
  43. sleep $3
  44. cat $1 | while read line; do t update "$line"; sleep $2; done
  45.  
  46. This script also works within my Kali Linux install and should also work on any version of Linux with bash.
Add Comment
Please, Sign In to add comment