Skip to content

Instantly share code, notes, and snippets.

@berdosi
Created December 4, 2009 17:56
Show Gist options
  • Save berdosi/249203 to your computer and use it in GitHub Desktop.
Save berdosi/249203 to your computer and use it in GitHub Desktop.
#!/bin/bash
BELEPES_USERNAME=töltsd_ki
BELEPES_JELSZO=ezt_is
TEMPFILE=`tempfile`
HREF=`curl -isL -c $TEMPFILE www.tvn.hu | grep Location | sed -e "s#.*\(http://.*\)index.tvn#\1iranymondo.tvn#" | tail -n 1`
POSTDATA="belepes_username=${BELEPES_USERNAME}&belepes_jelszo=${BELEPES_JELSZO}&js_autodetect_results=0&just_logged_in=1&varas=tvn.hu&gokep.x=29&gokep.y=8"
curl -sL -b $TEMPFILE -c $TEMPFILE -d $POSTDATA $HREF
rm $TEMPFILE
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment