Pixelpost

Authentic Photoblog Flavour


Go Back   Pixelpost Forum > SUPPORT / INFORMATION > Pixelpost Help

Post Reply
 
Thread Tools
  #1  
Old 01-27-2006, 08:50 AM
tinyblob's Avatar
tinyblob Offline
team pixelpost
 
Join Date: Nov 2005
Location: scotland
Posts: 523
Defaced cleaner!

just knocked up a very quick php script which deletes our lovely new friends defacement comments.

it's simply:
PHP Code:
require("includes/pixelpost.php");
require(
"includes/functions.php");
start_mysql();
$query sql_query("DELETE FROM ".$pixelpost_db_prefix."comments WHERE message LIKE '%defaced%'"); 
which deletes comments including the word defaced.

find it attached, download it, unzip it, upload it, and navigate to the file with your web browser. you'll just get a blank page, but it should have done the job.

i've knocked this out reallllly quick because i'm at work, and have better things to do. so if it screws up your comments, unlucky. it worked for me
Attached Files
File Type: zip undeface.zip (1.1 KB, 366 views)
__________________
touchnothing.net
Reply With Quote
  #2  
Old 01-27-2006, 08:53 AM
sentinel's Avatar
sentinel Offline
pixelpost guru
 
Join Date: Sep 2005
Posts: 130
adding words like "javascript" or "META" might help too, cause this two words are imho the "main problem"
Reply With Quote
  #3  
Old 01-27-2006, 09:04 AM
tinyblob's Avatar
tinyblob Offline
team pixelpost
 
Join Date: Nov 2005
Location: scotland
Posts: 523
this is a file that should be run once, and deleted. adding more words doesn't actually matter, assuming the comment contains the word "defaced" it's going to delete it. if the comment doesn't contain "defaced" it's trivial to open this script in notepad and substitute another word
__________________
touchnothing.net
Reply With Quote
  #4  
Old 01-27-2006, 09:07 AM
sentinel's Avatar
sentinel Offline
pixelpost guru
 
Join Date: Sep 2005
Posts: 130
ahm true
*moving back to the edge he came from*
Reply With Quote
  #5  
Old 01-27-2006, 09:28 AM
tinyblob's Avatar
tinyblob Offline
team pixelpost
 
Join Date: Nov 2005
Location: scotland
Posts: 523
you are right though, those are the more pertinent parts to check for.
it's just that this is intended to clean one specific issue, not check for potential ones
__________________
touchnothing.net
Reply With Quote
  #6  
Old 01-27-2006, 09:52 AM
raminia's Avatar
raminia+ Offline
Team Pixelpost
 
Join Date: Jan 2005
Location: FL, US
Posts: 3,706
Send a message via Yahoo to raminia
Patch to prevent further attacks

To prevent further attacks try this provieded by blinking8s. I'm testing it on my photoblog now... works for me.
Replace the file includes/functions.php with this modified file function.php.

the patch is for pixelpost 1.5 Beta and 1.4.3. Please download the file according to your photoblog versiona and test it please.
Attached Files
File Type: zip functions_143.zip (2.4 KB, 318 views)
File Type: zip functions_15Beta.zip (7.9 KB, 349 views)
__________________
Photoblog: http://pblog.raminia.com Powered by Pixelpost 1.7
Reply With Quote
  #7  
Old 01-27-2006, 09:35 PM
eon's Avatar
eon Offline
pixelpost guru
 
Join Date: Nov 2005
Location: Ned
Posts: 280
Send a message via ICQ to eon
That's cool, thank's!
__________________
Northing.nl
Reply With Quote
  #8  
Old 01-27-2006, 09:38 PM
blinking8s's Avatar
blinking8s+ Offline
über loafer
 
Join Date: Oct 2004
Location: Bowling Green, Ky
Posts: 3,428
Send a message via ICQ to blinking8s Send a message via AIM to blinking8s Send a message via MSN to blinking8s Send a message via Skype™ to blinking8s
the patch ramin provided isnt our final solution...so please stay tuned for an announcement
__________________
i should say more clever stuff
Reply With Quote
  #9  
Old 01-29-2006, 07:33 PM
raminia's Avatar
raminia+ Offline
Team Pixelpost
 
Join Date: Jan 2005
Location: FL, US
Posts: 3,706
Send a message via Yahoo to raminia
maybe
PHP Code:
$query sql_query("DELETE FROM ".$pixelpost_db_prefix."comments WHERE message LIKE '%<META%'"); 
would be better
__________________
Photoblog: http://pblog.raminia.com Powered by Pixelpost 1.7
Reply With Quote
Post Reply


Thread Tools




All times are GMT. The time now is 10:12 PM.

Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd. | Style Design: d3 designs