Skip to content

Instantly share code, notes, and snippets.

View vpnwall-services's full-sized avatar

Vpnwall Services vpnwall-services

View GitHub Profile
@vpnwall-services
vpnwall-services / NMAP-101.md
Created June 19, 2020 18:33
[NMAP 101] NMAP 101 #nmap #101

NMAP 101

  • Nmap through TOR proxychains nmap -sT -PN -n -sV -p 80,443,3306 xxx.xxx.xxx.xxx
@vpnwall-services
vpnwall-services / letencrypt101.md
Last active October 17, 2023 12:54
[LetsEncrypt 101] LetsEncrypt 101 #letsencrypt #bash #101 #certbot #haproxy

LETSENCRYPT / CERTBOT 101

  • Change notification email (deprecated) certbot register --update-registration -m user@example.com

  • Change notification email certbot update_account -m user@example.com

  • List existing certbot certificates

@vpnwall-services
vpnwall-services / INFLUXDB_101.md
Created October 13, 2023 08:27
[INFLUXDB 101] InfluxDB 101 #influxdb #101 #linux #metrics #tsdb

INFLUXDB 101

  • Delete data influx delete --bucket data --start '1970-01-01T00:00:00Z' --stop '2023-10-01T00:00:00Z'
@vpnwall-services
vpnwall-services / repurgator.sh
Last active October 5, 2023 13:18
[SED 101] SED 101 #bash #linux #sed #101
#!/bin/bash
# Convert with dos2unix
apt-get install -y dos2unix
find /home/sites/ -maxdepth 3 -name '.htaccess' -exec dos2unix {} ';'
# List all htaccess
find /home/sites/ -maxdepth 3 -name '.htaccess' -exec echo {} > /tmp/mylist.txt ';'
# Loop thought all htaccess
@vpnwall-services
vpnwall-services / mailjet-tester-v3.sh
Last active October 4, 2023 14:25
[Mailjet Tester] Mailjet tester with curl #bash #curl #linux #mailjet #mail
APIKEY=""
APISECRET=""
SENDER=""
RECIPIENT=""
curl -s \
-X POST \
--user "$APIKEY:$APISECRET" \
https://api.mailjet.com/v3.1/send \
-H 'Content-Type: application/json' \
-d '{
@vpnwall-services
vpnwall-services / YQ-101.md
Last active October 4, 2023 09:28
[YQ 101] YQ 101 #yq #yaml #yml #parse #json #ansible #python #mikefarah #v4

YQ 101

  • select value in array cat /tmp/mydict.yml | yq eval '.array[].key'

  • Select all values where key equal in nested dict cat variables_ci.yml|yq '.this.that.oh[].my'

  • select object when key is equal to value

@vpnwall-services
vpnwall-services / SWAP-101.md
Created September 12, 2023 08:24
[SWAP 101] Swap 101 #linux #swap #101

SWAP 101

  • Allocate swap sudo fallocate -l 1G /swapfile

  • Alternate allocation sudo dd if=/dev/zero of=/swapfile bs=1024 count=1048576

  • Perms

@vpnwall-services
vpnwall-services / Centreon-Remote-Poller.md
Created September 21, 2023 16:03
[Centreon Remote Poller] Centreon Remote Poller #centreon #remote #poller #linux

docs.centreon.com À partir des paquets | Centreon Documentation 6-7 minutes

Centreon fournit des paquets RPM et DEB pour ses produits au travers de la solution Centreon Open Sources disponible gratuitement sur notre dépôt.

Les paquets peuvent être installés sur Alma/RHEL/Oracle Linux 8 et 9 ou Debian 11.

L'ensemble de la procédure d'installation doit être faite en tant qu'utilisateur privilégié.

@vpnwall-services
vpnwall-services / GOACCESS-101.md
Last active September 11, 2023 17:02
[GOACCESS 101] Goaccess 101 #bash #debian #goaccess #apache2 #web #stats

GOACCESS 101

  • Install
wget -O - https://deb.goaccess.io/gnugpg.key | gpg --dearmor | sudo tee /usr/share/keyrings/goaccess.gpg >/dev/null
echo "deb [signed-by=/usr/share/keyrings/goaccess.gpg arch=$(dpkg --print-architecture)] https://deb.goaccess.io/ $(lsb_release -cs) main" | sudo tee /etc/apt/sources.list.d/goaccess.list
sudo apt-get update
sudo apt-get install goaccess
@vpnwall-services
vpnwall-services / NUCLEI-101.md
Last active September 1, 2023 10:15
[NUCLEI 101] Nuclei 101 #bash #linux #go #nuclei #101

NUCLEI 101

  • Keep installing templates (bug) /root/go/bin/nuclei -ut -ud nuclei-templates -v

  • List templates /root/go/bin/nuclei -tl

  • Run on a website