Diferències
Ací es mostren les diferències entre la revisió seleccionada i la versió actual de la pàgina.
| linux:scripts:twitter [22/11/2011 19:18] – creado mate | linux:scripts:twitter [05/10/2026 08:47] (actual) – suprimit mate | ||
|---|---|---|---|
| Línia 1: | Línia 1: | ||
| - | = Twitter desde linea de comando | ||
| - | <code bash> | ||
| - | #!/bin/bash | ||
| - | #Twitter status update bot by http:// | ||
| - | #Author: Luka Pusic < | ||
| - | #REQUIRED PARAMS | ||
| - | username=" | ||
| - | password=" | ||
| - | tweet=" | ||
| - | |||
| - | #EXTRA OPTIONS | ||
| - | uagent=" | ||
| - | sleeptime=0 #add pause between requests | ||
| - | |||
| - | if [ $(echo " | ||
| - | echo " | ||
| - | fi | ||
| - | |||
| - | touch " | ||
| - | |||
| - | #INITIAL PAGE | ||
| - | echo "[+] Fetching twitter.com..." | ||
| - | initpage=`curl -s -b " | ||
| - | token=`echo " | ||
| - | |||
| - | #LOGIN | ||
| - | echo "[+] Submitting the login form..." | ||
| - | loginpage=`curl -s -b " | ||
| - | |||
| - | #HOME PAGE | ||
| - | echo "[+] Getting your twitter home page..." | ||
| - | homepage=`curl -s -b " | ||
| - | |||
| - | #TWEET | ||
| - | echo "[+] Posting a new tweet..." | ||
| - | tweettoken=`echo " | ||
| - | update=`curl -s -b " | ||
| - | |||
| - | #LOGOUT | ||
| - | echo "[+] Logging out..." | ||
| - | logout=`curl -s -b " | ||
| - | |||
| - | rm " | ||
| - | </ | ||
| - | http:// | ||