Skip to content

Instantly share code, notes, and snippets.

@Tardis07
Created March 31, 2020 16:51
Show Gist options
  • Save Tardis07/6f82ed70b12208ff70c6e99054c056c2 to your computer and use it in GitHub Desktop.
Save Tardis07/6f82ed70b12208ff70c6e99054c056c2 to your computer and use it in GitHub Desktop.

epel for centos 6

https://dl.fedoraproject.org/pub/epel/epel-release-latest-6.noarch.rpm

mirror of epel 6

http://mirrors.zju.edu.cn/epel/epel-release-latest-6.noarch.rpm

oneinstack

http://mirrors.linuxeye.com/oneinstack-full.tar.gz

luajit 2.1

http://luajit.org/download/LuaJIT-2.1.0-beta1.tar.gz

nginx – lua waf req proxy_cache rtmp

https://github.com/simpl/ngx_devel_kit https://github.com/chaoslawful/lua-nginx-module https://github.com/loveshell/ngx_lua_waf —> /usr/local/nginx/conf/ https://github.com/zls0424/ngx_req_status https://github.com/FRiCKLE/ngx_cache_purge https://github.com/arut/nginx-rtmp-module

configure

nginx -V (remove the old dir) export LUAJIT_LIB=/usr/local/lib export LUAJIT_INC=/usr/local/include/luajit-2.1 patch -p1 < path/write_filter-VERSION.patch –prefix=/usr/local/nginx –user=www –group=www –with-http_stub_status_module –with-http_v2_module –with-http_ssl_module –with-ipv6 –with-http_gzip_static _module –with-http_realip_module –with-http_flv_module –with-ld-opt=”-ljemall oc” –with-ld-opt=”-Wl,-rpath,/usr/local/lib” –add-module=../ngx_devel_kit/ –a dd-module=../ngx_req_status/ –add-module=../lua-nginx-module/ —add-module=../nginx-rtmp-module

conf – waf – http

conf – req – http

req_status_zone server_name $server_name 256k; req_status_zone server_addr $server_addr 256k; req_status_zone server_url $server_name$uri 256k; req_status server_name server_addr server_url;

conf – req – server

location /req-nginx { req_status_show on; }

vnstat with php

http://humdi.net/vnstat/vnstat-1.14.tar.gz | yum /etc/vnstat.conf /etc/cron.d/vnstat http://www.sqweek.com/sqweek/files/vnstat_php_frontend-1.5.1.tar.gz /usr/local/php/etc/php.ini —-> popen

nmap url

https://nmap.org/dist/nmap-7.01.tar.bz2

nmap – web

http://www.komar.org/pres/nmap-web/nmap-web-1.71.tar

sqlmap git

https://github.com/sqlmapproject/sqlmap

sqlmap – web

https://github.com/Hood3dRob1n/SQLMAP-Web-GUI /usr/local/php/etc/php.ini —-> shell_exec

nexusphp – pt

http://downloads.sourceforge.net/project/nexusphp/nexusphp.v1.5.beta5.20120707.z ip

ips4 – forum

######################### new waf for nginx #############

modsecurity

https://www.modsecurity.org/tarball/2.9.0/modsecurity-2.9.0.tar.gz

install guide

https://www.trustwave.com/Resources/SpiderLabs-Blog/Announcing-the-availability- of-ModSecurity-extension-for-Nginx/ https://github.com/SpiderLabs/ModSecurity/wiki/Reference-Manual#wiki-Installatio n_for_NGINX http://www.52os.net/articles/nginx-use-modsecurity-module-as-waf.html http://my.oschina.net/monkeyzhu/blog/393505

install modsecurity for nginx

./configure –enable-standalone-module

configure nginx for modsecurity

./configure –prefix=/usr/local/nginx –user=www –group=www –with-http_stub_st atus_module –with-http_v2_module –with-http_ssl_module –with-ipv6 –with-http _gzip_static_module –with-http_realip_module –with-http_flv_module –with-ld-o pt=”-ljemalloc” –add-module=../ngx_req_status/ –add-module=../modsecurity-2.9. 0/nginx/modsecurity/

waf rules

https://github.com/SpiderLabs/owasp-modsecurity-crs ############################################

h5ai – git

https://github.com/lrsjng/h5ai

xss – nginx

https://hack0nair.me/2014-09-20-how-to-setup-a-xss-platform/

Transmission

http://download.transmissionbt.com/files/transmission-2.84.tar.xz

configure

export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment