Search is not available for this dataset
id
stringlengths
1
8
text
stringlengths
72
9.81M
addition_count
int64
0
10k
commit_subject
stringlengths
0
3.7k
deletion_count
int64
0
8.43k
file_extension
stringlengths
0
32
lang
stringlengths
1
94
license
stringclasses
10 values
repo_name
stringlengths
9
59
10049550
<NME> test_parse.py <BEF> ADDFILE <MSG> adding first tests <DFF> @@ -0,0 +1,24 @@ + +import os +from unittest import TestCase +import sys +sys.path.insert(0, os.path.abspath('..')) + +from parse import XBRLParser +#from xbrlparse.xbrlparse import OfxFile, OfxPreprocessedFile, OfxParserException, soup_maker + + +class ...
24
adding first tests
0
.py
py
apache-2.0
greedo/python-xbrl
10049551
<NME> xbrl.py <BEF> #! /usr/bin/env python # encoding: utf-8 import re from marshmallow import Serializer, fields import datetime import collections import six import logging try: from StringIO import StringIO except ImportError: from io import StringIO if 'OrderedDict' in dir(collections): odict = colle...
3
Serializer uses Schema, new custom tags tests and examples
3
.py
py
apache-2.0
greedo/python-xbrl
10049552
<NME> test_parse.py <BEF> #! /usr/bin/env python # encoding: utf-8 from xbrl import XBRLParser from xbrl import GAAP from xbrl import GAAPSerializer from xbrl import DEISerializer from xbrl import XBRLParserException import pytest import sys import os import six try: import __pypy__ except ImportError: __pypy...
10
updating tests
10
.py
py
apache-2.0
greedo/python-xbrl
10049553
<NME> xbrl.py <BEF> ADDFILE <MSG> renaming import <DFF> @@ -0,0 +1,1 @@ +../python-xbrl/xbrl.py \ No newline at end of file
1
renaming import
0
.py
py
apache-2.0
greedo/python-xbrl
10049554
<NME> xbrl.py <BEF> #! /usr/bin/env python # encoding: utf-8 import re from marshmallow import Schema, fields import datetime import collections import six import logging try: from StringIO import StringIO except ImportError: from io import StringIO if 'OrderedDict' in dir(collections): odict = collectio...
14
making pep8 happy
14
.py
py
apache-2.0
greedo/python-xbrl
10049555
<NME> setup.py <BEF> try: from setuptools import setup, find_packages except ImportError: from distutils.core import setup import os long_description = 'library for parsing xbrl documents' if os.path.exists('README.rst'): long_description = open('README.rst').read() setup( name='python-xbrl', vers...
1
Update setup.py
1
.py
py
apache-2.0
greedo/python-xbrl
10049556
<NME> README.rst <BEF> |PyPI version| |Travis-CI| |license| **python-xbrl** is a library for parsing `xbrl <http://www.xbrl.org/Specification/XBRL-2.1/REC-2003-12-31/XBRL-2.1-REC-2003-12-31+corrected-errata-2013-02-20.html>`__ documents providing output as both a basic model object and serialized objects thur `marshma...
1
Merge pull request #29 from andportnoy/master
1
.rst
rst
apache-2.0
greedo/python-xbrl
10049557
<NME> test_parse.py <BEF> #! /usr/bin/env python # encoding: utf-8 from xbrl import XBRLParser from xbrl import GAAP from xbrl import GAAPSerializer from xbrl import DEISerializer from xbrl import XBRLParserException import pytest import sys import os import six try: import __pypy__ except ImportError: __pypy...
124
fixed edge case logic, added rivet tests
0
.py
py
apache-2.0
greedo/python-xbrl
10049558
<NME> README.md <BEF> # Raptor WAF ![Alt text](https://github.com/CoolerVoid/raptor_waf/blob/master/doc/images/raptor2.png) Raptor is a Web application firewall made in C, uses DFA to block SQL injection, Cross site scripting and path traversal. http://funguscodes.blogspot.com.br/ #THis is PoC version ![Alt text](htt...
3
Fix broken Markdown headings
3
.md
md
bsd-2-clause
CoolerVoid/raptor_waf
10049559
<NME> README.rst <BEF> |PyPI version| |Travis-CI| |license| **python-xbrl** is a library for parsing `xbrl <http://www.xbrl.org/Specification/XBRL-2.1/REC-2003-12-31/XBRL-2.1-REC-2003-12-31+corrected-errata-2013-02-20.html>`__ documents providing output as both a basic model object and serialized objects thur `marshma...
1
Merge branch 'master' of https://github.com/greedo/python-xbrl
1
.rst
rst
apache-2.0
greedo/python-xbrl
10049560
<NME> README.rst <BEF> |PyPI version| |Travis-CI| |license| **python-xbrl** is a library for parsing `xbrl <http://www.xbrl.org/Specification/XBRL-2.1/REC-2003-12-31/XBRL-2.1-REC-2003-12-31+corrected-errata-2013-02-20.html>`__ documents providing output as both a basic model object and serialized objects thur `marshma...
3
all badges flat
3
.rst
rst
apache-2.0
greedo/python-xbrl
10049561
<NME> README.rst <BEF> |PyPI version| |Travis-CI| |license| **python-xbrl** is a library for parsing `xbrl <http://www.xbrl.org/Specification/XBRL-2.1/REC-2003-12-31/XBRL-2.1-REC-2003-12-31+corrected-errata-2013-02-20.html>`__ documents providing output as both a basic model object and serialized objects thur `marshma...
1
fixed for rst
0
.rst
rst
apache-2.0
greedo/python-xbrl
10049562
<NME> setup.py <BEF> import re import sys from setuptools import setup, find_packages #from distutils.core import setup # Read the version from __init__ to avoid importing python-xbrl while installing. # This lets the install work when the user does not have BeautifulSoup long_description = open('README.rst').rea...
17
setup.py correct now!
21
.py
py
apache-2.0
greedo/python-xbrl
10049563
<NME> proxy.c <BEF> #include "proxy.h" #include "BSD/strsec.h" /* items of struct tcp_server_thread_info char stamp[128]; char log_reg[18]; int stamp_port; int accepted_socket; int wafmode; short match_option; */ /// get ip of client char *get_ip_of(int sock) { socklen_t len; struct sockaddr_storage addr; c...
1
fix bug at ip result
1
.c
c
bsd-2-clause
CoolerVoid/raptor_waf
10049564
<NME> README.md <BEF> ![Alt text](https://github.com/CoolerVoid/raptor_waf/blob/master/doc/images/raptor2.png) # raptor_waf Raptor is a Web application firewall made in C, uses DFA to block SQL injection, Cross-site scripting, and path traversal. http://funguscodes.blogspot.com.br/ # THis is PoC version ![Alt text](...
3
Update README.md
3
.md
md
bsd-2-clause
CoolerVoid/raptor_waf
10049565
<NME> requirements.txt <BEF> ADDFILE <MSG> Merge branch 'master' of https://github.com/greedo/python-xbrl <DFF> @@ -0,0 +1,3 @@ +pytest +marshmallow +beautifulsoup4
3
Merge branch 'master' of https://github.com/greedo/python-xbrl
0
.txt
txt
apache-2.0
greedo/python-xbrl
10049566
<NME> README.md <BEF> # Raptor WAF # raptor_waf Raptor is a Web application firewall made in C, uses DFA to block SQL injection, Cross site scripting and path traversal. #THis is PoC version ![Alt text](https://github.com/CoolerVoid/raptor_waf/blob/master/doc/images/help.png) ![Alt text](https://github.com/CoolerVoid...
1
Update README.md
0
.md
md
bsd-2-clause
CoolerVoid/raptor_waf
10049567
<NME> test_parse.py <BEF> #! /usr/bin/env python # encoding: utf-8 from xbrl import XBRLParser from xbrl import GAAP from xbrl import GAAPSerializer from xbrl import DEISerializer except ImportError: from io import StringIO from parser import soup_maker, XBRLParser, XBRLParserException def testEmptyFile(): x...
24
adding 10k, 10q tests
2
.py
py
apache-2.0
greedo/python-xbrl
10049568
<NME> requirements.txt <BEF> pytest==2.8.3 pep8==1.6.2 marshmallow>=2.15.1 beautifulsoup4==4.4.1 ordereddict==1.1 lxml==4.6.2 six==1.9.0 <MSG> Merge pull request #56 from greedo/dependabot/pip/lxml-4.6.5 Bump lxml from 4.6.2 to 4.6.5 <DFF> @@ -3,5 +3,5 @@ pep8==1.6.2 marshmallow>=2.15.1 beautifulsoup4==4.4.1 order...
1
Merge pull request #56 from greedo/dependabot/pip/lxml-4.6.5
1
.txt
txt
apache-2.0
greedo/python-xbrl
10049569
<NME> test_parse.py <BEF> import os from unittest import TestCase import sys sys.path.insert(0, os.path.abspath('..')) import six from parser import soup_maker, XBRLParser, XBRLParserException class TestParse(TestCase): def testEmptyFile(self): fh = six.BytesIO(six.b("")) self.assertRaises(XBRL...
8
closed #1
9
.py
py
apache-2.0
greedo/python-xbrl
10049570
<NME> test_parse.py <BEF> #! /usr/bin/env python # encoding: utf-8 from xbrl import XBRLParser from xbrl import GAAP from xbrl import GAAPSerializer from xbrl import DEISerializer from xbrl import XBRLParserException import pytest import sys import os import six try: import __pypy__ xbrl_parser = XBRLParser()...
19
closes #9
10
.py
py
apache-2.0
greedo/python-xbrl
10049571
<NME> __init__.py <BEF> #! /usr/bin/env python # encoding: utf-8 from __future__ import absolute_import version = (1, 0, 9) from .parse import XBRLParser <MSG> fixed __init__.py <DFF> @@ -5,4 +5,4 @@ from __future__ import absolute_import version = (1, 0, 9) -from .parse import XBRLParser +from .xbrl import X...
1
fixed __init__.py
1
.py
py
apache-2.0
greedo/python-xbrl
10049572
<NME> .travis.yml <BEF> ADDFILE <MSG> adding stuff for travis <DFF> @@ -0,0 +1,14 @@ +language: python +python: + - "2.6" + - "2.7" + - "3.2" + - "3.3" + +# command to install dependencies +install: + - pip install . + - pip install -r requirements.txt + +# command to run tests +script: py.test --tb=...
14
adding stuff for travis
0
.yml
travis
apache-2.0
greedo/python-xbrl
10049573
<NME> README.md <BEF> # raptor_waf Web application firewall in C # Example Up some HTTPd server at port 80 redirect with raptor to port 8883 ``` $ bin/Raptor -h localhost -p 80 -r 8883 -w 4 -o loglog.txt ``` Copy vulnerable PHP code to your webserver directory ``` $ cp doc/test_dfa/test.php /var/www/html ``` Now ...
21
Update README.md
1
.md
md
bsd-2-clause
CoolerVoid/raptor_waf
10049574
<NME> raptor.tex <BEF> \documentclass[serif,mathserif]{beamer} \usepackage{amsmath, amsfonts, epsfig, xspace} \usepackage{algorithm,algorithmic} \usepackage{pstricks,pst-node} \usepackage{multimedia} \usepackage[normal,tight,center]{subfigure} \setlength{\subfigcapskip}{-.5em} \usepackage{beamerthemesplit} \usetheme{la...
4
update doc PDF and latex
2
.tex
tex
bsd-2-clause
CoolerVoid/raptor_waf
10049575
<NME> .travis.yml <BEF> language: python python: - "3.4" - "3.3" - "2.7" - "2.6" addons: # pre-pip packages before_install: - sudo apt-get update -qq - sudo apt-get install -qq python-dev libxml2 libxml2-dev libxslt-dev python3-lxml # command to install dependencies install: - pip install ...
3
trying lxml-cffi
1
.yml
travis
apache-2.0
greedo/python-xbrl
10049576
<NME> README.rst <BEF> |PyPI version| |Travis-CI| |license| **python-xbrl** is a library for parsing `xbrl <http://www.xbrl.org/Specification/XBRL-2.1/REC-2003-12-31/XBRL-2.1-REC-2003-12-31+corrected-errata-2013-02-20.html>`__ documents providing output as both a basic model object and serialized objects thur `marshma...
1
The example in the README has been updated to reflect the fact that file() is not supported in python 3 and it's recomended to use open() instead.
1
.rst
rst
apache-2.0
greedo/python-xbrl
10049577
<NME> README.md <BEF> # Raptor WAF ![Alt text](https://github.com/CoolerVoid/raptor_waf/blob/master/doc/images/raptor2.png) Raptor is a Web application firewall made in C that uses DFA to block SQL injection, Cross-site scripting, and path traversal. https://funguscodes.blogspot.com/2016/08/steps-to-create-your-wafweb...
2
Update README.md
0
.md
md
bsd-2-clause
CoolerVoid/raptor_waf
10049578
<NME> README.md <BEF> ![Alt text](https://github.com/CoolerVoid/raptor_waf/blob/master/doc/images/raptor2.png) # raptor_waf Raptor is a Web application firewall made in C that uses DFA to block SQL injection, Cross-site scripting, and path traversal. http://funguscodes.blogspot.com.br/ # THis is PoC version ![Alt tex...
6
Update README.md
4
.md
md
bsd-2-clause
CoolerVoid/raptor_waf
10049579
<NME> rule.c <BEF> #include "utils.h" #include "mem_ops.h" #include "dfa_match.h" #include "file_ops.h" #include "blacklist.h" #include "matchlist.h" #include "BSD/strsec.h" bool Judge_malicious(char *buf, const int BUF_SIZE, char *addr, char *logfile, int wafmode, short match_option) { int line_number=1; time_t t ...
6
fix all bugs
13
.c
c
bsd-2-clause
CoolerVoid/raptor_waf
10049580
<NME> Makefile <BEF> export MALLOC_MMAP_THRESHOLD_=1 export MALLOC_CHECK_=1 export MALLOC_PERTURB_=1 CC=gcc CFLAGS=-g -W -Wall -O1 HARDENING= -mmitigate-rop -fstack-protector-all -pie -fPIE -ftrapv DFLAGS= lib/BSD/strsec.c DIR=src/ DIR_HEADERS=src/headers/ DIROUT=bin/ UNAME_S := $(shell uname -s) ifeq ($(UNAME_S),Darwi...
1
Update Makefile
1
Makefile
bsd-2-clause
CoolerVoid/raptor_waf
10049581
<NME> Raptor.c <BEF> #include <stdio.h> #include <netdb.h> #include <unistd.h> #include <stdlib.h> #include <string.h> #include <strings.h> #include <pthread.h> #include <sys/socket.h> #include <netinet/in.h> #include <getopt.h> #include <signal.h> #include <sys/resource.h> #include "utils.h" #include "proxy.h" // reve...
1
Update Raptor.c
1
.c
c
bsd-2-clause
CoolerVoid/raptor_waf
10049582
<NME> rule.c <BEF> #include "utils.h" #include "mem_ops.h" #include "dfa_match.h" #include "file_ops.h" #include "blacklist.h" #include "matchlist.h" #include "../lib/BSD/strsec.h" bool Judge_malicious(char *buf, const int BUF_SIZE, char *addr, char *logfile, int wafmode, short match_option) { int line_number=1; ti...
1
update, isnert hardneing in make file, update paths etc
1
.c
c
bsd-2-clause
CoolerVoid/raptor_waf
10049583
<NME> dfa_match.c <BEF> /* WAF mode level 1 DFA to block Block payloads SQLi union"|"select"|"insert"|"\@version"|"load_file"|"1=1"|"2=2" etc... Block Payloads XSS "eval"|"script"|"onstart"|"onload"|"onerror"|"onpageshow"|"onprogress"|"alert"|"onclick"|"onmouseover"|"onfinish"|"fromCharCode" etc.. Block Payload PATH tr...
2
Update dfa_match.c
2
.c
c
bsd-2-clause
CoolerVoid/raptor_waf
10049584
<NME> dfa_match.c <BEF> /* WAF mode level 1 DFA to block Block payloads SQLi union"|"select"|"insert"|"\@version"|"load_file"|"1=1"|"2=2" Block Payloads XSS "eval"|"script"|"onstart"|"onload"|"onerror"|"onpageshow"|"onprogress"|"alert"|"onclick"|"onmouseover"|"onfinish"|"fromCharCode" Block Payload PATH traversal ../|....
2
Update dfa_match.c
2
.c
c
bsd-2-clause
CoolerVoid/raptor_waf
10049585
<NME> README.md <BEF> # Raptor WAF ![Alt text](https://github.com/CoolerVoid/raptor_waf/blob/master/doc/images/raptor2.png) Raptor is a Web application firewall made in C that uses DFA to block SQL injection, Cross-site scripting, and path traversal. https://funguscodes.blogspot.com/2016/08/steps-to-create-your-wafweb...
3
Update README.md
0
.md
md
bsd-2-clause
CoolerVoid/raptor_waf
10049586
<NME> Raptor.c <BEF> #include <stdio.h> #include <netdb.h> #include <unistd.h> #include <stdlib.h> #include <string.h> #include <strings.h> #include <pthread.h> #include <sys/socket.h> #include <netinet/in.h> #include <getopt.h> #include <signal.h> #include <sys/resource.h> #include "utils.h" #include "proxy.h" // reve...
5
add strlcpy()
4
.c
c
bsd-2-clause
CoolerVoid/raptor_waf
10049587
<NME> README.md <BEF> # Raptor WAF ![Alt text](https://github.com/CoolerVoid/raptor_waf/blob/master/doc/images/raptor2.png) Raptor is a Web application firewall made in C, uses DFA to block SQL injection, Cross site scripting and path traversal. http://funguscodes.blogspot.com.br/ #THis is PoC version ![Alt text](htt...
3
Merge pull request #10 from bryant1410/master
3
.md
md
bsd-2-clause
CoolerVoid/raptor_waf
10049588
<NME> requirements.txt <BEF> pytest==2.8.3 pep8==1.6.2 marshmallow==2.0.0b5 ordereddict==1.1 lxml==4.6.5 six==1.9.0 <MSG> adding cffi to requirements for pypi <DFF> @@ -1,3 +1,4 @@ +cffi==1.3.1 pytest==2.8.3 pep8==1.6.2 marshmallow==2.0.0b5
1
adding cffi to requirements for pypi
0
.txt
txt
apache-2.0
greedo/python-xbrl
10049589
<NME> __init__.py <BEF> #! /usr/bin/env python # encoding: utf-8 from __future__ import absolute_import version = (1, 0, 9) from .xbrl import XBRLParser, GAAP, GAAPSerializer, XBRLParserException <MSG> updating docs and __init__.py <DFF> @@ -3,6 +3,6 @@ from __future__ import absolute_import -version = (1, 0,...
1
updating docs and __init__.py
1
.py
py
apache-2.0
greedo/python-xbrl
10049590
<NME> __init__.py <BEF> #! /usr/bin/env python # encoding: utf-8 from __future__ import absolute_import __version__ = '1.0.8' from .xbrl import XBRLParser <MSG> version bump <DFF> @@ -3,6 +3,6 @@ from __future__ import absolute_import -__version__ = '1.0.8' +__version__ = '1.0.9' from .xbrl import XBRLPars...
1
version bump
1
.py
py
apache-2.0
greedo/python-xbrl
10049591
<NME> xbrl.py <BEF> #! /usr/bin/env python # encoding: utf-8 import re from marshmallow import Schema, fields import datetime import collections import six import logging try: from StringIO import StringIO except ImportError: from io import StringIO if 'OrderedDict' in dir(collections): odict = collectio...
6
Correcting whitespace
7
.py
py
apache-2.0
greedo/python-xbrl
10049592
<NME> README.md <BEF> # Raptor WAF ![Alt text](https://github.com/CoolerVoid/raptor_waf/blob/master/doc/images/raptor2.png) Raptor is a Web application firewall made in C that uses DFA to block SQL injection, Cross-site scripting, and path traversal. https://funguscodes.blogspot.com/2016/08/steps-to-create-your-wafweb...
7
Update README.md
1
.md
md
bsd-2-clause
CoolerVoid/raptor_waf
10049593
<NME> requirements.txt <BEF> pytest==2.8.3 pep8==1.6.2 marshmallow>=2.15.1 beautifulsoup4 ordereddict lxml future <MSG> Revert "future not futures" This reverts commit 5017edeccee82105086e72a91765e4961b81d6af. <DFF> @@ -4,4 +4,4 @@ marshmallow beautifulsoup4 ordereddict lxml -future +futures
1
Revert "future not futures"
1
.txt
txt
apache-2.0
greedo/python-xbrl
10049594
<NME> README.md <BEF> # Raptor WAF ![Alt text](https://github.com/CoolerVoid/raptor_waf/blob/master/doc/images/raptor2.png) Raptor is a Web application firewall made in C that uses DFA to block SQL injection, Cross-site scripting, and path traversal. https://funguscodes.blogspot.com/2016/08/steps-to-create-your-wafweb...
3
Update README.md
0
.md
md
bsd-2-clause
CoolerVoid/raptor_waf
10049595
<NME> mem_ops.c <BEF> #include "mem_ops.h" #include "utils.h" // based in OpenBSD reallocarray() function http://man.openbsd.org/reallocarray.3 void *xallocaarray (size_t nmemb, size_t size) { if ((nmemb >= MUL_NO_OVERFLOW || size >= MUL_NO_OVERFLOW) && nmemb > 0 && SIZE_MAX / nmemb < size) { DEBUG("integer ove...
11
update error handler in memory functions
4
.c
c
bsd-2-clause
CoolerVoid/raptor_waf
10049596
<NME> Makefile <BEF> CC=gcc CFLAGS=-W -Wall -O2 -fstack-protector-all DFLAGS= lib/BSD/strsec.c -D_FORTIFY_SOURCE=2 DFLAGS= lib/BSD/strsec.c DIR=src/ DIR_HEADERS=src/headers/ DIROUT=bin/ UNAME_S := $(shell uname -s) ifeq ($(UNAME_S),Darwin) LDFLAGS=-Wl -lpthread -lpcre else LDFLAGS=-Wl,-z,relro,-z,now -lpthread -std=c...
3
Update Makefile
0
Makefile
bsd-2-clause
CoolerVoid/raptor_waf
10049597
<NME> utils.c <BEF> #include <stdio.h> #include <string.h> #include <stdlib.h> #include <stdbool.h> #include <alloca.h> #include <unistd.h> #include <signal.h> #include <sys/resource.h> #include <errno.h> #include <sys/types.h> #include <time.h> #include <ctype.h> #include "utils.h" #include "mem_ops.h" void No_Pause...
0
Remove function alloca()... to improve the code.
1
.c
c
bsd-2-clause
CoolerVoid/raptor_waf
10049598
<NME> setup.py <BEF> from distutils.core import setup setup( name='python-xbrl', version='1.0.1', description='library for parsing xbrl documents', author='Joe Cabrera', author_email='jcabrera@eminorlabs.com', description='library for parsing xbrl documents', author='Joe Cabrera', autho...
7
trying rst
1
.py
py
apache-2.0
greedo/python-xbrl
10049599
<NME> test_parse.py <BEF> #! /usr/bin/env python # encoding: utf-8 from xbrl import XBRLParser from xbrl import GAAP from xbrl import GAAPSerializer from xbrl import DEISerializer except ImportError: from io import StringIO from xbrl import soup_maker, XBRLParser, XBRLParserException, GAAP, GAAPSerializer def te...
21
pep8 part one
3
.py
py
apache-2.0
greedo/python-xbrl
10049600
<NME> validate.h <BEF> ADDFILE <MSG> remove backup files <DFF> @@ -0,0 +1,21 @@ +#ifndef __VALIDATE_H__ +#define __VALIDATE_H__ + + +#include <stdio.h> + +struct choice { + char hostarg[65]; + char logarg[17]; + short option_algorithm; + int portarg; + int redirectarg; + int wafmode; +}; + +struct choice param; + +vo...
21
remove backup files
0
.h
h
bsd-2-clause
CoolerVoid/raptor_waf
10049601
<NME> mem_ops.c <BEF> #include "mem_ops.h" #include "utils.h" // based in OpenBSD reallocarray() function http://man.openbsd.org/reallocarray.3 void *xallocaarray (size_t nmemb, size_t size) { if ((nmemb >= MUL_NO_OVERFLOW || size >= MUL_NO_OVERFLOW) && nmemb > 0 && SIZE_MAX / nmemb < size) { DEBUG("integer ove...
1
Fix error handler in memory
3
.c
c
bsd-2-clause
CoolerVoid/raptor_waf
10049602
<NME> gaap.py <BEF> from __future__ import print_function from xbrl import XBRLParser, GAAP, GAAPSerializer xbrl_parser = XBRLParser(precision=0) from __future__ import print_function from xbrl import XBRLParser, GAAP, GAAPSerializer, DEISerializer xbrl_parser = XBRLParser(precision=0) # Parse an incoming XBRL fil...
1
fixed example
3
.py
py
apache-2.0
greedo/python-xbrl
10049603
<NME> dfa_match.c <BEF> /* WAF mode level 1 DFA to block Block payloads SQLi union"|"select"|"insert"|"\@version"|"load_file"|"1=1"|"2=2" etc... Block Payloads XSS "eval"|"script"|"onstart"|"onload"|"onerror"|"onpageshow"|"onprogress"|"alert"|"onclick"|"onmouseover"|"onfinish"|"fromCharCode" etc.. Block Payload PATH tr...
16
fix bug at javascript
0
.c
c
bsd-2-clause
CoolerVoid/raptor_waf
10049604
<NME> README.rst <BEF> |PyPI version| |Travis-CI| |license| **python-xbrl** is a library for parsing `xbrl <http://www.xbrl.org/Specification/XBRL-2.1/REC-2003-12-31/XBRL-2.1-REC-2003-12-31+corrected-errata-2013-02-20.html>`__ documents providing output as both a basic model object and serialized objects thur `marshma...
3
make badges plastic
3
.rst
rst
apache-2.0
greedo/python-xbrl
10049605
<NME> blacklist.c <BEF> #include "blacklist.h" #include "mem_ops.h" #include "utils.h" #include "BSD/strsec.h" //read lines of file bool blacklist_ip(char * addr) { FILE * arq; bool at_list=false; arq = fopen("config/blacklist_ip.txt", "r"); if( arq == NULL ) { DEBUG("error to open() file"); return fals...
1
Update blacklist.c
1
.c
c
bsd-2-clause
CoolerVoid/raptor_waf
10049606
<NME> requirements.txt <BEF> pytest marshmallow beautifulsoup4 ordereddict==1.1 lxml==4.6.5 six==1.9.0 <MSG> Merge branch 'master' of https://github.com/greedo/python-xbrl <DFF> @@ -1,3 +1,4 @@ pytest marshmallow beautifulsoup4 +ordereddict
1
Merge branch 'master' of https://github.com/greedo/python-xbrl
0
.txt
txt
apache-2.0
greedo/python-xbrl
10049607
<NME> Raptor.c <BEF> #include <stdio.h> #include <netdb.h> #include <unistd.h> #include <stdlib.h> #include <string.h> #include <strings.h> #include <pthread.h> #include <sys/socket.h> #include <netinet/in.h> #include <getopt.h> #include <signal.h> #include <sys/resource.h> #include "utils.h" #include "proxy.h" // reve...
1
Fix error handlers, to not fall the WAF.
1
.c
c
bsd-2-clause
CoolerVoid/raptor_waf
10049608
<NME> setup.py <BEF> try: from setuptools import setup, find_packages except ImportError: from distutils.core import setup import os setup( name='python-xbrl', version='1.0.4', description='library for parsing xbrl documents', author='Joe Cabrera', author_email='jcabrera@eminorlabs.com', ...
5
we now support python 3
1
.py
py
apache-2.0
greedo/python-xbrl
10049609
<NME> test_parse.py <BEF> #! /usr/bin/env python # encoding: utf-8 from xbrl import XBRLParser from xbrl import GAAP from xbrl import GAAPSerializer from xbrl import DEISerializer from xbrl import XBRLParserException import pytest import sys import os import six try: import __pypy__ except ImportError: __pypy...
1
pypy also does strange things with dict_items
1
.py
py
apache-2.0
greedo/python-xbrl
10049610
<NME> regex_rules.txt <BEF> ADDFILE <MSG> Update version and add pcre regex to match rules at config/regex_rules.txt <DFF> @@ -0,0 +1,6 @@ +select|insert|update|delete|drop|union +version.*\@ +[0-9]=[0-9].* +eval\( +alert\( +\<script.*script\>
6
Update version and add pcre regex to match rules at config/regex_rules.txt
0
.txt
txt
bsd-2-clause
CoolerVoid/raptor_waf
10049611
<NME> xbrl.py <BEF> #! /usr/bin/env python # encoding: utf-8 import re from marshmallow import Schema, fields import datetime import collections import six import logging try: from StringIO import StringIO except ImportError: from io import StringIO if 'OrderedDict' in dir(collections): odict = collectio...
12
adding common_shares_outstanding, fixes #19
1
.py
py
apache-2.0
greedo/python-xbrl
10049612
<NME> validate.c <BEF> #include <stdio.h> #include "utils.h" #include "validate.h" void isnull_argv() { if(strnlen(param.hostarg,64)==0) { DEBUG("Need host argument\n"); exit(0); } if(param.portarg==0) { DEBUG("Need port argument\n"); exit(0); } if(param.redirectarg==0) { DEBUG("Need redirect argu...
0
improve headers
1
.c
c
bsd-2-clause
CoolerVoid/raptor_waf
10049613
<NME> xbrl.py <BEF> #! /usr/bin/env python # encoding: utf-8 import re from marshmallow import Schema, fields import datetime import collections import six import logging try: from StringIO import StringIO except ImportError: from io import StringIO if 'OrderedDict' in dir(collections): odict = collectio...
15
adding custom tag parsing logic
6
.py
py
apache-2.0
greedo/python-xbrl
10049614
<NME> mem_ops.c <BEF> #include "mem_ops.h" #include "utils.h" // based in OpenBSD reallocarray() function http://man.openbsd.org/reallocarray.3 void *xallocaarray (size_t nmemb, size_t size) { if ((nmemb >= MUL_NO_OVERFLOW || size >= MUL_NO_OVERFLOW) && nmemb > 0 && SIZE_MAX / nmemb < size) { DEBUG("integer ove...
5
fix error handler
5
.c
c
bsd-2-clause
CoolerVoid/raptor_waf
10049615
<NME> setup.py <BEF> try: from setuptools import setup, find_packages except ImportError: from distutils.core import setup import os long_description = 'library for parsing xbrl documents' if os.path.exists('README.rst'): long_description = open('README.rst').read() setup( name='python-xbrl', vers...
1
bump to version 1.1.1
1
.py
py
apache-2.0
greedo/python-xbrl
10049616
<NME> test_parse.py <BEF> #! /usr/bin/env python # encoding: utf-8 from xbrl import XBRLParser from xbrl import GAAP from xbrl import GAAPSerializer from xbrl import DEISerializer from xbrl import XBRLParserException import pytest import sys import os import six try: from StringIO import StringIO except ImportErr...
6
check for pypy runtime
1
.py
py
apache-2.0
greedo/python-xbrl
10049617
<NME> .travis.yml <BEF> sudo: false language: python python: - "3.4" - "3.3" - "2.7" - "2.6" - "pypy" addons: apt: packages: - build-essential - python-dev - libxml2 - libxml2-dev - libxslt-dev # command to install dependencie...
1
removing pypi support for now
3
.yml
travis
apache-2.0
greedo/python-xbrl
10049618
<NME> utils.h <BEF> ADDFILE <MSG> first write <DFF> @@ -0,0 +1,40 @@ +#include <stdio.h> +#include <string.h> +#include <stdlib.h> +#include <stdbool.h> +#include <alloca.h> +#include <unistd.h> +#include <signal.h> +#include <sys/resource.h> +#include <errno.h> +#include <sys/types.h> +#include <time.h> + + +// set ...
40
first write
0
.h
h
bsd-2-clause
CoolerVoid/raptor_waf
10049619
<NME> xbrl.py <BEF> #! /usr/bin/env python # encoding: utf-8 import re from marshmallow import Schema, fields import datetime import collections import six import logging try: from StringIO import StringIO except ImportError: from io import StringIO if 'OrderedDict' in dir(collections): odict = collectio...
3
Update xbrl.py
4
.py
py
apache-2.0
greedo/python-xbrl
10049620
<NME> proxy.c <BEF> #include "proxy.h" #include "BSD/strsec.h" /* items of struct tcp_server_thread_info char stamp[128]; char log_reg[18]; int stamp_port; int accepted_socket; int wafmode; short match_option; */ /// get ip of client char *get_ip_of(int sock) { socklen_t len; struct sockaddr_storage addr; c...
14
Fix error handlers, to not fall the WAF.
19
.c
c
bsd-2-clause
CoolerVoid/raptor_waf
10049621
<NME> match_list_request.txt <BEF> /c99.php ERRORLOL MySQL ERROR Oracle ERROR FATAL ERROR at SQL /r57.php %20waitfor%20delay%20 MD5(1))%20 )) and 0 or pg_sleep(__TIME__) 1 exec sp_ (or exec xp_) 1=utl_inaddr.get_host_address(( myappadmin.adduser(' ’ or ‘1’=’1 ' or '1'='1 true, $where: '1 == 1' , $where: '1 == 1' $where...
4
Update match_list_request.txt
4
.txt
txt
bsd-2-clause
CoolerVoid/raptor_waf
10049622
<NME> setup.py <BEF> try: from setuptools import setup, find_packages except ImportError: from distutils.core import setup import os setup( name='python-xbrl', version='1.0.6', description='library for parsing xbrl documents', author='Joe Cabrera', author_email='jcabrera@eminorlabs.com', ...
1
version bump
1
.py
py
apache-2.0
greedo/python-xbrl
10049623
<NME> requirements.txt <BEF> pytest==2.8.3 pep8==1.6.2 marshmallow==2.0.0b5 beautifulsoup4==4.4.1 ordereddict==1.1 lxml==3.5.0 six==1.9.0 <MSG> Merge pull request #46 from greedo/hotfix-CVE-2018-17175 upgrading marshmallow to address CVE-2018-17175 <DFF> @@ -1,6 +1,6 @@ pytest==2.8.3 pep8==1.6.2 -marshmallow==2.0.0...
1
Merge pull request #46 from greedo/hotfix-CVE-2018-17175
1
.txt
txt
apache-2.0
greedo/python-xbrl
10049624
<NME> test_parse.py <BEF> #! /usr/bin/env python # encoding: utf-8 from xbrl import XBRLParser from xbrl import GAAP from xbrl import GAAPSerializer from xbrl import DEISerializer from xbrl import XBRLParserException import pytest from parser import soup_maker, XBRLParser, XBRLParserException class TestParse(TestCa...
5
added first test
9
.py
py
apache-2.0
greedo/python-xbrl
10049625
<NME> rule.c <BEF> #include "utils.h" #include "mem_ops.h" #include "dfa_match.h" #include "file_ops.h" #include "blacklist.h" #include "matchlist.h" #include <strings.h> #include <sys/socket.h> #include <stdbool.h> #include <alloca.h> #include <time.h> #include "utils.h" #include "mem_ops.h" time_t t = time(NULL); ...
6
add xmallocarray() and xallocaarray() based of http://man.openbsd.org/reallocarray.3 prevent integer overflow
7
.c
c
bsd-2-clause
CoolerVoid/raptor_waf
10049626
<NME> test_parse.py <BEF> #! /usr/bin/env python # encoding: utf-8 import sys sys.path.insert(0, os.path.abspath('..')) from parser import soup_maker class TestParse(TestCase): import sys import os import six try: import __pypy__ except ImportError: __pypy__ = None try: from StringIO import StringIO ex...
1
updated parser
1
.py
py
apache-2.0
greedo/python-xbrl
10049627
<NME> README.rst <BEF> |PyPI version| |Travis-CI| |license| **python-xbrl** is a library for parsing `xbrl <http://www.xbrl.org/Specification/XBRL-2.1/REC-2003-12-31/XBRL-2.1-REC-2003-12-31+corrected-errata-2013-02-20.html>`__ documents providing output as both a basic model object and serialized objects thur `marshma...
2
Merge branch 'master' of https://github.com/greedo/python-xbrl
0
.rst
rst
apache-2.0
greedo/python-xbrl
10049628
<NME> xbrl.py <BEF> #! /usr/bin/env python # encoding: utf-8 import re from marshmallow import Schema, fields import datetime import collections import six import logging try: from StringIO import StringIO except ImportError: from io import StringIO if 'OrderedDict' in dir(collections): odict = collectio...
3
fixes parsing of incorrectly formed XBRL contentRefs
3
.py
py
apache-2.0
greedo/python-xbrl
10049629
<NME> README.rst <BEF> |PyPI version| |Travis-CI| |license| **python-xbrl** is a library for parsing `xbrl <http://www.xbrl.org/Specification/XBRL-2.1/REC-2003-12-31/XBRL-2.1-REC-2003-12-31+corrected-errata-2013-02-20.html>`__ documents providing output as both a basic model object and serialized objects thur `marshma...
4
updating docs for special PyPI support notice
2
.rst
rst
apache-2.0
greedo/python-xbrl
10049630
<NME> setup.py <BEF> try: from setuptools import setup, find_packages from setuptools import setup, find_packages # Read the version from __init__ to avoid importing ofxparse while installing. # This lets the install work when the user does not have BeautifulSoup # installed. VERSION = re.search(r"__version__ = '...
17
Update setup.py
14
.py
py
apache-2.0
greedo/python-xbrl
10049631
<NME> gaap.py <BEF> #! /usr/bin/env python # encoding: utf-8 from __future__ import print_function xbrl_parser = XBRLParser(precision=0) # Parse an incoming XBRL file xbrl = xbrl_parser.parseGAAP(file("../tests/sam-20130629.xml")) # Parse just the GAAP data from the xbrl object gaap_obj = xbrl_parser.parseGAAP(xbrl...
1
Merge branch 'master' of https://github.com/greedo/python-xbrl
1
.py
py
apache-2.0
greedo/python-xbrl
10049632
<NME> README.md <BEF> # Raptor WAF ![Alt text](https://github.com/CoolerVoid/raptor_waf/blob/master/doc/images/raptor2.png) Raptor is a Web application firewall made in C that uses DFA to block SQL injection, Cross-site scripting, and path traversal. https://funguscodes.blogspot.com/2016/08/steps-to-create-your-wafweb...
3
Update README.md
0
.md
md
bsd-2-clause
CoolerVoid/raptor_waf
10049633
<NME> README.rst <BEF> |PyPI version| |Travis-CI| |license| **python-xbrl** is a library for parsing `xbrl <http://www.xbrl.org/Specification/XBRL-2.1/REC-2003-12-31/XBRL-2.1-REC-2003-12-31+corrected-errata-2013-02-20.html>`__ documents providing output as both a basic model object and serialized objects thur `marshma...
1
Update README.rst
1
.rst
rst
apache-2.0
greedo/python-xbrl
10049634
<NME> validate.h <BEF> ADDFILE <MSG> fix bug at argv <DFF> @@ -0,0 +1,14 @@ +#include <stdio.h> + +struct choice { + char hostarg[65]; + char logarg[17]; + short option_algorithm; + int portarg; + int redirectarg; + int wafmode; +}; + +struct choice param; + +void isnull_argv();
14
fix bug at argv
0
.h
h
bsd-2-clause
CoolerVoid/raptor_waf
10049635
<NME> README.md <BEF> # Raptor WAF ![Alt text](https://github.com/CoolerVoid/raptor_waf/blob/master/doc/images/raptor2.png) Raptor is a Web application firewall made in C that uses DFA to block SQL injection, Cross-site scripting, and path traversal. https://funguscodes.blogspot.com/2016/08/steps-to-create-your-wafweb...
2
Update README.md
4
.md
md
bsd-2-clause
CoolerVoid/raptor_waf
10049636
<NME> xbrl.py <BEF> #! /usr/bin/env python # encoding: utf-8 import re from marshmallow import Schema, fields import datetime import collections import six import logging try: from StringIO import StringIO except ImportError: from io import StringIO if 'OrderedDict' in dir(collections): odict = collectio...
5
caller for custom tags
1
.py
py
apache-2.0
greedo/python-xbrl
10049637
<NME> test_parse.py <BEF> #! /usr/bin/env python # encoding: utf-8 from xbrl import XBRLParser from xbrl import GAAP from xbrl import GAAPSerializer from xbrl import DEISerializer from xbrl import XBRLParserException import pytest import sys import os import six try: import __pypy__ except ImportError: __pypy...
530
issue 53: fix test
530
.py
py
apache-2.0
greedo/python-xbrl
10049638
<NME> xbrl.py <BEF> import re from marshmallow import Serializer, fields import datetime import collections import six import logging try: from StringIO import StringIO except ImportError: from io import StringIO if 'OrderedDict' in dir(collections): odict = collections else: import ordereddict as odi...
3
removing un-need manifest, encoding formatting
0
.py
py
apache-2.0
greedo/python-xbrl
10049639
<NME> README.md <BEF> # Raptor WAF ![Alt text](https://github.com/CoolerVoid/raptor_waf/blob/master/doc/images/raptor2.png) Raptor is a Web application firewall made in C that uses DFA to block SQL injection, Cross-site scripting, and path traversal. https://funguscodes.blogspot.com/2016/08/steps-to-create-your-wafweb...
19
update, isnert hardneing in make file, update paths etc
5
.md
md
bsd-2-clause
CoolerVoid/raptor_waf
10049640
<NME> requirements.txt <BEF> pytest==2.8.3 pep8==1.6.2 marshmallow>=2.15.1 beautifulsoup4==4.4.1 ordereddict lxml six <MSG> ignore errors option added, closes #11 <DFF> @@ -5,3 +5,4 @@ beautifulsoup4 ordereddict lxml six +logging
1
ignore errors option added, closes #11
0
.txt
txt
apache-2.0
greedo/python-xbrl
10049641
<NME> gaap.py <BEF> #! /usr/bin/env python # encoding: utf-8 from __future__ import print_function from xbrl import XBRLParser, GAAP, GAAPSerializer, DEISerializer xbrl_parser = XBRLParser(0) # Parse an incoming XBRL file file_to_parse = "../tests/sam-20130629.xml" xbrl = xbrl_parser.parse(file_to_parse) # Parse ...
3
update to use new marshmallow API v1.0
2
.py
py
apache-2.0
greedo/python-xbrl
10049642
<NME> requirements.txt <BEF> pytest==2.8.3 pep8==1.6.2 marshmallow>=2.15.1 beautifulsoup4==4.4.1 ordereddict lxml six logging <MSG> logging should be in stdlib <DFF> @@ -5,4 +5,3 @@ beautifulsoup4 ordereddict lxml six -logging
0
logging should be in stdlib
1
.txt
txt
apache-2.0
greedo/python-xbrl
10049643
<NME> gaap.py <BEF> #! /usr/bin/env python # encoding: utf-8 from xbrl import XBRLParser, GAAP, GAAPSerializer xbrl_parser = XBRLParser(precision=0) xbrl_parser = XBRLParser(precision=0) # Parse an incoming XBRL file xbrl = xbrl_parser.parse("../tests/sam-20130629.xml") # Parse just the GAAP data from the xbrl obj...
1
Adding DEISerializer
1
.py
py
apache-2.0
greedo/python-xbrl
10049644
<NME> .travis.yml <BEF> sudo: false python: - "2.6" - "2.7" - "3.2" - "3.3" # command to install dependencies install: - pip install . - pip install -r requirements.txt # command to run tests packages: - build-essential - python-dev - libxml2 ...
0
think this is correct
3
.yml
travis
apache-2.0
greedo/python-xbrl
10049645
<NME> proxy.c <BEF> #include "proxy.h" #include "BSD/strsec.h" /* items of struct tcp_server_thread_info char stamp[128]; char log_reg[18]; int stamp_port; int accepted_socket; int wafmode; short match_option; */ /// get ip of client char *get_ip_of(int sock) { socklen_t len; struct sockaddr_storage addr; c...
2
Update proxy.c
1
.c
c
bsd-2-clause
CoolerVoid/raptor_waf
10049646
<NME> validate.c <BEF> #include "utils.h" #include "validate.h" void isnull_argv() { if(strnlen(param.hostarg,64)==0) { DEBUG("Need host argument\n"); exit(0); } if(param.portarg==0) { DEBUG("Need port argument\n"); exit(0); } if(param.redirectarg==0) { DEBUG("Need redirect argument"); exit(0); ...
0
improve memory erase
6
.c
c
bsd-2-clause
CoolerVoid/raptor_waf
10049647
<NME> match_algorithms.c <BEF> #include "utils.h" #include "match_algorithms.h" int NextMachineState(char *pat, int M, int state, int x) { // If the character N is same as next character in pattern, then simply increment state if (state < M && x == pat[state]) return state+1; register int fix=state, i=0; ...
0
Update match_algorithms.c
2
.c
c
bsd-2-clause
CoolerVoid/raptor_waf
10049648
<NME> parser.py <BEF> ADDFILE <MSG> using softlink instead <DFF> @@ -0,0 +1,1 @@ +parser.py \ No newline at end of file
1
using softlink instead
0
.py
py
apache-2.0
greedo/python-xbrl
10049649
<NME> README.rst <BEF> |PyPI version| |Travis-CI| |license| **python-xbrl** is a library for parsing `xbrl <http://www.xbrl.org/Specification/XBRL-2.1/REC-2003-12-31/XBRL-2.1-REC-2003-12-31+corrected-errata-2013-02-20.html>`__ documents providing output as both a basic model object and serialized objects thur `marshma...
1
no caps for support
1
.rst
rst
apache-2.0
greedo/python-xbrl