MySQL Crib Sheet Cheat Sheet

To login (from unix shell) use -h only if needed.[mysql dir]/bin/mysql -h hostname -u root -p Create a database on the sql server.create database [databasename]; List all databases on the sql server.show databases; Switch to a database.use [db name]; To see all the tables in the db.show tables; To see database’s field formats.describe [table name]; […]

HowTo: Backtrack 4 (Beta) Hard Drive Installation

UPDATE: See BackTrack 4 Pre-Release Hard Disk Install for updated instructions for the newer BackTrack 4 Beta. Backtrack 4 does not contain an installer, so we wrote this step by step guide based on muts cookbook on how to install Backtrack 4 on our hard disk drive. Step 1 – Creating the partitionsFirst we will need […]

Linux Command: iwconfig

NAME iwconfig – configure a wireless network interface SYNOPSIS iwconfig [interface]iwconfig interface [essid X] [nwid N] [mode M] [freq F][channel C][sens S ][ap A ][nick NN ][rate R] [rts RT] [frag FT] [txpower T][enc E] [key K] [power P] [retry R][commit]iwconfig –helpiwconfig –version DESCRIPTION Iwconfig is similar to ifconfig(8), but is dedicated to the wireless […]

login script vbscript printer mappings

Create a file called file.vbs, then copy and past the content belowthe pound signs w/ appropriate information to map network printersReference it in the user account after placing it under %NETLOGON%############################################## on error resume next Set WshNetwork = Wscript.CreateObject(“Wscript.Network”) wshNetwork.AddWindowsPrinterConnection “\serverprintershare” WSCript.Quit

Securing Linux & PHP

MOD_REWRITE OVERVIEWhttp://www.sitepoint.com/article/guide-url-rewritinghttp://www.jeffdarlington.com/tag/mod_rewrite/ LINUX SECURE CONFIGhttp://aymanh.com/tips-to-secure-linux-workstation PHP SECURE CONFIGhttp://aymanh.com/checklist-for-securing-php-configuration MOD_REWRITE SCRIPTS FOR APACHESIMPLEST SET OF RULES================================================================== #Turn on mod_rewriteRewriteEngine OnRewriteOptions inheritRewriteLog “/var/log/httpd/rewrite_log” # Prevent harmful binary execution through injectionRewriteCond %{REQUEST_URI}?%{QUERY_STRING} (.*)chmod(.*) [OR]RewriteCond %{REQUEST_URI}?%{QUERY_STRING} (.*)chown(.*) [OR]RewriteCond %{REQUEST_URI}?%{QUERY_STRING} (.*)wget(.*) [OR]RewriteCond %{REQUEST_URI}?%{QUERY_STRING} (.*)cmd(.*) [OR]RewriteCond %{REQUEST_URI}?%{QUERY_STRING} (.*)cd%20(.*) [OR]RewriteCond %{REQUEST_URI}?%{QUERY_STRING} (.*)scp(.*) [OR]RewriteCond %{REQUEST_URI}?%{QUERY_STRING} (.*)curl(.*) [OR] # Disable TRACE & TRACK methodsRewriteCond […]

Creating Client SSL VPN on Cisco ASAs

Introduction This document how to allow remote access VPN connections to the ASA from the Cisco AnyConnect 2.0 client.PrerequisitesRequirements Ensure that you meet these requirements before you attempt this configuration: * Basic ASA configuration that runs software version 8.0* ASDM 6.0(2) Components Used The information in this document is based on these software and hardware […]