top4ek 10.04.2011 08:27 home

Нород... шозанах?
#!/bin/bash

useragent="Mozilla/5.0 (X11; Linux i686; rv:2.0) Gecko/20110321 Firefox/4.0"
email="email@domain"
pass="psawword"
wallid="510154"
message="fuckyeah!"

gets=`curl -s --user-agent "$useragent" --data "email=$email&pass=$pass" http://login.vk.com/?act=login | egrep -o \([a-z]\|[0-9]\){20\,}`
curl -v --user-agent "$useragent" --cookie-jar /tmp/vkcookie --data "s=$gets&op=slogin&redirect=1&expire=0&to=0" http://vk.com/login.php
hash=`curl --user-agent "$useragent" -s http://vk.com/id$wallid | egrep -o '"post_hash":"[a-z0-9]+' | sed -e 's/"post_hash":"//'`
curl -v --user-agent "$useragent" --cookie-jar /tmp/vkcookie --data "act=post&al=1&friends_only=&hash=$hash&message=$message&not e_title=&official=&status_export=&to_id=$id&type=all" http://vk.com/al_wall.php
rm /tmp/vkcookie

А на стену ничо не срёцца О_о

1. top4ek 10.04.2011 08:30 home

s/&to_id=$id&/&to_id=$wallid&/

Do you really want to delete ?