Remote connect SQL Express

Start SQL Server Surface Area Configuration > Remote connections Select “using both TCP/IP and named pipes” Start “SQL Server Configuration Manager” Find out the dynamic port Now connect to the SQL server from a remote server: HOSTNAMESERVER\MSSQL$SQLEXP_VIM,49382

August 12, 2013 · 1 min · thomasf

Linux connect WiFi / WPA network

nano /etc/network/interfaces auto wlan0 iface wlan0 inet dhcp wpa-ssid YOUR-SSID-HERE wpa-psk YOUR-PASSWORD-HERE

June 6, 2013 · 1 min · thomasf

Wireless MAC Address bypass

airmon-ng start wlan0 airodump-ng mon0 iwconfig wlan0 essid SSID-NAME channel X iwconfig wlan0 airodump-ng -c 4 -a –bssid MACADDRESS-AP mon0 airmon-ng stop wlan0 macchanger -m MACADDRESS-CLIENT wlan0 ifconfig wlan0 down ifconfig wlan0 up iwconfig wlan0 essid SSID-NAME channel 4 iwconfig wlan0

May 22, 2013 · 1 min · thomasf

Show hidden SSID

airmon-ng start wlan0 airmon-ng airodump-ng mon0 get the mac of the hidden SIDD and do a de-auth attack to force disconnect all wireless clients aireplay-ng -0 2 -a xx:xx:xx:xx:xx:xx mon0 now you can see the SSID

May 21, 2013 · 1 min · thomasf

Linux setup higher tx-power wireless

ifconfig wlan0 down iw reg set US iwconfig wlan0 txpower 27 iwconfig

May 21, 2013 · 1 min · thomasf

Linux setup quick networking

ifconfig eth0 192.168.1.222/24 up route add default gw 192.168.1.1 echo nameserver 8.8.8.8 > /etc/resolv.conf update-rc.d networking defaults

May 21, 2013 · 1 min · thomasf

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