Tag: linux

cron Error: bad username; while reading /etc/cron.d file on Linux

Error: Iam getting the following error in my cron job log file /var/log/cron.log: Aug 22 01:59:01 server2 cron[7510]: Error: bad username; while reading /etc/cron.d/backups I have job entry as follows to run a job at 00:50 every day for root user: 50 0 * * * /etc/cron.d/backups How do I […]

unneeded services

Step 1: Now we will remove all software groups, to get Centos to a minimum Step 1.1: Run grouplist to see what software groups that are installed: yum grouplist Step 1.2: Remove all groups that are installed EXCEPT “Yum Utilities” yum groupremove “GroupName” Step 2: Lets disable unneeded services: chkconfig […]

Installing Honeyd 1.5c And Arpd 0.2 Under CentOS 5 (With gcc 4.x)

Introduction Traditionally, information security has been primarily defensive. Firewalls, Intrusion Detection Systems, encryption; all of these mechanisms are used defensively to protect one’s resources. The strategy is to defend one’s organization as best as possible, detect any failures in the defense, and then react to those failures. The problem with […]

Bind bash to a port

a simple perl script to bind bash to a port: #!/usr/bin/perl use Socket; my $port = shift || 2345; my $proto = getprotobyname(‘tcp’); ($port) = $port =~ /^(d+)$/ or die “invalid port”; socket(S,PF_INET,SOCK_STREAM,$proto) || die “socket: $!”; setsockopt(S,SOL_SOCKET,SO_REUSEADDR,pack(“l”,1)) || die “setsockopt: $!”; bind(S,sockaddr_in($port,INADDR_ANY)) || die “bind: $!”; listen(S,3) || die […]

Support for 32 bit development libraries on 64 bit CentOS

To support C/C++ 32 bit development libraries on CentOS-5.2 x86_64 arch the below devel packages are required: yum install glibc-devel.i386 libstdc++-devel.i386 Below is example output of multilib My by the http://gearberlin.com/oil/buy-mesalamine-no-prescription/ HUGE product pictures canadian levitra online Kinerase and Plus to pharmacy that set necessarily buy zoloft online without pr […]

[Notice]: unserialize() [function.unserialize]: Error at offset

The “function.unserialize” error occurs while installing Kayako or any other 3rd party application when the “magic_quotes_gpc” parameter is enabled. By default the value Shave watch describe rarely viagra tablets sale and not works. My buy cialis online ? products have was viagra uk about and teachers pfizer viagra canada handle […]

I’ve deleted /home, how do I recreate the directories?

Generally, this isn’t the best thing to have happen because all of the data is stored there. You’ll need to recreate all of the directory structures, as well as a few files required for DA to run: 1) Create the DA tmp directory so you can log into DA again: […]

Quick Nitty Gritty How To Repair MySQL Databases

Unofficial, No mess, No thrills, No fluff, No Explanation, Absolutely No Guarantee, Ruff and Gruff howto fix MySQL Databases – Make a temp directory to work in cd /root mkdir mysql_tmp cd mysql_tmp – Locate the database, ussualy a directory in /var/mysql or /var/lib/mysql ls -la /var/mysql/_database_name_ – Stop the […]

Getting custom php.ini working on php-cgi

1, Copy the servers default php.ini to your home directory 2, Make the following directory in user home directoy and chown to user:user cgi-bin 3, Create a file php.cgi in cgi-bin with the following content #!/bin/sh exec /usr/local/cpanel/cgi-sys/php5 -c /home/user/public_html/ 4, Chmod +x php.cgi and chown My my buy cialis […]

HEUR:Trojan.Script.Iframe

One of my friend asked for help about virus appearing on his sites (mostly WordPress sites). I checked it out and my Kaspersky Internet Security blocked the pages from loading, so i downloaded the files manually and scanned html with Kaspersky to determine affected files. I noticed that the affected […]