|
10-29-2006, 12:59 AM
|
#1
|
Administrator
Join Date: Jan 2005
Location: NYC
Posts: 15,721
|
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).
|
|
|
11-07-2006, 03:42 AM
|
#2
|
Human being with feelings
Join Date: Jul 2006
Posts: 16
|
Quote:
Originally Posted by Justin
|
Wonderful!!
|
|
|
11-08-2006, 02:40 AM
|
#3
|
Human being with feelings
Join Date: Jul 2006
Posts: 16
|
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
|
|
|
11-12-2006, 10:15 AM
|
#4
|
Administrator
Join Date: Jan 2005
Location: NYC
Posts: 15,721
|
Ahh, we only really tested on win32.. I'll fix it soon (or if you want to post a patch, you can too )
|
|
|
11-13-2006, 01:13 AM
|
#5
|
Human being with feelings
Join Date: Jul 2006
Posts: 16
|
Quote:
Originally Posted by Justin
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 ;-)
|
|
|
03-30-2007, 12:43 PM
|
#6
|
Human being with feelings
Join Date: Mar 2007
Posts: 1
|
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?
|
|
|
08-25-2008, 04:04 AM
|
#7
|
Human being with feelings
Join Date: Jul 2006
Posts: 16
|
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
|
|
|
08-25-2008, 02:19 PM
|
#8
|
up here in my tree
Join Date: Jan 2005
Location: warehouse
Posts: 667
|
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)
|
|
|
08-26-2008, 01:22 AM
|
#9
|
Human being with feelings
Join Date: Jul 2006
Posts: 16
|
Quote:
Originally Posted by Dan
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;
|
|
|
Thread Tools |
|
Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -7. The time now is 09:02 AM.
|