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 / FILESHARE-101.md
Created February 20, 2024 09:27
[FILESHARE 101] Fileshare 101 #linux #debian #nfs #rpcbind #shareing #file #share

FILESHARE 101

  • Install packages
apt install nfs-common rpcbind nfs-kernel-server -y
  • Add share in /etc/exports
@vpnwall-services
vpnwall-services / TELEGRAM-BOT-101.md
Last active April 21, 2024 21:28
[Telegram Bot 101] Telegram Bot 101 #bash #telegram #bot #101
  • Install telegram on desktop
  • Message @botfather and then /newbot (give name, and other things)
  • Create new channel and add the bot
  • Get channel ID
curl -L https://api.telegram.org/bot$TELEGRAM_BOT_TOKEN/getUpdates
  • Add to .bashrc
@vpnwall-services
vpnwall-services / FILEBEAT-101.md
Last active January 24, 2024 14:06
[FILEBEAT 101] Filebeat 101 #filebeat #linux #101
@vpnwall-services
vpnwall-services / LOGSTASH-101.md
Last active April 21, 2024 21:29
[LOGSTASH 101] Logstash 101 #logstash #linux #debian

LOGSTASH 101

  • Debug pipeline:
input {
  pipeline {
    address => apache2
 }
@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 / 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 / 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 / Python-Gimp-101.md
Last active April 21, 2024 21:29
[Python Gimp 101] Python Gimp 101 #python #gimp #automation #pythonfu #101

Python Gimp 101

  • Run a python script from Gimp Windows Python-Fu console
# get pwd
os.getcwd()
# run script

cat << EOF > myscript.py
import gimpfu
@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

@vpnwall-services
vpnwall-services / CSP-REPORT.md
Last active August 10, 2023 12:36
[CSP-report PHP] CSP Report PHP #php #csp #report
  • Copy at root of web project
# /var/www/site/report.php
<?php
setlocale(LC_ALL, 'en_US.UTF8');
date_default_timezone_set('Europe/Paris');

$data = file_get_contents('php://input');

if ($data) {