Install VMware Tools on Centos 6

This is a HOWTO for installing VMware Tools on Centos 6.x. Update your system so the kernel headers/devel will match your system: yum update Install the VMware tools prerequisites: yum install make gcc kernel-devel kernel-headers glibc-headers perl Reboot the server: shutdown -r now Mount the VMware Tools CD (after inserting it into the VM) mkdir /media/cdrom mount /dev/cdrom /media/cdrom Copy the install bundle from the CD and extract it. cp /media/cdrom/VMware-Tools*.tar.gz /root cd /root tar xvfz VMwareTools*.tar.gz Run the installer, default on all prompts works fine. ...

April 29, 2013 · 1 min · thomasf

Force shutdown or kill a stuck VMWare virtual machine

Sometimes when a LUN is full a VM cannot shutdown properly Make a SSH connection to the host where the VM running at Login as root list all running VM’s # vmware-cmd -l Get the current state # vmware-cmd /vmfs/volumes/<UUID>/<VMDIR>/<VMNAME>.vmx getstate Output: [root@esx ~]# vmware-cmd /vmfs/volumes/<UUID>/<VMDIR>/<VMNAME>.vmx getstate getstate() = stuck Now you know for sure the status is stuck you can kill the VM ps auxwww |grep -i <VMNAME>.vmx</span> Output: root 3093 0.0 0.3 2016 860 ? S< Jul30 0:17 /usr/lib/vmware/bin/vmkload_app /usr/lib/vmware/bin/vmware-vmx -ssched.group=host/user -# name=VMware ESX Server;version=3.5.0;licensename=VMware ESX Server;licenseversion=2.0 build-158874; -@ pipe=/tmp/vmhsdaemon-0/vmx569228e44baf49d1; /vmfs/volumes/49392e30-162037d0-17c6-001f29e9abec/<VMDIR>/<VMNAME>.vmx The code right after root is the PID you must kill. First try only kill #kill 3093 Wait 30 seconds and try a getstate again: # vmware-cmd /vmfs/volumes/<UUID>/<VMDIR>/<VMNAME>.vmx getstate If the state is “off” your ready. If the state is still stuck try the following: #kill -9 3093 Wait 30 seconds and see the state is “off” now. If the state is still “stuck” migrate all VM’s to another host en reboot the host. ...

April 8, 2013 · 2 min · thomasf

Firefox disable all plugins by default

There are a lot of security issues because of bad plugins (Java, Flash, etc). You can disable all plugins by default so you must click to activate. about:config plugins.click_to_play set value to true Restart the browser Now all plugin are diabled by default and you must click to activate.

January 30, 2013 · 1 min · thomasf

My Raspberry Pi Project: Hack box

Finally I found a nice project for my Raspberry PI :) I’ll write down some notes in this post to make it easier to find back some linux commands. Please use this documentation only as a white hat hacker and for learning purposes only!!!! First: Have a compatible USB wireless dongle (list @ pwnpi.net ) Download PwnPI @ pwnpi.net Download win32diskimager @ http://sourceforge.net/projects/win32diskimager/ Write the image to a SD card Boot up your PI (with a network cable) Scan the network (I use netscan.exe) Connect with putty to your device To break in a WPS compatible wireless access point: ...

January 27, 2013 · 2 min · thomasf

Archlinux install UAR package (Arch User Repository)

Some packages are not in the default repositories you can install these on a alternative way. First install the base development tools: #pacman -S base-devel #pacman -S wget #pacman -S sudo Go to https://aur.archlinux.org and find you package Find the tarball, right click it and copy link location Wget the package (example nemo-fm) and install the package $cd ~ $wget https://aur.archlinux.org/packages/ne/nemo-fm/nemo-fm.tar.gz $tar xvzf nemo-fm.tar.gz $cd nemo-fm $makepkg -s $sudo pacman -U nemo-fm-1.0.2-1-i686.pkg.tar.xz Have fun :)

October 1, 2012 · 1 min · thomasf

Howto remove all kind of malware, rootkits, trojans and virusses

Best way to clean malware, rootkits, trojans and virusses (I call it malware from now on) is to backup your data, scan your data with another computer, remove your partition, reinstall Windows, install a virusscanner, update your Windows and put you data back. This is the safest method and I allways recommend this to people. But if you don’t want to reinstall everything you can follow this steps to get a infected pc clean. ...

September 9, 2012 · 2 min · thomasf

Stub zone easy explained

The difference between stub zone and secondary DNS zones… It all relates to replication, efficiency and availability. Think of it like this: There are two cities, London and Manchester. London has 100 people, each with a book full of information (so 100 books in total). You are in Manchester and you want to be able to have access to the information in these “books”. There are two ways to do this as follows: a) Another 100 people appear in London, they each make a copy of a book, and they each take their own car in order to drive to Manchester to meet you and give you the books. This causes a traffic jam due to the high number of people driving on the highway. ...

August 14, 2012 · 2 min · thomasf

Access Denied Roaming Profile

By default the Roaming profile is only accessible for the owner (end-user) and the system account. I found a post on the internet with a workaround to access the profile without problems to the end user. Using two tools, the first is SubInAcl.exe available from Microsoft (download), and the second is cacls.exe which you should already have by default in Windows. These first two commands will give the local administrators group ownership of the user’s folder and everything underneath. NOTE: This will not change any existing permissions. ...

August 14, 2012 · 1 min · thomasf

Spam free internet

Maybe it’s a illusion but if every one use a mail SPF DNS record and everyone will bounce or filter domains without a SPF the internet is spam free :-) Microsoft has a nice wizard to create a SPF for your own domain: http://www.microsoft.com/mscorp/safety/content/technologies/senderid/wizard/

August 11, 2012 · 1 min · thomasf

Error 29528 When Installing SQL Service Pack 4

Today I had this problem for the second time. Last time it cost me 3 hours to find the solution. Now I find your article and I fixed it in 30 minutes :) My Exact error was (summary.txt): MSP Error: 29528 The setup has encountered an unexpected error while Setting Internal Properties. The error is: Fatal error during installation. The workaround resolution involves the following steps: For a stand-alone installation of SQL Server 2005 ...

August 1, 2012 · 1 min · thomasf