Skip to content

Commit d925bdc

Browse files
committed
chore: update Windows build to use PCRE2 as default
Signed-off-by: Felipe Zipitria <felipe.zipitria@owasp.org>
1 parent 630dfbd commit d925bdc

File tree

7 files changed

+102
-98
lines changed

7 files changed

+102
-98
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,7 @@ jobs:
100100
-A $cmakeArch `
101101
-DWITH_LUA=ON `
102102
-DWITH_YAJL=ON `
103+
-DWITH_PCRE_JIT=ON `
103104
-S IIS -B "iis\build"
104105
105106
- name: Build IIS Module

README_WINDOWS.md

Lines changed: 57 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,14 @@ by Tom Donovam, 4/2/2011
88

99
Dependency | Tested with | Note
1010
----|------|----
11-
Microsoft Visual Studio C++ | Visual Studio 2013 (aka VC12) |
12-
[CMake build system](http://www.cmake.org/) | CMake v3.8.2 |
13-
[Apache 2.4.x](http://httpd.apache.org/) | Apache 2.4.27 | Apache must be built from source using the same Visual Studio compiler as mod_security.
14-
[PCRE, Perl Compatible Regular Expression library](http://www.pcre.org/) | PCRE v8.40
15-
[LibXML2](http://xmlsoft.org/) | LibXML2 v2.9.4 |
16-
[Lua Scripting Language](http://www.lua.org/) | Lua v5.3.4
17-
[cURL multiprotocol file transfer library](http://curl.haxx.se/) | cURL v7.54.0
11+
Microsoft Visual Studio C++ | Visual Studio 2019 (aka VS16) |
12+
[CMake build system](http://www.cmake.org/) | CMake v4.2.3 |
13+
[Apache 2.4.x](http://httpd.apache.org/) | Apache 2.4.66 | Apache must be built from source using the same Visual Studio compiler as mod_security.
14+
[PCRE2, Perl Compatible Regular Expression library](https://www.pcre.org/) | PCRE2 v10.47 | ModSecurity v2 now uses PCRE2 by default (not legacy PCRE)
15+
[LibXML2](http://xmlsoft.org/) | LibXML2 v2.15.1 |
16+
[Lua Scripting Language](http://www.lua.org/) | Lua v5.4.8
17+
[cURL multiprotocol file transfer library](http://curl.haxx.se/) | cURL v8.18.0
18+
[zlib compression library](https://zlib.net/) | zlib v1.3.1
1819

1920

2021
## Before building
@@ -23,22 +24,25 @@ The directory where you build software from source ( ``C:\work`` in this exmaple
2324
must contain the Apache source you used to build the Apache web serverand the mod_security source
2425

2526
Apache source is in C:\work\httpd-2.4.27 in this example.
26-
Apache has been installed to C:\Apache2427 in this example.
27+
Apache has been installed to C:\Apache2466 in this example.
2728
Mod_security source is in C:\work\mod_security in this example.
2829

2930
## Download and untar the prerequisite library sources:
3031

31-
Download pcre-8.40.tar.gz from ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/
32-
untar it into C:\work\ creating C:\work\pcre-8.40
32+
Download pcre2-10.47.zip from https://github.com/PCRE2Project/pcre2/releases/download/pcre2-10.47/
33+
unzip it into C:\work\ creating C:\work\pcre2-10.47
3334

34-
Download libxml2-2.9.4.tar.gz from ftp://xmlsoft.org/libxml2/
35-
untar it into C:\work\ creating C:\work\libxml2-2.9.4
35+
Download libxml2-2.15.1.tar.gz from https://download.gnome.org/sources/libxml2/2.15/
36+
untar it into C:\work\ creating C:\work\libxml2-2.15.1
3637

37-
Download lua-5.3.4.tar.gz from http://www.lua.org/ftp/
38-
untar it into C:\work\ creating C:\work\lua-5.3.4
38+
Download lua-5.4.8.tar.gz from http://www.lua.org/ftp/
39+
untar it into C:\work\ creating C:\work\lua-5.4.8
3940

40-
Download curl-7.54.0.tar.gz from http://curl.haxx.se/download.html
41-
untar it into C:\work\ creating C:\work\curl-7.54.0
41+
Download curl-8.18.0.zip from https://curl.se/download/
42+
unzip it into C:\work\ creating C:\work\curl-8.18.0
43+
44+
Download zlib-1.3.1.tar.gz from https://github.com/madler/zlib/releases/download/v1.3.1/
45+
untar it into C:\work\ creating C:\work\zlib-1.3.1
4246

4347
## Setup your build environment:
4448

@@ -71,54 +75,58 @@ If OpenSSL and zlib support were included when you built Apache 2.4, and you wan
7175

7276
## Build
7377

74-
### PCRE-8.40
78+
### PCRE2-10.47
7579

76-
CD C:\work\pcre-8.40
77-
CMAKE -G "NMake Makefiles" -DCMAKE_BUILD_TYPE=RelWithDebInfo -DBUILD_SHARED_LIBS=True
80+
CD C:\work\pcre2-10.47
81+
CMAKE -G "NMake Makefiles" -DCMAKE_BUILD_TYPE=RelWithDebInfo -DBUILD_SHARED_LIBS=True -DPCRE2_BUILD_PCRE2_8=ON -DPCRE2_SUPPORT_JIT=ON
7882
NMAKE
7983

80-
### LibXML2-2.9.4
84+
Note: PCRE2 with JIT support provides better performance and fixes stack overflow issues present in older PCRE versions.
85+
86+
### LibXML2-2.15.1
8187

82-
CD C:\work\libxml2-2.9.4\win32
88+
CD C:\work\libxml2-2.15.1\win32
8389
CSCRIPT configure.js iconv=no vcmanifest=yes zlib=yes
8490
NMAKE -f Makefile.msvc
8591

86-
### Lua-5.3.4
92+
### Lua-5.4.8
8793

88-
CD C:\work\lua-5.3.4\src
94+
CD C:\work\lua-5.4.8\src
8995
CL /Ox /arch:SSE2 /GF /GL /Gy /FD /EHsc /MD /Zi /TC /wd4005 /D "_MBCS" /D "LUA_CORE" /D "LUA_BUILD_AS_DLL" /D "_CRT_SECURE_NO_WARNINGS" /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D "_WIN32" /D "_WINDLL" /c *.c
9096
DEL lua.obj luac.obj
9197
LINK /DLL /LTCG /DEBUG /OUT:lua5.1.dll *.obj
9298
IF EXIST lua5.1.dll.manifest MT -manifest lua5.1.dll.manifest -outputresource:lua5.1.dll;2
9399

94-
### cURL-7.54.0
100+
### cURL-8.18.0
95101

96-
CD C:\work\curl-7.54.0
97-
CMAKE -G "NMake Makefiles" -DCMAKE_BUILD_TYPE=RelWithDebInfo -DBUILD_SHARED_LIBS=True -DCURL_ZLIB=True
98-
NMAKE
102+
CD C:\work\curl-8.18.0\winbuild
103+
SET ARCH=x64
104+
NMAKE /f Makefile.vc mode=dll ENABLE_WINSSL=yes MACHINE=%ARCH% WITH_ZLIB=dll
99105

100106
### ModSecurity-2.9.x
101107

102108
CD C:\work\mod_security\apache2
103-
NMAKE -f Makefile.win APACHE=C:\Apache2427 PCRE=C:\work\pcre-8.40 LIBXML2=C:\work\libxml2-2.9.4 LUA=C:\work\lua-5.3.4\src
109+
NMAKE -f Makefile.win APACHE=C:\Apache2466 PCRE=C:\work\pcre2-10.47 LIBXML2=C:\work\libxml2-2.15.1 LUA=C:\work\lua-5.4.8\src CURL=C:\work\curl-8.18.0
104110

105111
## Install ModSecurity and run Apache
106112

107-
Copy these five files to ``C:\Apache2427\bin``:
113+
Copy these files to ``C:\Apache2466\bin``:
108114

109-
C:\work\pcre-8.40\pcre.dll C:\Apache2427\bin\
110-
C:\work\lua-5.3.4\src\lua5.1.dll C:\Apache2427\bin\
111-
C:\work\libxml2-2.9.4\win32\bin.msvc\libxml2.dll C:\Apache2427\bin\
112-
C:\work\curl-7.54.0\libcurl.dll C:\Apache2427\bin\
113-
C:\work\mod_security\apache2\mlogc-src\mlogc.exe
115+
C:\work\pcre2-10.47\pcre2-8.dll C:\Apache2466\bin\
116+
C:\work\lua-5.4.8\src\lua5.1.dll C:\Apache2466\bin\
117+
C:\work\libxml2-2.15.1\win32\bin.msvc\libxml2.dll C:\Apache2466\bin\
118+
C:\work\curl-8.18.0\builds\libcurl-vc-x64-release-dll-zlib-dll-ipv6-sspi-schannel-obj-lib\libcurl.dll C:\Apache2466\bin\
119+
C:\work\mod_security\apache2\mlogc-src\mlogc.exe C:\Apache2466\bin\
114120

115-
Copy this one file to ``C:\Apache2427\modules``:
121+
Copy this one file to ``C:\Apache2466\modules``:
116122

117123
C:\work\mod_security\apache2\mod_security2.so
118124

119-
You may also copy ``C:\work\curl-7.54.0\curl.exe`` to ``C:\Apache2427\bin``, if you want to use the cURL command-line program.
125+
You may also copy ``C:\work\curl-8.18.0\curl.exe`` to ``C:\Apache2466\bin``, if you want to use the cURL command-line program.
126+
127+
Download OWASP CRS from https://github.com/coreruleset/coreruleset/releases/latest and unzip it into ``C:\Apache2466\conf\owasp_crs``
120128

121-
Download the core rules from http://sourceforge.net/projects/mod-security/files/modsecurity-crs/0-CURRENT/ and unzip them into ``C:\Apache2427\conf\modsecurity_crs``
129+
For example, download ``coreruleset-4.x.x.zip``, extract it, and rename the extracted directory to ``owasp_crs``.
122130

123131
Add configuration directives to your Apache conf\httpd.conf:
124132

@@ -130,8 +138,9 @@ Add configuration directives to your Apache conf\httpd.conf:
130138
<IfModule security2_module>
131139
SecRuleEngine On
132140
SecDataDir logs
133-
Include conf/modsecurity_crs/*.conf
134-
Include conf/modsecurity_crs/base_rules/*.conf
141+
# Include OWASP CRS configuration
142+
Include conf/owasp_crs/crs-setup.conf
143+
Include conf/owasp_crs/rules/*.conf
135144
SecAuditEngine RelevantOnly
136145
SecAuditLogRelevantStatus "^(?:5|4\d[^4])"
137146
SecAuditLogType Serial
@@ -144,31 +153,31 @@ Add configuration directives to your Apache conf\httpd.conf:
144153
Edit the top of ``C:\work\mod_security\apache2\mlogc-src\Makefile.win`` and set your local paths
145154

146155
# Path to Apache httpd installation
147-
BASE = C:\Apache2427
156+
BASE = C:\Apache2466
148157

149158
# Paths to required libraries
150-
PCRE = C:\work\pcre-8.40
151-
CURL = C:\work\curl-7.54.0
159+
PCRE = C:\work\pcre2-10.47
160+
CURL = C:\work\curl-8.18.0
152161

153162
# Linking libraries
154163
LIBS = $(BASE)\lib\libapr-1.lib \
155164
$(BASE)\lib\libaprutil-1.lib \
156-
$(PCRE)\pcre.lib \
157-
$(CURL)\libcurl_imp.lib \
165+
$(PCRE)\pcre2-8.lib \
166+
$(CURL)\libcurl.lib \
158167
wsock32.lib
159168

160169
Build the ``mlogc.exe`` program:
161170

162171
CD C:\work\mod_security_trunk\mlogc
163172
NMAKE -f Makefile.win
164173

165-
Copy ``mlocg.exe`` to ``C:\Apache2427\bin\``
174+
Copy ``mlocg.exe`` to ``C:\Apache2466\bin\``
166175

167-
Create a new command file ``C:\Apache2427\bin\mlogc.bat`` with one line:
176+
Create a new command file ``C:\Apache2466\bin\mlogc.bat`` with one line:
168177

169-
C:\Apache2427\bin\mlogc.exe C:\Apache2427\conf\mlogc.conf
178+
C:\Apache2466\bin\mlogc.exe C:\Apache2466\conf\mlogc.conf
170179

171-
Create a new configuration file ``C:\Apache2427\conf\mlogc.conf`` to control the piped-logging program ``mlogc.exe``.
180+
Create a new configuration file ``C:\Apache2466\conf\mlogc.conf`` to control the piped-logging program ``mlogc.exe``.
172181
Here is an example ``conf\mlogc.conf``:
173182

174183
CollectorRoot "C:/Apache2427/logs"

iis/Makefile.win

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
###########################################################################
22
#
3-
# Usage: NMAKE -f Makefile.win APACHE={httpd installion dir} PCRE={pcre dir} LIBXML2={LibXML2 dir} [ LUA={Lua dir} ]
3+
# Usage: NMAKE -f Makefile.win APACHE={httpd installion dir} PCRE={pcre2 dir} LIBXML2={LibXML2 dir} [ LUA={Lua dir} ]
4+
# Note: ModSecurity v2 uses PCRE2 by default (not legacy PCRE). Set PCRE to your pcre2 build directory.
45
#
56
!IF "$(APACHE)" == "" || "$(PCRE)" == "" || "$(LIBXML2)" == "" || "$(CURL)" == ""
67
!ERROR NMAKE arguments: APACHE=dir PCRE=dir LIBXML2=dir CURL=dir are required to build mod_security2 for Windows
@@ -9,7 +10,7 @@
910
# Linking libraries
1011
LIBS = $(APACHE)\lib\libapr-1.lib \
1112
$(APACHE)\lib\libaprutil-1.lib \
12-
$(PCRE)\pcre.lib \
13+
$(PCRE)\pcre2-8.lib \
1314
$(CURL)\libcurl.lib \
1415
$(LIBXML2)\win32\bin.msvc\libxml2.lib \
1516
"kernel32.lib" "user32.lib" "gdi32.lib" "winspool.lib" "comdlg32.lib" "advapi32.lib" "shell32.lib" "ole32.lib" \
@@ -24,7 +25,7 @@ LINK = link.exe
2425

2526
MT = mt
2627

27-
DEFS = /nologo /O2 /LD /W3 /wd4244 /wd4018 -DWITH_YAJL -DWIN32 -DWINNT -Dinline=APR_INLINE -DAP_DECLARE_STATIC -D_MBCS -D$(VERSION)
28+
DEFS = /nologo /O2 /LD /W3 /wd4244 /wd4018 -DWITH_YAJL -DWITH_PCRE_JIT -DWIN32 -DWINNT -Dinline=APR_INLINE -DAP_DECLARE_STATIC -D_MBCS -D$(VERSION)
2829

2930
DLL = ModSecurityIIS.dll
3031

iis/build_dependencies.bat

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,15 @@
77
@set SOURCE_DIR=%USERPROFILE%\Downloads
88

99
:: Dependencies
10-
@set CMAKE=cmake-3.12.4-win32-x86.zip
11-
@set PCRE=pcre-8.45.zip
12-
@set ZLIB=zlib-1.2.12.tar.gz
13-
@set LIBXML2=libxml2-2.9.14.tar.gz
14-
@set LUA=lua-5.3.6.tar.gz
15-
@set CURL=curl-7.83.1.zip
16-
@set APACHE_SRC=httpd-2.4.54.tar.gz
17-
@set APACHE_BIN32=httpd-2.4.54-win32-VS16.zip
18-
@set APACHE_BIN64=httpd-2.4.54-win64-VS16.zip
10+
@set CMAKE=cmake-4.2.3-windows-x86_64.zip
11+
@set PCRE=pcre2-10.47.zip
12+
@set ZLIB=zlib-1.3.1.tar.gz
13+
@set LIBXML2=libxml2-2.15.1.tar.gz
14+
@set LUA=lua-5.4.8.tar.gz
15+
@set CURL=curl-8.18.0.zip
16+
@set APACHE_SRC=httpd-2.4.66.tar.gz
17+
@set APACHE_BIN32=httpd-2.4.66-win32-VS16.zip
18+
@set APACHE_BIN64=httpd-2.4.66-win64-VS16.zip
1919
@set YAJL=yajl-2.1.0.zip
2020
@set SSDEEP=ssdeep-2.14.1.tar.gz
2121
@set SSDEEP_BIN=ssdeep-2.14.1.zip

iis/build_release.bat

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ copy "%OUTPUT_DIR%\libxml2.dll" "%AMD64%"
3232
copy "%OUTPUT_DIR%\lua5.1.dll" "%AMD64%"
3333
copy "%OUTPUT_DIR%\mlogc.exe" "%AMD64%"
3434
copy "%OUTPUT_DIR%\ModSecurityIIS.dll" "%AMD64%"
35-
copy "%OUTPUT_DIR%\pcre.dll" "%AMD64%"
35+
copy "%OUTPUT_DIR%\pcre2-8.dll" "%AMD64%"
3636
copy "%OUTPUT_DIR%\zlib1.dll" "%AMD64%"
3737
copy "%OUTPUT_DIR%\yajl.dll" "%AMD64%"
3838
copy "%OUTPUT_DIR%\fuzzy.dll" "%AMD64%"
@@ -51,7 +51,7 @@ copy "%OUTPUT_DIR%\libxml2.dll" "%X86%"
5151
copy "%OUTPUT_DIR%\lua5.1.dll" "%X86%"
5252
copy "%OUTPUT_DIR%\mlogc.exe" "%X86%"
5353
copy "%OUTPUT_DIR%\ModSecurityIIS.dll" "%X86%"
54-
copy "%OUTPUT_DIR%\pcre.dll" "%X86%"
54+
copy "%OUTPUT_DIR%\pcre2-8.dll" "%X86%"
5555
copy "%OUTPUT_DIR%\zlib1.dll" "%X86%"
5656
copy "%OUTPUT_DIR%\yajl.dll" "%X86%"
5757
copy "%OUTPUT_DIR%\fuzzy.dll" "%X86%"

iis/dependencies/build_pcre.bat

Lines changed: 11 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -7,29 +7,22 @@ cd "%WORK_DIR%"
77
7z.exe x "%SOURCE_DIR%\%PCRE%"
88
set PCRE_DIR=%PCRE:~0,-4%
99

10-
move "%PCRE_DIR%" "pcre"
11-
12-
@if "%PCRE_DIR%" == "pcre-8.40" (
13-
Echo. && Echo "PCRE 8.40 found... trying to patch it to compile cleanly"
14-
::cscript /B /Nologo ../patch-pcre-8.40.vbs
15-
cd "pcre"
16-
cat CMakeLists.txt | sed "s/PCRE_STATIC_RUNTIME OFF CACHE BOOL/PCRE_STATIC_RUNTIME/g" > CMakeLists.txt.ops
17-
move CMakeLists.txt CMakeLists.txt.old
18-
move CMakeLists.txt.ops CMakeLists.txt
19-
cd ..
20-
)
21-
22-
cd "pcre"
23-
CMAKE -G "NMake Makefiles" -DCMAKE_BUILD_TYPE=RelWithDebInfo -DBUILD_SHARED_LIBS=True
10+
move "%PCRE_DIR%" "pcre2"
11+
12+
cd "pcre2"
13+
@echo Building PCRE2 with JIT support...
14+
CMAKE -G "NMake Makefiles" -DCMAKE_BUILD_TYPE=RelWithDebInfo -DBUILD_SHARED_LIBS=True -DPCRE2_BUILD_PCRE2_8=ON -DPCRE2_SUPPORT_JIT=ON
2415
@if NOT (%ERRORLEVEL%) == (0) goto build_failed
2516
NMAKE
2617
@if NOT (%ERRORLEVEL%) == (0) goto build_failed
2718
cd "%WORK%"
2819

29-
copy /y "%WORK_DIR%\pcre\pcre.dll" "%OUTPUT_DIR%"
30-
copy /y "%WORK_DIR%\pcre\pcre.pdb" "%OUTPUT_DIR%"
31-
copy /y "%WORK_DIR%\pcre\pcre.lib" "%OUTPUT_DIR%"
32-
copy /y "%WORK_DIR%\pcre\pcre.h.generic" "%WORK_DIR%\pcre\pcre.h"
20+
copy /y "%WORK_DIR%\pcre2\pcre2-8.dll" "%OUTPUT_DIR%"
21+
copy /y "%WORK_DIR%\pcre2\pcre2-8.pdb" "%OUTPUT_DIR%"
22+
copy /y "%WORK_DIR%\pcre2\pcre2-8.lib" "%OUTPUT_DIR%"
23+
@if not exist "%WORK_DIR%\pcre2\include" mkdir "%WORK_DIR%\pcre2\include"
24+
xcopy /y "%WORK_DIR%\pcre2\src\pcre2*.h" "%WORK_DIR%\pcre2\include\" >nul 2>&1
25+
copy /y "%WORK_DIR%\pcre2\pcre2.h" "%WORK_DIR%\pcre2\include\" >nul 2>&1
3326
echo "a"
3427
@exit /B 0
3528

iis/download_files.bat

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,29 @@
1-
@set CMAKE=cmake-3.12.4-win32-x86.zip
2-
@set PCRE=pcre-8.41.zip
3-
@set ZLIB=zlib-1.2.11.tar.gz
4-
@set LIBXML2=libxml2-2.9.8.tar.gz
5-
@set LUA=lua-5.3.5.tar.gz
6-
@set CURL=curl-7.62.0.zip
7-
@set APACHE_SRC=httpd-2.4.37.tar.gz
8-
@set APACHE_BIN32=httpd-2.4.37-win32-VC11.zip
9-
@set APACHE_BIN64=httpd-2.4.37-win64-VC11.zip
1+
@set CMAKE=cmake-4.2.3-windows-x86_64.zip
2+
@set PCRE=pcre2-10.47.zip
3+
@set ZLIB=zlib-1.3.1.tar.gz
4+
@set LIBXML2=libxml2-2.15.1.tar.gz
5+
@set LUA=lua-5.4.8.tar.gz
6+
@set CURL=curl-8.18.0.zip
7+
@set APACHE_SRC=httpd-2.4.66.tar.gz
8+
@set APACHE_BIN32=httpd-2.4.66-win32-VS16.zip
9+
@set APACHE_BIN64=httpd-2.4.66-win64-VS16.zip
1010
@set YAJL=yajl-2.1.0.zip
11-
@set SSDEEP=ssdeep-2.13.tar.gz
12-
@set SSDEEP_BIN=ssdeep-2.13.zip
11+
@set SSDEEP=ssdeep-2.14.1.tar.gz
12+
@set SSDEEP_BIN=ssdeep-2.14.1.zip
1313

1414
:: BITSAdmin refuses to download YAJL from GitHub URL
1515
:: @set YAJL_URL=https://github.com/lloyd/yajl/archive/%YAJL:~-9%
1616
@set YAJL_URL=http://http.debian.net/debian/pool/main/y/yajl/yajl_2.1.0.orig.tar.gz
1717

18-
@set CMAKE_URL=https://cmake.org/files/v3.12/%CMAKE%
19-
@set PCRE_URL=https://ftp.pcre.org/pub/pcre/%PCRE%
20-
@set ZLIB_URL=https://zlib.net/%ZLIB%
21-
@set LIBXML2_URL=http://xmlsoft.org/sources/%LIBXML2%
18+
@set CMAKE_URL=https://github.com/Kitware/CMake/releases/download/v4.2.3/%CMAKE%
19+
@set PCRE_URL=https://github.com/PCRE2Project/pcre2/releases/download/pcre2-10.47/%PCRE%
20+
@set ZLIB_URL=https://github.com/madler/zlib/releases/download/v1.3.1/%ZLIB%
21+
@set LIBXML2_URL=https://download.gnome.org/sources/libxml2/2.15/%LIBXML2%
2222
@set LUA_URL=https://www.lua.org/ftp/%LUA%
23-
@set CURL_URL=http://curl.askapache.com/download/%CURL%
23+
@set CURL_URL=https://curl.se/download/%CURL%
2424
@set APACHE_SRC_URL=https://www.apache.org/dist/httpd/%APACHE_SRC%
25-
@set APACHE_BIN_URL=https://home.apache.org/~steffenal/VC11/binaries
26-
@set SSDEEP_URL=https://downloads.sourceforge.net/project/ssdeep/ssdeep-2.13
25+
@set APACHE_BIN_URL=https://www.apachelounge.com/download/VS16/binaries
26+
@set SSDEEP_URL=https://downloads.sourceforge.net/project/ssdeep/ssdeep-2.14.1
2727

2828
bitsadmin.exe /transfer "Downloading dependencies..." %CMAKE_URL% %SOURCE_DIR%\%CMAKE% %PCRE_URL% %SOURCE_DIR%\%PCRE% %ZLIB_URL% %SOURCE_DIR%\%ZLIB% %LIBXML2_URL% %SOURCE_DIR%\%LIBXML2% %LUA_URL% %SOURCE_DIR%\%LUA% %CURL_URL% %SOURCE_DIR%\%CURL% %APACHE_SRC_URL% %SOURCE_DIR%\%APACHE_SRC% %APACHE_BIN_URL%/%APACHE_BIN32% %SOURCE_DIR%\%APACHE_BIN32% %APACHE_BIN_URL%/%APACHE_BIN64% %SOURCE_DIR%\%APACHE_BIN64% %YAJL_URL% %SOURCE_DIR%\%YAJL% %SSDEEP_URL%/%SSDEEP% %SOURCE_DIR%\%SSDEEP% %SSDEEP_URL%/%SSDEEP_BIN% %SOURCE_DIR%\%SSDEEP_BIN%
2929

0 commit comments

Comments
 (0)