This topic really sucks to search for, way too many different results without any actual clarity, so here’s how I was able to get it working:
Firstly, power down the image and edit the configuration options for your image, click on the “Video options”. Check ‘Enable custom screen resolutions’ and add the resolution (in this case, 1280×800). Make sure the resolution is enabled (checked). See the screenshot below for an example of what it should look like:
Next, boot into the VM image and let’s take a look at the xorg.conf file, here are the lines I changed that actually matter:
#HorizSync 31.5 - 48.5
HorizSync 30.0 - 82.0
#VertRefresh 50.0 - 90.0
VertRefresh 50.0 - 90.0
ModeLine "1280x800" 80.58 1280 1344 1480 1680 800 801 804 827 -HSync -VSync
These should be in the section right after ‘Section “Monitor”‘. After changing the hsync and vsync as well as adding the mode, I changed the display section from:
Modes "1024x768" "800x600" "640x480"
Modes "1280x800" "1024x768" "800x600" "640x480"
It’s a good idea to change the modes for each of the depths (at least 8, 15, 16 and 24) also.
After rebooting (or killing X with Ctrl+Alt+Backspace), your screen should come up in 1280×800 resolution. Hurray!
You can see an example of my desktop setup for Hex 1.0.3-RC2 here:
You can get a copy of my entire xorg.conf file here. (Note that in this xorg.conf, CapsLock is remapped to additional control because I hate capslock with a passion).
Hope this helps someone out there
Filed under 1280x800, hex, mac, osx, parallels, resolution, virtualization, vm, x11, xorg, xorg.conf
Quick fix for compiling tcpdstat on Mac OSX (Leopard, although probably works for Tiger too).
If you get this error:
cc -I. -I../libpcap-0.7.1 -DLINUX -D__FAVOR_BSD -D_LARGEFILE_SOURCE=1 -D_FILE_OFFSET_BITS=64 -L../libpcap-0.7.1 -c stat.c
cc -I. -I../libpcap-0.7.1 -DLINUX -D__FAVOR_BSD -D_LARGEFILE_SOURCE=1 -D_FILE_OFFSET_BITS=64 -L../libpcap-0.7.1 -c net_read.c
net_read.c:74:1: warning: "__FAVOR_BSD" redefined
<command line>:1:1: warning: this is the location of the previous definition
net_read.c:149: error: static declaration of ‘packet_length’ follows non-static declaration
tcpdstat.h:415: error: previous declaration of ‘packet_length’ was here
make: *** [net_read.o] Error 1
Edit the net_read.c file and change line 149 from this:
static int packet_length; /* length of current packet */
int packet_length; /* length of current packet */
Simple eh? Just type “
make” again and tcpdstat should compile just fine. Simple fix.
I want to point out the excellent baseline firewall rules posted by rmogull over on his blog. Check them out if you’re looking for a starting point for ipfw rules on OSX. Thanks rmogull!
Yea yea, I know, it’s only been a few hours since the first release. Well, here’s the new release with a couple of major todos taken care of:
Download the script here.
Read about aimsnarf in the previous post about it.
Changes in this version:
- Trillian is now supported, as well as AOL’s AIM client. Most other clients should be supported too, I figured out the variable length/number of TLV fields in the packet, so aimsnarf is much smarter about decoding them
- Code cleaned up to be more readable
- Fixed some misc messages that were showing up, you still might see a few
- Figure out what the heck iChat is doing, it doesn’t seem to be sending the same kind of data as all the other AIM clients
- Still do OTR stuff
- Maybe add support for different protocols?
- More testing!
If you find any bugs, send me a note or leave a comment. If you really want to help, you can send me some pcap data to analyze If you have any feature requests, lemme know!
Filed under account, aim, dsniff, hacking, linux, mac, monitoring, pcap, programming, ruby, script, security, sniffing, tcpdump, wireshark
[Update]: If you’re trying to compile Ettercap on Leopard, check here.
I’ve been trying to get this compiled for 2 days now, finally found out how to do it. Figured I’d share for everyone else.
If you try this without making the change to the configure file it will complain about you not having support for pthreads, so here’s what you do:
Open the configure script, search for the line that say something like
"$OS" != "MACOSX", you need to change this line to say
"$OS" != "DARWIN", voila!
./configure && make && make install away! Enjoy ettercap!
Now if I could only get dsniff working as well… :-/