July, 2009 - PowerCram Blog

BT4 PreFinal Manual Installation to Hard Drive

Create the following volumes: /dev/sda1 +64M Partition Boot Sector /dev/sda2 Varies Swap /dev/sda3 Varies / /dev/sda4 Varies Windows (this is optional) Format Drives root@bt:~# mke2fs /dev/sda1 root@bt:~# mkswap /dev/sda2 root@bt:~# swapon /dev/sda2 root@bt:~# mkreiserfs /dev/sda3 Manually Copy OS Files root@bt:~# mkdir /mnt/bt4 root@bt:~# mount /dev/sda3 /mnt/bt4/ root@bt:~# mkdir /mnt/bt4/boot root@bt:~# mount /dev/sda1 /mnt/bt4/boot root@bt:~# cp –preserve -R /{bin,dev,home,pentest,root,usr,boot,etc,lib,opt,sbin,var} […]

Cyber Security – Password Creation

Passwords are the most common means of authentication, but if you do not choose good passwords or keep them confidential, they are almost as ineffective as not having any password at all. Many systems and services have been successfully broken into due to the use of insecure and inadequate passwords. Some viruses and worms have exploited systems by […]

Linux User Commands

Every user who has access to a Linux system needs a login and a password. Each user must belong to a primary group and for security or access purposes can belong to several secondary groups. In order to create new logins, modify or delete users, you must already be logged in as root. The root login is the […]

Display Today’s (Current) Date Dynamically in HTML Pages

The Easy Way <script language=”javascript”> <!– document.write(Date()); –> </script> The easy way provides date, time and timezone information. If you want to display the date only, the following way will do that. The Hard Way <script language=”javascript”> <!– Today = new Date(); TodayDay = Today.getDate(); TodayMon = Today.getMonth(); TodayYear = Today.getYear(); if (TodayYear < 2000) TodayYear += 1900; […]

How to recover missing, lost, or deleted files from Windows XP, Vista, Server 2003 and 2008 and Windows 7 as well as Apple Macs

Before reviewing the below recommendations and suggestions, verify that the files have actually been deleted; in some cases the files may have simply been moved. You can search the hard disk drive for the files you believe to be missing by running find or search on the computer. Recover file from backupIf the file has been backed up […]

Exchange 2007 OWA Virtual Directory Creation

HOW TO CREATE OWA Virtual Directory in Exchange 2007 (using MSH)========================================================================================New-OWAVirtualDirectory -OwaVersion:Exchange2007 -Name “owa” -WebSite “Default Web Site” New-OWAVirtualDirectory -OwaVersion:Exchange2007 -Name “owa” -WebSite “Exchange.1701media.com” OUTPUT: Name Server OwaVersion—- —— ———-owa (Default Web Site) 1701DC01 Exchange2007

Linux local content backup and rotation script

### Script by jim ballowe – content.sh can be put into### /etc/cron.dailly on a RH linux box once complete### and will backup to TARGET location on local filesystem ### Define variables for naming the final backup fileDATE=`date +%Y%m%d-%H%M` # Datestamp e.g 20080109-2200DOW=`date +%A` # Day of the week e.g. MondayDNOW=`date +%u` # Day number of the week 1 […]