Escher Auernheimer ([info]weev) wrote in [info]brutal_honesty,
Amazon removed its customer-based reporting of adult books yesterday. I guess my game is up! Here's a nice piece I like to call "how to cause moral outrage from the entire Internet in ten lines of code".

I really hate reputation systems based on user input. This started a while back on Craigslist, when I was trying to score chicks to do heroin with. My listings like "looking to get tarred and pleasured" and "Searching for a heroine to do the paronym of this sentence's lexical subject" kept getting flagged. The hypocracy of the gay community disgusted me. They would flag my ads down but searching craigslist for "pnp" or "tina" reveals tons of hairy dudes searching for other hairy dudes to do meth with. How is homosexuality and meth okay but heterosexuality and heroin bad? So I decided to get them back and cause a few hundred thousand queers some outrage.

I'm logged into Amazon at a far later date and see it has a "report as inappropriate" feature at the bottom of a page. I do a quick test on a few sets of gay books. I see that I can get them removed from search rankings with an insignificant number of votes.

I do this for a while, but never really get off my ass to scale it until recently.

So I script some quick bash.
#!/bin/bash
let count = 1
while true; do
links -dump 'http://www.amazon.com/s/qid=0/?ie=ASCII&rs=1000&keywords=Gay_and_Lesbian&rh=n%3A!1000%2Ci%3Astripbooks%2Ck%3AHomosexuality&page='`echo $count`|grep \/dp\/ >> /tmp/amazon
((count++))
done

There's some quick code to grab all the Gay and Lesbian metadata-tagged books on amazon. Then I pull out all the IDs of the given books from those URLs:

cat /tmp/amazon |sed s/.*dp\\/// |sed s/\\/ref.*//

and I have a neat little list of the internal product ID of every fag book on Amazon.

Now from here it was a matter of getting a lot of people to vote for the books. The thing about the adult reporting function of Amazon was that it was vulnerable to something called "Cross-site request forgery'. This means if I referred someone to the URL of the successful complaint, it would register as a complaint if they were logged in. So now it is a numbers game.

I know some people who run some extremely high traffic (Alexa top 1000) websites. I show them my idea, and we all agree that it is pretty funny. They put an invisible iframe in their websites to refer people to the complaint URLs which caused huge numbers of visitors to report gay and lesbian items as inappropriate without their knowledge.

I also hired third worlders to register accounts for me en masse. If you ever need a service like that, you can find them in a post like this advertising in the comments:
http://ha.ckers.org/blog/20070427/solving-captchas-for-cash/

Then they would log into the accounts, save the cookies in a cookie file and send it to me.

Then I used the cookie files like so to automated-report all the books:

for i in `cat /tmp/amazon |sed s/.*dp\\/// |sed s/\\/ref.*//`; do lynx -cookie_file=/home/avex/cookie1 http://www.amazon.com/ri/product-listing/`echo $i`/;done

The combination of these two actions resulted in a mass delisting of queer books being delisted from the rankings at Amazon.

I guess my game is up, but 300+ hits on google news for amazon gay
and outrage across the blogosphere
ain't so bad.

The only person to figure it out was dely from Six Apart: http://tehdely.livejournal.com/88823.html
but he has been ground zero at my work, cleaning up my messes before. Who else trolls via moral outrage? Not many in the scene that I know of.

Edit:

This seems to be a pretty good rebuttal to those who say my link-gathering code didn't work-- a video of a third party executing it. elinks (what gets installed by default on ubuntu when you install links via apt-get) DOES dump links, and my regexp is correct in that it works and does its job. Anyone who failed to get this code working didn't copy and paste correctly.

Some assholes at reddit like to point out how my use of cat is redundant and how I should use quotes instead of escaping.

Well now, I've got some advice for you, third tier sysads. I like to escape more than I like quotes. It allows one to be completely zen and live only in the current part of their character buffer, with no regards to the state of anything previous that you have written. Fuck quotes. I don't use them. I live in the present. I flow like water. I am the Bruce Lee of Regexp. Fuck you.

  • Post a new comment

    Error

    Comments allowed for members only

    Anonymous comments are disabled in this journal

    Your reply will be screened

    Your IP address will be recorded 

  • 105 comments
Previous
← Ctrl← Alt
Next
Ctrl →Alt →

[info]scottrossi

April 13 2009, 14:45:12 UTC 3 years ago

before you are attacked by a bunch of angry homosexuals, let me just say that, i, on behalf of the entire gay race, forgive you in the name of lulz.

for like 30 seconds i was like "OH HELL NO, WAIT ONE MINUTE AMAZON" but then i was like "wait, this is too perfect ..." and then i was lollin'

[info]jameth

April 14 2009, 00:50:04 UTC 3 years ago

oh my god u got first comment.

[info]old_age

3 years ago

[info]nothingmuch

April 13 2009, 14:47:12 UTC 3 years ago

lol ok

[info]anewcliche

April 13 2009, 14:58:10 UTC 3 years ago

You have way too much free time on your hands.

[info]ubet_cha

April 13 2009, 20:13:28 UTC 3 years ago

Iawtc.

Even if the work you have just given their Marketing and Enterprise Security people amuses the hell out of me

[info]xulong

April 13 2009, 15:00:32 UTC 3 years ago

this is the first post you've made that I enjoyed. awesome work dude.

[info]malika

April 13 2009, 15:11:48 UTC 3 years ago

oh my god, this is amazing. I can't wait to see all the libtards' reactions when they figure it out

[info]malika

3 years ago

[info]arkaycee

3 years ago

[info]malika

3 years ago

[info]weev

3 years ago

[info]aquariumdrink_r

April 13 2009, 15:22:55 UTC 3 years ago

half of this confused the fuck out of me, but it was a pretty entertaining read. so do they know who's responsible?

[info]aquariumdrink_r

April 13 2009, 15:26:43 UTC 3 years ago

or have like... even the vaguest idea?

[info]fearrett

3 years ago

[info]bearscanfly

April 13 2009, 15:23:46 UTC 3 years ago

I feel like I'm part of internet history :')

[info]focusthief

April 13 2009, 15:28:29 UTC 3 years ago

nerd alert!

[info]qa

April 13 2009, 15:32:34 UTC 3 years ago

O_o

[info]princessbecky13

April 13 2009, 15:37:46 UTC 3 years ago

At first I was like "wait, why punish a whole group for the actions of few?" and then I thought about it and realized I'd care a helluva lot less if you had flagged all religious texts or something. So I'm just gonna put my bias aside and say well played sir. Well played.

[info]tundra_no_caps

April 13 2009, 15:59:01 UTC 3 years ago

I wish I didn't have the same thought. I know many people who would have been overjoyed if all the religious books had the same treatment applied to them, and who are unhappy with this.

Also, if he did it for "lulz", then he's not really punishing many for the actions of the few, he's doing it for the "lulz".

[info]lizzelizzel

April 13 2009, 15:38:37 UTC 3 years ago

I wish I wasn't so impressed.

[info]yappatan

April 13 2009, 15:41:08 UTC 3 years ago

GJP.

I'm going to add this to my memories.

[info]onthereal

April 13 2009, 16:00:42 UTC 3 years ago

oh, [info]weev. only you.

[info]gaulish

April 13 2009, 16:08:53 UTC 3 years ago

o_o

[info]payoffpitch

April 13 2009, 16:13:19 UTC 3 years ago

Wooooooooow.


But couldn't you have flagged, say, Ann Coulter's books? Far right outrage is a lot funnier to me than, say, the freaking out of people on my f-list who I respected and now just kind of feel bad for.

Still. Kind of impressed. Imagine what you could do with that kind of power.

[info]paranoiattaque

April 13 2009, 16:13:54 UTC 3 years ago Edited:  April 13 2009, 17:38:46 UTC

i think you're awesome.

[info]boomstick

April 13 2009, 16:18:40 UTC 3 years ago

I love this post, I do.

[info]sarah_mascara

April 13 2009, 16:23:31 UTC 3 years ago

now if only you'd use your super powers for the good of mankind.

[info]payoffpitch

April 13 2009, 16:25:29 UTC 3 years ago

This is what I'm saying.

[info]demure

3 years ago

[info]payoffpitch

April 13 2009, 16:27:32 UTC 3 years ago

[info]sf_drama found this. And heeeere we go.

[info]ghoulia

April 14 2009, 03:38:20 UTC 3 years ago

I used to rather like [info]sf_drama. It's become such a quagmire of total morons freaking out and posting ugly pictures of themselves.

[info]ghoulia

3 years ago

[info]teefers

April 13 2009, 16:27:53 UTC 3 years ago

Hahaha, classic.

[info]la_asianloco

April 13 2009, 16:36:11 UTC 3 years ago

so this is really all about flagged craigslist ads?? LOLOL

[info]dannybaluarte

April 13 2009, 16:54:49 UTC 3 years ago

wow.....

[info]deathjoy

April 13 2009, 17:04:15 UTC 3 years ago

I FUCKING KNEW IT. Not that it was you, but that it didn't make sense and there had to be some sort of error. Amazon never had a history of that sort of thing and NO WAY they would not know what would happen if they did, and they would not commit retail suicide like that.

[info]redxmagnum

April 13 2009, 17:07:18 UTC 3 years ago

I hate user based rep systems, too, because people are fucking idiots.

Well done, sir.

[info]lady_kas

April 13 2009, 17:09:36 UTC 3 years ago

I read about it last night and thought it was kind of fishy.
Previous
← Ctrl← Alt
Next
Ctrl →Alt →
Create an Account
Forgot your login or password?
Facebook Twitter More login options
English • Español • Deutsch • Русский…