Skip to content

Commit 7f37ad4

Browse files
authored
Merge pull request owasp-modsecurity#3535 from airween/v2/libinjection4final
feat(libinjection): add libinjection 4 final to v2
2 parents bfb8662 + 9c9761a commit 7f37ad4

22 files changed

Lines changed: 216 additions & 13876 deletions

.github/workflows/ci.yml

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,10 @@ jobs:
2828
run: |
2929
sudo apt-get update -y -qq
3030
sudo apt-get install -y apache2-dev libxml2-dev liblua5.1-0-dev libcurl4-gnutls-dev libpcre2-dev libpcre3-dev libpcre3 pkg-config libyajl-dev apache2 apache2-bin apache2-data
31-
- uses: actions/checkout@v2
31+
- uses: actions/checkout@v4
32+
with:
33+
submodules: recursive
34+
fetch-depth: 0
3235
- name: autogen.sh
3336
run: ./autogen.sh
3437
- name: configure ${{ matrix.configure.label }}
@@ -98,7 +101,10 @@ jobs:
98101
run: |
99102
sudo apt-get update -y -qq
100103
sudo apt-get install -y --no-install-recommends apache2-dev libxml2-dev liblua5.1-0-dev libcurl4-gnutls-dev libpcre2-dev libpcre3-dev libpcre3 pkg-config libyajl-dev apache2 apache2-bin apache2-data
101-
- uses: actions/checkout@v2
104+
- uses: actions/checkout@v4
105+
with:
106+
submodules: recursive
107+
fetch-depth: 0
102108
- name: autogen.sh
103109
run: ./autogen.sh
104110
- name: configure ${{ matrix.configure.label }}
@@ -125,7 +131,10 @@ jobs:
125131
run: |
126132
sudo apt-get update -y -qq
127133
sudo apt-get install -y --no-install-recommends apache2-dev libxml2-dev liblua5.1-0-dev libcurl4-gnutls-dev libpcre2-dev libpcre3-dev libpcre3 pkg-config libyajl-dev apache2 apache2-bin apache2-data perl libwww-perl ssdeep libfuzzy-dev libfuzzy2
128-
- uses: actions/checkout@v2
134+
- uses: actions/checkout@v4
135+
with:
136+
submodules: recursive
137+
fetch-depth: 0
129138
- name: autogen.sh
130139
run: ./autogen.sh
131140
- name: configure ${{ matrix.configure.label }}
@@ -162,10 +171,11 @@ jobs:
162171
libfuzzy-dev \
163172
ssdeep \
164173
curl \
165-
ca-certificates
174+
ca-certificates \
175+
git
166176
- uses: actions/checkout@v4
167177
with:
168-
submodules: false
178+
submodules: recursive
169179
fetch-depth: 0
170180
- name: configure
171181
run: |

.github/workflows/test-ci-windows.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,9 @@ jobs:
2020
steps:
2121
- name: Checkout code
2222
uses: actions/checkout@v5
23-
23+
with:
24+
submodules: recursive
25+
fetch-depth: 0
2426
- name: Install Apache for x86
2527
if: matrix.arch == 'x86'
2628
shell: pwsh
@@ -122,6 +124,9 @@ jobs:
122124
steps:
123125
- name: Checkout code
124126
uses: actions/checkout@v5
127+
with:
128+
submodules: recursive
129+
fetch-depth: 0
125130

126131
- name: Download x64 artifacts
127132
uses: actions/download-artifact@v4
@@ -159,6 +164,9 @@ jobs:
159164
steps:
160165
- name: Checkout code
161166
uses: actions/checkout@v5
167+
with:
168+
submodules: recursive
169+
fetch-depth: 0
162170

163171
- name: Download MSI files
164172
uses: actions/download-artifact@v4

.gitmodules

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[submodule "apache2/others/libinjection"]
2+
path = apache2/others/libinjection
3+
url = https://github.com/libinjection/libinjection.git

apache2/Makefile.am

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ mod_security2_la_SOURCES = acmp.c \
55
apache2_config.c \
66
apache2_io.c \
77
apache2_util.c \
8-
libinjection/libinjection_html5.c \
9-
libinjection/libinjection_sqli.c \
10-
libinjection/libinjection_xss.c \
8+
others/libinjection/src/libinjection_html5.c \
9+
others/libinjection/src/libinjection_sqli.c \
10+
others/libinjection/src/libinjection_xss.c \
1111
mod_security2.c \
1212
modsecurity.c \
1313
msc_status_engine.c \

apache2/Makefile.win

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,9 +68,9 @@ OBJS = mod_security2.obj apache2_config.obj apache2_io.obj apache2_util.obj \
6868
msc_status_engine.obj \
6969
msc_remote_rules.obj \
7070
msc_json.obj \
71-
libinjection/libinjection_html5.obj \
72-
libinjection/libinjection_sqli.obj \
73-
libinjection/libinjection_xss.obj
71+
others/libinjection/src/libinjection_html5.obj \
72+
others/libinjection/src/libinjection_sqli.obj \
73+
others/libinjection/src/libinjection_xss.obj
7474

7575
all: $(DLL)
7676

apache2/libinjection/COPYING.txt

Lines changed: 0 additions & 37 deletions
This file was deleted.

apache2/libinjection/libinjection.h

Lines changed: 0 additions & 65 deletions
This file was deleted.

0 commit comments

Comments
 (0)