ReJeCtAll / naxsi

Automatically exported from code.google.com/p/naxsi
Other
0 stars 0 forks source link

Invalid syntax in nx_parser.py #34

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Line 142:
str(capture_id), datetime.now() if date is None else date, str(match_id)))

Original issue reported on code.google.com by ad...@yqed.com on 2 Jun 2012 at 6:01

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
Removing the IF solves the issue but I get a new error:
Filling database with %s. ALL PREVIOUS CONTENT WILL BE DROPPED !!!!!
Done.
Traceback (most recent call last):
  File "nx_intercept.py", line 162, in ?
    exit(42)
TypeError: 'str' object is not callable

Note the %s. I don't see any string on line 162.

Original comment by ad...@yqed.com on 2 Jun 2012 at 7:10

GoogleCodeExporter commented 8 years ago
As a side note, nothing is filled into database.
I'm using Python 2.4.3 on CentOS 5 64bits, I created all missing RPM's to run 
the UI:
python-fpconst-0.7.3-1.el5.noarch.rpm
python-hashlib-20081119-1.el5.x86_64.rpm
python-setuptools-0.6.27-1.el5.noarch.rpm
python-twisted-core-8.2.0-1.el5.x86_64.rpm
python-twisted-core-doc-8.2.0-1.el5.x86_64.rpm
python-twisted-core-zsh-8.2.0-1.el5.x86_64.rpm
python-twisted-web-8.2.0-1.el5.x86_64.rpm
python-zope-filesystem-1.0.0-1.el5.x86_64.rpm
python-zope-interface-3.8.0-1.el5.x86_64.rpm
SOAPpy-0.11.6-1.el5.noarch.rpm

That's the only show stopper, before I release my packages to public:
nginx-common.x86_64 - nginx common config files, logs, init scripts, etc.
nginx.x86_64 - nginx binary with all modules enabled
nginx-debug.x86_64 - nginx binary with all modules enabled + debug mode
nginx-naxsi.x86_64 - nginx binary with all modules enabled + naxsi firewall

Original comment by ad...@yqed.com on 2 Jun 2012 at 7:31

GoogleCodeExporter commented 8 years ago
I think that you need at-least python 2.7.3 to run the contrib properly

Original comment by unexplai...@gmail.com on 2 Jun 2012 at 9:53

GoogleCodeExporter commented 8 years ago
I looked at the python 2.7.3 rpm requirements, it is very hard to build it for 
CentOS/Redhat 5. It would require an army rpm's to be created, in order to 
upgrade to 2.7.3 version. If the developer needs access to a box running on 
CentOS 5 with Python 2.4.3 installed, I can provide that.

I already have the nginx-naxi compiled and I create a neat init script that 
allows to start the learning daemons. It would be a shame to stop at this 
requirement. I did a lot of work, let's work together and provide to all CentOS 
5 users naxsi. :)

Original comment by ad...@yqed.com on 6 Jun 2012 at 2:59

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
EPEL yum install python26

Original comment by design...@gmail.com on 27 Jun 2012 at 6:12

GoogleCodeExporter commented 8 years ago
That's one dependency, what about the other 12 missing from EPEL and needed by 
Naxsi UI? Anyways, I wrote myself all deps in order to get a functional UI:
http://www.axivo/go/naxsi

Original comment by ad...@yqed.com on 24 Jul 2012 at 4:56

GoogleCodeExporter commented 8 years ago
Hello,

I think you resolved the issue ?

Original comment by ori...@gmail.com on 1 Aug 2012 at 5:49

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
I did, by creating the python26 RPM's in CentOS 5. :)
http://www.axivo.com/go/naxsi

Original comment by ad...@yqed.com on 1 Aug 2012 at 5:51

GoogleCodeExporter commented 8 years ago

Original comment by ori...@gmail.com on 17 Aug 2012 at 8:36