Cisco is presenting his own twitter tcl script (Nov 2009)
tweet-policy.tcl (local)
Install of the script:
Prepare IP + login + password (on the linux box)
$ dig +short twitter.com
128.121.146.100
$ echo twitterlogin:twitterpassword | base64 -
dHdpdHRlcmxvZ2luOnR3aXR0ZXJwYXNzd29yZAo=
Cisco Device:
evil-router# copy tftp://192.168.0.1/tweet-policy.tcl flash:/tweet-policy.tcl
evil-router(config)# event manager directory user policy "flash:/"
evil-router(config)# event manager policy tweet-policy.tcl type user
evil-router(config)# event manager environment _tweet_ip 128.121.146.100
evil-router(config)# event manager environment _tweet_b64 dHdpdHRlcmxvZ2luOnR3aXR0ZXJwYXNzd29yZAo=
evilrouter# event manager run tweet-policy.tcl
evil-router(config)#event manager applet tweetme
evil-router(config-applet)# event timer watchdog time 300
evil-router(config-applet)# action 1 policy tweet-policy.tcl
|