Last active
March 2, 2023 01:39
Revisions
-
ubdussamad revised this gist
Mar 2, 2023 . 1 changed file with 2 additions and 2 deletions.There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -8,13 +8,13 @@ echo -e " \e[32mAPR" echo echo "Running apr with: c-compiler:$CC $CFLAGS c++-compiler:$CXX $CXXFLAGS" sleep 2 cd apr-1.7.2 && CC="$CC" CXX="$CXX" ./configure --prefix="$PREFIX" && apr=$(pwd) && make clean && make -j35 && make install && cd .. echo -e " \e[33mAPRUTIL" echo echo "Running aprutil with: c-compiler:$CC $CFLAGS c++-compiler:$CXX $CXXFLAGS" sleep 2 cd apr-util-1.6.3 && CC="$CC" CXX="$CXX" ./configure --prefix="$PREFIX" --with-apr=$apr && aprutil=$(pwd) && make clean && make -j35 && make install && cd .. echo -e " \e[34mPCRE" echo -
ubdussamad revised this gist
Jan 10, 2023 . 1 changed file with 2 additions and 2 deletions.There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,8 +1,8 @@ #!/bin/bash PREFIX="${PREFIX:-/usr/local/apache_clean}" CC="afl-clang-fast" CXX="afl-clang-fast++" echo -e " \e[32mAPR" echo -
ubdussamad revised this gist
Dec 24, 2022 . 1 changed file with 2 additions and 2 deletions.There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,8 +1,8 @@ #!/bin/bash PREFIX="${PREFIX:-/usr/local/apache_clean}" CC="afl-clang" CXX="afl-clang++" echo -e " \e[32mAPR" echo -
ubdussamad revised this gist
Dec 24, 2022 . 1 changed file with 8 additions and 6 deletions.There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,30 +1,32 @@ #!/bin/bash PREFIX="${PREFIX:-/usr/local/apache_clean}" CC = "afl-clang" CXX = "afl-clang++" echo -e " \e[32mAPR" echo echo "Running apr with: c-compiler:$CC $CFLAGS c++-compiler:$CXX $CXXFLAGS" sleep 2 cd apr-1.7.0 && CC="$CC" CXX="$CXX" ./configure --prefix="$PREFIX" && apr=$(pwd) && make clean && make -j35 && make install && cd .. echo -e " \e[33mAPRUTIL" echo echo "Running aprutil with: c-compiler:$CC $CFLAGS c++-compiler:$CXX $CXXFLAGS" sleep 2 cd apr-util-1.6.1 && CC="$CC" CXX="$CXX" ./configure --prefix="$PREFIX" --with-apr=$apr && aprutil=$(pwd) && make clean && make -j35 && make install && cd .. echo -e " \e[34mPCRE" echo echo "Running pcre with: c-compiler:$CC $CFLAGS c++-compiler:$CXX $CXXFLAGS" sleep 2 cd pcre-8.45 && CC="$CC" CXX="$CXX" ./configure --disable-cpp --prefix="$PREFIX" && pcre=$(pwd) && make clean && make -j35 && make install && make install && cd .. echo -e " \e[35mNGHTTP" echo echo "Running nghttp with: c-compiler:$CC $CFLAGS c++-compiler:$CXX $CXXFLAGS" sleep 2 cd nghttp2-1.51.0 && CC="$CC" CXX="$CXX" ./configure --prefix="$PREFIX" && nghttp=$(pwd) && make clean && make -j35 && make install && cd .. if [[ -z "$apr" || -z "$aprutil" || -z "$nghttp" || -z "$pcre" ]]; then echo "\e[0m[-] Dependencies compilation failed." @@ -42,5 +44,5 @@ echo $nghttp echo $pcre sleep 4 cd httpd-2.4.54 LIBS="-L$apr/.libs -L$aprutil/.libs -L$pcre/.libs -L$nghttp/lib/" CFLAGS=" $CFLAGS -I$nghttp/lib/includes -march=skylake -g -ggdb -fno-builtin -fno-inline" LDFLAGS="$CFLAGS" CC="$CC" CXX="$CXX" ./configure --enable-unixd --disable-pie --enable-mods-static=few --prefix="$PREFIX" --with-mpm=event --enable-http2 --with-apr=$apr --with-apr-util=$aprutil --with-nghttp2=$nghttp --enable-nghttp2-staticlib-deps --with-pcre=$pcre/pcre-config && make clean && make -j35 && make install -
ubdussamad created this gist
Dec 24, 2022 .There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,46 @@ #!/bin/bash PREFIX="${PREFIX:-/usr/local/apache_clean}" echo -e " \e[32mAPR" echo echo "Running apr with: c-compiler:$CC $CFLAGS c++-compiler:$CXX $CXXFLAGS" sleep 2 cd apr-1.7.0* && ./configure --prefix="$PREFIX" && apr=$(pwd) && make clean && make -j6 && sudo make install && cd .. echo -e " \e[33mAPRUTIL" echo echo "Running aprutil with: c-compiler:$CC $CFLAGS c++-compiler:$CXX $CXXFLAGS" sleep 2 cd apr-util-* && ./configure --prefix="$PREFIX" --with-apr=$apr && aprutil=$(pwd) && make clean && make -j6 && sudo make install && cd .. echo -e " \e[34mPCRE" echo echo "Running pcre with: c-compiler:$CC $CFLAGS c++-compiler:$CXX $CXXFLAGS" sleep 2 cd pcre-8* && ./configure --disable-cpp --prefix="$PREFIX" && pcre=$(pwd) && make clean && make -j6 && sudo make install && sudo make install && cd .. echo -e " \e[35mNGHTTP" echo echo "Running nghttp with: c-compiler:$CC $CFLAGS c++-compiler:$CXX $CXXFLAGS" sleep 2 cd nghttp2* && ./configure --prefix="$PREFIX" && nghttp=$(pwd) && make clean && make -j6 && sudo make install && cd .. if [[ -z "$apr" || -z "$aprutil" || -z "$nghttp" || -z "$pcre" ]]; then echo "\e[0m[-] Dependencies compilation failed." echo APR: $apr echo APR-Util: $aprutil echo nghttp: $nghttp echo PCRE8: $pcre return 1; fi echo -e "\e[0m[+] Using the following paths" echo $apr echo $aprutil echo $nghttp echo $pcre sleep 4 cd httpd-2* LIBS="-L$apr/.libs -L$aprutil/.libs -L$pcre/.libs -L$nghttp/lib/" CFLAGS=" $CFLAGS -I$nghttp/lib/includes -march=skylake -g -ggdb -fno-builtin -fno-inline" LDFLAGS="$CFLAGS" ./configure --enable-unixd --disable-pie --enable-mods-static=few --prefix="$PREFIX" --with-mpm=event --enable-http2 --with-apr=$apr --with-apr-util=$aprutil --with-nghttp2=$nghttp --enable-nghttp2-staticlib-deps --with-pcre=$pcre/pcre-config && make clean && make -j6