COCKOS
CONFEDERATED FORUMS
Cockos : REAPER : NINJAM : Forums
Forum Home : Register : FAQ : Members List : Search :
Old 10-29-2006, 12:59 AM   #1
Justin
Administrator
 
Justin's Avatar
 
Join Date: Jan 2005
Location: NYC
Posts: 10,042
Default v0.2 is up

http://www.cockos.com/assniffer/

Included are julien's patches, as well as cookie logging and long filename fix for windows (thanks to christophe).
Justin is online now   Reply With Quote
Old 11-07-2006, 03:42 AM   #2
julien
Human being with feelings
 
Join Date: Jul 2006
Posts: 16
Default

Quote:
Originally Posted by Justin
http://www.cockos.com/assniffer/

Included are julien's patches, as well as cookie logging and long filename fix for windows (thanks to christophe).
Wonderful!!
julien is offline   Reply With Quote
Old 11-08-2006, 02:40 AM   #3
julien
Human being with feelings
 
Join Date: Jul 2006
Posts: 16
Default Compilation

How did you compile it?
I got the following errors :

Code:
g++ -O2 -s   -c -o http.o http.cpp
http.cpp: In member function 'void HTTP_context::doWrite(void*, int, unsigned int)':
http.cpp:460: error: 'MAX_PATH' was not declared in this scope
http.cpp:461: error: 'fn' was not declared in this scope
http.cpp:562: error: 'isprint' was not declared in this scope
make: *** [http.o] Error 1
julien is offline   Reply With Quote
Old 11-12-2006, 10:15 AM   #4
Justin
Administrator
 
Justin's Avatar
 
Join Date: Jan 2005
Location: NYC
Posts: 10,042
Default

Ahh, we only really tested on win32.. I'll fix it soon (or if you want to post a patch, you can too )
Justin is online now   Reply With Quote
Old 11-13-2006, 01:13 AM   #5
julien
Human being with feelings
 
Join Date: Jul 2006
Posts: 16
Default

Quote:
Originally Posted by Justin View Post
Ahh, we only really tested on win32.. I'll fix it soon (or if you want to post a patch, you can too )
Thanks Justin. Of course, If I manage to get rid of these errors, I'll post a patch ;-)
julien is offline   Reply With Quote
Old 03-30-2007, 12:43 PM   #6
Rage321
Human being with feelings
 
Join Date: Mar 2007
Posts: 1
Default

Hi everyone. I am curious to know if anyone has figured out how to fix the above reported "make" bug while compile assniffer v.2?
Rage321 is offline   Reply With Quote
Old 08-25-2008, 04:04 AM   #7
julien
Human being with feelings
 
Join Date: Jul 2006
Posts: 16
Default It works

Hi,

I managed to compile assniffer 0.2 on Debian. I had to add the following in http.cpp:

#include <ctype.h>
char MAX_PATH;

The diff:
--- source/assniffer/http.cpp 2006-10-29 00:38:26.000000000 +0200
+++ new_working_debian/assniffer/http.cpp 2008-08-25 13:01:57.000000000 +0200
@@ -22,7 +22,7 @@
#include <stdlib.h>
#include <time.h>
#include "platform.h"
-
+#include <ctype.h>
#include "pcap.h"
#include "http.h"

@@ -457,6 +457,7 @@
{
if(m_cookie[0] && g_config_cookie)
{
+ char MAX_PATH;
char fn[MAX_PATH*2];
sprintf(fn,"%s/cookies.txt", g_config_leadpath);
FILE *fh = fopen(fn,"ab");


Justin: Could you please create a new version with this update?

Thanks,
Julien
julien is offline   Reply With Quote
Old 08-25-2008, 02:19 PM   #8
Dan
up here in my tree
 
Dan's Avatar
 
Join Date: Jan 2005
Location: warehouse
Posts: 667
Default

MAX_PATH is an integer that defines an outdated maximum length for file paths (256 chars).

To fix this on nix you just include limits.h, afaik.

Or you could just #define MAX_PATH 256 // (or a larger number if you are feeling bold)
Dan is offline   Reply With Quote
Old 08-26-2008, 01:22 AM   #9
julien
Human being with feelings
 
Join Date: Jul 2006
Posts: 16
Default

Quote:
Originally Posted by Dan View Post
MAX_PATH is an integer that defines an outdated maximum length for file paths (256 chars).

To fix this on nix you just include limits.h, afaik.

Or you could just #define MAX_PATH 256 // (or a larger number if you are feeling bold)
Thanks, much better!

This is the new diff:

Code:
--- source/assniffer/http.cpp   2006-10-29 00:38:26.000000000 +0200
+++ new_working_debian/assniffer/http.cpp       2008-08-26 10:19:02.000000000 +0200
@@ -22,7 +22,7 @@
 #include <stdlib.h>
 #include <time.h>
 #include "platform.h"
-
+#include <ctype.h>
 #include "pcap.h"
 #include "http.h"

@@ -32,6 +32,8 @@
     #include <winsock2.h>
 #endif

+#define MAX_PATH 256
+
 // configurable items of http.cpp
 int g_config_usemime=2; // 1=append, 2=replace extension
 int g_config_debugfn=0;
julien is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 09:20 PM.


Powered by vBulletin® Version 3.8.9
Copyright ©2000 - 2017, vBulletin Solutions, Inc.