edwigetadmin

Feb 042012
 

I created this because I always forget the command to enumerate snmp and I am often too lazy to read man pages :)

#!/bin/bash
 
# By Ed Wiget
# This script takes an input ip or domain and performs a snmpwalk using common community strings
# 20120204 - initial script
 
function proghelp (){
	echo ""
	echo ""
	echo "Help:"
	echo "./eds-smtpwalk.sh ip_address"
	echo ""
	echo "Example:"
	echo "./eds-smtpwalk.sh 127.0.0.1"
	echo ""
	echo ""
}
 
if [ $# -ne 1 ]
then
clear
proghelp
exit
fi
 
# set up the first input value
if [ "$1" == "" ]; then
 
        echo "What is the ip address to query?"
        read SVRIP
else
        SVRIP=$1
fi
 
if [ -f wordlist-common-snmp-community-strings.txt ]; then
	for COMSTG in `cat wordlist-common-snmp-community-strings.txt`
		do
# removed below in favor of auto list
# set up the second input value
#if [ "$2" == "" ]; then
#        echo "What is the community string?"
#        read COMSTG
#else
#	COMSTG=$2
#fi
 
		snmpwalk -v2c -c ${COMSTG} $1 system
	done
 
else
 
echo "wordlist-common-snmp-community-strings.txt does not exist.......fetching now......please wait"
echo ""
wget http://fuzzdb.googlecode.com/svn/trunk/wordlists-misc/wordlist-common-snmp-community-strings.txt
echo ""
echo "please run again....."
fi

Feb 032012
 

You should see:

Part 1 – why i quit smoking (yea, I can say that now)

Part 2 – my first e-cig kit order and its problems

Part 3 – the upgrade kit that has been a dream

Part 4 – the flavor quest

So today I placed an order for some needed parts from my favorite e-cig supplier modern vapor for the lux kit.  If you want to order that kit, see the part 3 link above.  It has a link to it much like the parts I ordered below (and by the way, I do not work for and am not affiliated with modern vapor in any way.  I am just a happy customer showing huge progress in health since switching to e-cigs).

My most recent order consisted of:

Continue reading »

Jan 262012
 
#!/bin/bash
 
# By Ed Wiget
# This fixes dropbox sync issues on linux
 
# get a list of files executable now
find ~/Dropbox -type f -perm -u+x > /tmp/dropbox_files-`date +%Y%m%d`
 
# fix the permissions
sudo chown -R $USER ~/Dropbox
sudo chmod -R u+rw ~/Dropbox
sudo chown -R $USER ~/.dropbox
sudo chmod -R u+rw ~/.dropbox
 
# remove any conflicting files from the file list above step 1
grep -v -e "conflicted copy" -e "Case Conflict" /tmp/dropbox_files-`date +%Y%m%d` > /tmp/dropbox_files-`date +%Y%m%d`.txt
# set the executable permissions back
for files in `echo /tmp/dropbox_files-\`date +%Y%m%d\`.txt` ; do chmod u+x "${files}" ; done
 
# remove any files that are in conflict
find ~/Dropbox -type f -name \*"conflicted copy"\* -exec rm -f "{}" \;
find ~/Dropbox -type f -name \*"Case Conflict"\* -exec rm -f "{}" \;
 
# remove temp files
rm -f /tmp/dropbox_files-`date +%Y%m%d`
rm -f /tmp/dropbox_files-`date +%Y%m%d`.txt
Sometimes you will run into an issue where you have multiple computers that mysteriously stop syncing with dropbox. What I have found is it is almost always caused by 1 of 2 things……file permissions, conflicts. I have 8 devices syncing to my dropbox, and every single one of them are linux except for one. It seems as though anytime I use my sole Windows computer to add something to dropbox….the others mess up. I suspect an issue with linux file permissions and windows ntfs drives.

Anyways, this script will fix the problems. Make sure you adjust the path if your linux install does not have dropbox at ~/Dropbox.

Jan 182012
 

 

I usually don’t disable apache, php, nginx headers because to me that is just security through obscurity.

My thoughts are this…..

  1. if someone doesn’t know what version of software you are running and they decide to hack your domain or server, they will simply throw every public exploit at it that exists for said product or even simply “fingerprint” it for the correct version
  2. It makes my life easier because I can also query for those headers if for some reason I don’t remember the version of software (which saves me from logging in to the server or using other methods that might take longer – efficiency is key!)
  3. skiddies are going to throw everything at it anyways

On the flipside…..

Continue reading »

Jan 102012
 

For some reason, websecurify does not work in fluxbox…..well, it works just fine, you just can’t see the results due to a theme issue.  It definately appears related to the chrome theme used in websecurify because changing qt theme and gtk theme has no effect.  Also changing the fluxbox theme does not work and my regular chrome browser works fine.

Images below…

Jan 102012
 
darktable

Everybody knows I have been an avid daily linux user since…..1995 or so, and I switched to linux as my primary desktop around 1997.  The ONE struggle I have had since day 1 is that I do photography as a hobby and since I started using photoshop (I think around version 3), I have never been able to find a permanent solution for linux.  I have used gimp, I even used gimp in the photography classes I taught but it is lacking in several areas…..one being 16+ bit support, the second being layered tiffs, and the third being its just not photoshop.  Then, along came lightroom while I was actually beginning to use gimp with digikam more….and that pretty much moved me back to photoshop again.

So, I have been fighting with trying to keep photoshop and lightroom working on wine and really just wishing adobe would come out with a photoshop and lightroom version for linux (I think they would make a freaking killing), trying Bibble again and trying to decide if I wanted to pay the price (I actually went to purchase it and for the life of me couldn’t figure out how….so you guys lost a sale just because there was no way to make a purchase from my signed in account with my expired trial license)…..when I came across Darktable.  Darktable aims to be a replacement for Lightroom.  Its really easy to install too.

Installation

Continue reading »

Jan 092012
 

One of the easiest ways to set up a subversion server that is lightweight is to use an existing linux server with sufficient free space available to hold your repositories.  This is much more lightweight because it really doesn’t require any additional software or services, outside of subversion which is likely already installed if you use the svn client; and ssh which is probably already installed and running.

I will give the steps I used for centos, but it will work with other linux distributions if you apply the correct package management steps (pacman, apt-get, yum, emerge, etc):

First, make sure we have subversion and openssh installed:

yum install subversion openssh-server

Continue reading »

Dec 122011
 
fluxbox-win7

So, I use linux exclusively….for everything except my photography post-processing.  I don’t care about the rants and raves people give me about gimp, my workflow has included photoshop since Photoshop v3.0 (like mid-1990′s), and its just too hard to switch…..so I keep one windows machine around just to do photoshop tasks.

Now that I have my fluxbox bliss on my 16GB Quad-core machine dual booting with the factory Windows 7….I thought it would be nice to be able to run windows 7 inside of Linux.  In the past, I always did the “virtualbox from new installation”.  Its kind of a pain in the ass and a huge waste of disk space.

Doing some quick research, I found several articles on booting the physically installed windows in virtualbox and after many trials and errors, I found a simple solution that works.

Here is how I set it up…..

Continue reading »

Dec 102011
 

Why did I build a new xchat package for backtrack 5?  Because there is a bug in the one that is included.  The bug causes favorites to not be saved on exit.  I don’t know if it affects everybody but I found a bug on the xchat website that is over a year old regarding it.  So, if ubuntu or backtrack maintainers won’t fix it…..I will.

You can get the source and deb packages here:

http://www.edwiget.name/files/xchat_2.8.8-1_amd64.deb
http://www.edwiget.name/files/xchat_2.8.8.orig.tar.gz

The requires libperl-dev which apparently doesn’t exist in the repos too….so its here:
http://www.edwiget.name/files/libperl-dev_5.10.1-8ubuntu2.1_amd64.deb