Technology solutions for Systems Engineers and Admins. Linux, Windows, scripts, and code.
Thursday, June 12, 2008
TENEBRIL Software causing XP logon issues
My issue was not related to BlazeFind and userinit.exe problems. It turns out there is a company called Tenebril that makes several programs that may cause you to logoff right after logging in. I can confirm that on this particular machine, a program called GhostSurf was at fault. I have also seen reports of a program by the same company called SpyCatcher that also caused the same issue.
Saturday, October 20, 2007
Deceptive Business: registrycleanerxp.com
Registrycleanerxp.com
These guys use what I call the mafia protection scheme. The mafia, at least as portrayed in films and television, may send two guys to your store to rough things up. Then they'll send another two guys forcing you to pay up for protection. Registrycleanerxp.com scans the internet looking for unfirewalled machines running the windows messenger service . They cause your machine to open a dialog box that contains the following:
REGISTRY DAMAGED AND CORRUPTED.
To FIX this problem:
Open Internet Explorer and type: www.registrycleanerxp.com
Once you load the web page, close this message window
After you install the cleaner program you will not receive any more reminders or pop-ups like this.
VISIT www.registrycleanerxp.com IMMEDIATELY!
So they cause your computer to display this message box with quite some frequency, and want to sell you their product to get rid of it. Further more, the messages come from random machines, likely to be infected zombies. A visit to their website shows this hilarious customer review on the side.
Mark,
I appreciate you finding a solution to my Messenger Service popup problem, it was coming to a point where I couldn't use the internet. The registry cleaner fixed over 100 problems, and my computer runs so much FASTER!!
Obviously this guy, if the review is genuine (unlikely), took the bait. See for yourself here.
Thursday, August 30, 2007
Web Form Spammers
Check for links. If the submitted data contains "href" or "http:" return true, else return false:
function haslinks($data) {
$data = strtolower($data);
$status = strpos($data, 'href');
if ($status) {
return "1";
}
else {
$status = strpos($data, 'http:');
if ($status) {
return "1";
}
else {
return "0";
}
}
}
You can then use this to just kill the script before it does anything with the posted data:
if (haslinks($content)) {
die;
}
That will work fine for just keeping the spam out of the recipient's inbox, but let's do something a bit more devious.
if (haslinks($content)) {
include denyspam.php
die;
}
denyspam.php
$ipaddr = $REMOTE_ADDR;
include "databaseconfig.php"
$query = "INSERT INTO deniedspam (ipaddr) VALUES ('$ipaddr')";
mysql_query($query) or die('Error, insert query failed');
$myFile = "htaccess";
$fh = fopen($myFile, 'w');
$fileout = "AddType application/x-httpd-php .html\n";
$fileout .= "order allow,deny\n";
$result = mysql_query("SELECT * FROM deniedspam");
if(!$result) die("Query Failed.");
while($row = mysql_fetch_assoc($result)) {
$addr = $row['ipaddr'];
$fileout .= $addr . "\n";
}
$fileout .= "allow from all\n";
fwrite($fh, $fileout);
fclose($fh);
mysql_close();
I've created a table called deniedspam with a single varchar item to hold the offender's IP address. When a new one gets added, the file htaccess gets overwritten with all the IP addresses in the table. There is then a cron job that copies htaccess to .htaccess to keep the appropriate permissions on .htaccess.
Now I have a nice database full of known content spamming IP addresses, and can see where it's all coming from. Nine out ten spams come from an address with an open proxy, which appear to mostly be compromised machines. The rest also appear to be your average botnet zombies.
This is of course just an experiment, I don't know what the effects of a very large .htaccess file full of deny entries will have on a webserver with a high load. I'm up to about 500 entries so far and haven't seen a noticeable impact on the server load.