PDA

View Full Version : Buffer Overflow using wireless card



nicknaks
06-18-2006, 07:24 AM
OK I've had ShowEQ running fine via an old hub and just updated to 5.5.0.0, no probs with that one at all. I've been trying to get away from using the hub so my daughter doesn't strangle herself on the network cable running over the floor so I tried to get my Linksys wireless PCMCIA card running. The card works fine for normal internet use and ShowEQ picks up the EQ client on the network but then I get a buffer overflow and SEQ crashes out (no dump). Not asking for a fix as such but thought someone might find it interesting / if there is a fix that would rock :D

OS: Fedora Core 2.6.16-1.2111_FC4
Wireless Card: Linksys WPC54G - doesn't support Linux, so used ndiswrapper 1.17 to load the windows WPC54G 1.3 driver util, configured it all up (Notes on how to do this at http://www.linuxcompatible.org/thread28636-1.html)
Wireless hub: Linksys WAG54G
Edited /usr/local/share/showeq/seqdef.xml to change default network device from eth0 to wlan0

Started SEQ, set to monitor next EQ client, zoned and ....


[root@laptop showeq-5.5.0.0]# /usr/local/bin/showeq
ShowEQ 5.5.0.0, released under the GPL.
SINS 0.5, released under the GPL.
All ShowEQ source code is Copyright (C) 2000-2005 by the respective ShowEQ Developers
ShowEQ comes with NO WARRANTY.

You may redistribute copies of ShowEQ under the terms of
The GNU General Public License.
See: http://www.gnu.org/copyleft/gpl.html for more details...

For updates and information, please visit http://seq.sourceforge.net/
ShowEQ 5.5.0.0, Built from 'main.cpp' on Jun 18 2006 at 14:47:34
CVS: @(#) $Id: main.cpp,v 1.35 2005/10/05 15:29:08 cmmalone Exp $ $Name: $
Using GCC version: 4.0.2
Using glibc version: 2.3
Using Qt version: 3.3.4
Using headers from linux version: 2.4.20
Using EQItemDB: @(#) $Id: itemdb.cpp,v 1.12 2005/12/10 23:27:15 cmmalone Exp $ $Name: $
Using GDBM: This is GDBM version 1.8.0, as of May 19, 1999.
Running on Linux release 2.6.16-1.2111_FC4 for processor i686

Using config file '/root/.showeq/showeq.xml'
Loaded preferences file: /usr/local/share/showeq/seqdef.xml!
Loaded preferences file: /root/.showeq/showeq.xml!
Info: Listening for first client seen.
Info: Initializing Packet Capture Thread:
Info: Filtering packets on device wlan0, searching for EQ client...
Warning: Spells: Failed to open: '/usr/local/share/showeq/spells_us.txt'
Info: GuildMgr: Guildsfile loaded
Debug: ItemDB: Disabled
Info: Loading Filters from '/root/.showeq/filters/global.xml'
Info: Loading Zone Filter File: /root/.showeq/filters/unknown.xml
Info: Loading Zone Filter File: /root/.showeq/filters/unknown.xml
Info: Categories Reloaded
Info: No Map found for zone 'unknown'!
Info: Checked for all variants of 'unknown.map', 'unknown.txt', and 'unknown_1.txt'
Info: in directories '/root/.showeq/maps' and '/usr/local/share/showeq/maps'!
Warning: EQStr: Failed to open '/usr/local/share/showeq/eqstr_us.txt'
Info: Client Detected: 192.168.1.100
MOTD:
Zone: EntryCode: Client
Info: Listening for next client seen. (you must zone for this to work!)
Info: Filtering packets on device wlan0, searching for EQ client...
Debug: PCAP Filter Set: udp[0:2] > 1024 and udp[2:2] > 1024 and ether proto 0x0800
Info: Listening for IP client: 192.168.1.100
Debug: PCAP Filter Set: udp[0:2] > 1024 and udp[2:2] > 1024 and ether proto 0x0800 and host 192.168.1.100
Info: Client Detected: 192.168.1.100
MOTD:
Zone: EntryCode: Client
Warning: SEQ: Giving up on finding arq 0001 in stream zone-client cache, skipping!
Warning: SEQ: Giving up on finding arq 001c in stream zone-client cache, skipping!
Warning: SEQ: Giving up on finding arq 001e in stream zone-client cache, skipping!
Warning: SEQ: Giving up on finding arq 0021 in stream zone-client cache, skipping!
Warning: SEQ: Giving up on finding arq 0025 in stream zone-client cache, skipping!
Warning: SEQ: Giving up on finding arq 0026 in stream zone-client cache, skipping!
Warning: SEQ: Giving up on finding arq 002f in stream zone-client cache, skipping!
Warning: SEQ: Giving up on finding arq 0036 in stream zone-client cache, skipping!
Warning: !!!! EQPacketFragmentSequence::addFragment(): buffer overflow adding in new fragment to buffer with seq 0055 on stream 3, opcode 4057. Buffer is size 19602 and has been filled up to 19371, but tried to add 505 more!
Hope someone has some fun with this ;)

purple
06-18-2006, 08:02 AM
If only there was an FAQ that came with every release of seq. Or maybe if someone has time they could add a search on these forums.

BlueAdept
06-18-2006, 12:11 PM
I added one on my sig for you :)

nicknaks
06-19-2006, 03:17 AM
OK I'm a total idiot, wasn't searching on the right keywords. Why did I assume to search for wireless related topics only :o sorry guys :o

As pointed out in a previous thread, answer is here (http://www.showeq.net/forums/showthread.php?t=5333&highlight=kernel+max)