Skip to content

Instantly share code, notes, and snippets.

@phpdude
Created December 31, 2014 20:29
Show Gist options
  • Save phpdude/771132cc605530164587 to your computer and use it in GitHub Desktop.
Save phpdude/771132cc605530164587 to your computer and use it in GitHub Desktop.
Send a gift in vk.com myself :)
curl -H 'Cookie: YOUR COOKIES HERE' 'https://vk.com/al_gifts.php' -d act=do_send -d al=1 -d confirm=1 -d from=profile -d hash=$HASH_FROM_AJAX_REQUESTS -d mids=$YOUR_ID -d need_module=0 -d number=$GIFT_ID -d tab=new_year -d text= -d type=0 | iconv -f cp1251
# You can get cookie from your browser by any developer browser extension
# $HASH_FROM_AJAX_REQUESTS you can get from nay ajax request.
# $GIFT_ID - Gift ID. Can get it with developer tools from gift select box.
# $YOUR_ID - Your vk.com ID.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment