![]() |
|
|||||||
| Register | Search | Today's Posts | Mark Forums Read |
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
|
#1 (permalink) | |
|
Humourless EuroMod.
Join Date: Mar 2004
Location: City of Mermaids, Denmark
Posts: 6,819
|
Fix for Gpsdrive-Kismet-Mysql bug posted
If you use GPSDrive with Kismet and mysql the following posted to the GPSDrive mailing list by yours truely might be of interest :
Quote:
Dutch
__________________
All your answers are belong to Google. SEARCH DAMMIT! Warning. Warning. Low C8H10N4O2 level detected. Operator halted.... Last edited by Dutch : 07-02-2005 at 02:55 PM. Reason: removed old patch |
|
|
|
|
|
|
#3 (permalink) | |
|
Humourless EuroMod.
Join Date: Mar 2004
Location: City of Mermaids, Denmark
Posts: 6,819
|
Quote:
And a correction, it's not the "/" character, but the "\" character that generate the malformed SQL query, and it's the escaping of this char that is fixed by the patch. It should work on 2.09 as well, so no need to go to 2.10pre3 unless you want to. Dutch
__________________
All your answers are belong to Google. SEARCH DAMMIT! Warning. Warning. Low C8H10N4O2 level detected. Operator halted.... Last edited by Dutch : 06-24-2005 at 11:46 AM. |
|
|
|
|
|
|
#4 (permalink) |
|
Humourless EuroMod.
Join Date: Mar 2004
Location: City of Mermaids, Denmark
Posts: 6,819
|
New updated patch, that fixes what I broke with the previous patch, which just shows you shouldn't be coding when under the influence of morphine...
This patch, which should be applied to the original gpskismet.c from the gpsdrive 2.10pre3 cvs checkout, properly escapes the characters in a SSID, that will generate a malformed SQL update or insert query. Just as the previous patch, it also adds a printout of the original SSID and the escaped SSID, if gpsdrive is run with debug output enabled. The patch should be saved in the toplevel gpsdrive source directory, and applied with the command : patch -p0 -l < newfixkismetescape.patch.txt The patch can also be applied to the gpsdrive 2.09 source, with the same command, and has been tested with that version as well. Sorry for the inconvenience... Dutch
__________________
All your answers are belong to Google. SEARCH DAMMIT! Warning. Warning. Low C8H10N4O2 level detected. Operator halted.... |
|
|
|
|
|
#6 (permalink) | |
|
Humourless EuroMod.
Join Date: Mar 2004
Location: City of Mermaids, Denmark
Posts: 6,819
|
Quote:
![]() This patch escapes not just the \ character which you often get in one of the WinXP memorybleaded proberequests, but also the ' and " characters, which should take care of them all. Now we just need a patch to take care of that G8t3k33per character... Untill we get that, we have to settle for pouring whisky in him... Dutch
__________________
All your answers are belong to Google. SEARCH DAMMIT! Warning. Warning. Low C8H10N4O2 level detected. Operator halted.... |
|
|
|
|
|
|
#7 (permalink) |
|
Humourless EuroMod.
Join Date: Mar 2004
Location: City of Mermaids, Denmark
Posts: 6,819
|
Fix has been applied to the current gpsdrive 2.10pre3 version in the CVS repository, including an additional fix for the regular SQL feature of gpsdrive.
The additional fix, has been also been posted on the gpsdrive mailing list, and is included here for good measure. Save the patch to the toplevel gpsdrive source directory and apply with the following command : patch -p0 -l < fix_gpssql_escape.patch.txt then recompile gpsdrive. Can also be applied to the gpsdrive 2.09 sources, if you prefer to run a stable version. Dutch
__________________
All your answers are belong to Google. SEARCH DAMMIT! Warning. Warning. Low C8H10N4O2 level detected. Operator halted.... |
|
|
|
|
|
#8 (permalink) | |
|
Alien Paranoid Stumbler
Join Date: May 2003
Location: WI
Posts: 2,688
|
Quote:
__________________
"Yeah," said a voice from under the table, "you go to pieces so fast people get hit by the shrapnel." |
|
|
|
|
|
|
#9 (permalink) | |
|
Humourless EuroMod.
Join Date: Mar 2004
Location: City of Mermaids, Denmark
Posts: 6,819
|
Quote:
Dutch
__________________
All your answers are belong to Google. SEARCH DAMMIT! Warning. Warning. Low C8H10N4O2 level detected. Operator halted.... |
|
|
|
|
|
|
#10 (permalink) | |
|
Alien Paranoid Stumbler
Join Date: May 2003
Location: WI
Posts: 2,688
|
Quote:
__________________
"Yeah," said a voice from under the table, "you go to pieces so fast people get hit by the shrapnel." |
|
|
|
|
|
|
#11 (permalink) | |
|
Humourless EuroMod.
Join Date: Mar 2004
Location: City of Mermaids, Denmark
Posts: 6,819
|
Quote:
Have you got all the required dependencies installed, including their dev counterparts ? If you need help, PM me a MSN id, and I'll talk you through it. Dutch
__________________
All your answers are belong to Google. SEARCH DAMMIT! Warning. Warning. Low C8H10N4O2 level detected. Operator halted.... |
|
|
|
|