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 / FILEBEAT-101.md
Last active January 24, 2024 14:06
[FILEBEAT 101] Filebeat 101 #filebeat #linux #101
@vpnwall-services
vpnwall-services / bacula-compile.sh
Last active January 23, 2024 22:55
[Install Bacula From Sources] Compile and install Bacula tools from sources #backup #bacula #linux #debian #compile #install #latest
#!/bin/bash
#VERSION="9.4.2"
#apt-get install -y build-essential libreadline6-dev zlib1g-dev liblzo2-dev mt-st mtx postfix libacl1-dev libssl-dev libmysql++-dev mysql-server
#mkdir /tmp/bacula
#cd /tmp/bacula
#wget https://sourceforge.net/projects/bacula/files/bacula/$VERSION/bacula-$VERSION.tar.gz
#cd /usr/src/bacula*
#./configure --with-readline=/usr/include/readline --disable-conio --bindir=/usr/bin --sbindir=/usr/sbin --with-scriptdir=/etc/bacula/scripts --with-#working-dir=/var/lib/bacula --with-logdir=/var/log --enable-smartalloc --with-mysql --with-archivedir=/mnt/backup --with-job-email=your@email.com.br --#with-hostname=ip_or_qualified_name
#make -j8 && make install && make install-autostart
#chmod o+rx /etc/bacula/scripts/*
@vpnwall-services
vpnwall-services / template.service
Created April 20, 2018 03:46
[Systemd Service Template] Skeleton for a new Systemd service #linux #systemd # service
#Put me in /lib/systemd/system/
[Unit]
Description=My Miscellaneous Service
After=network.target
[Service]
Type=simple
User=nanodano
WorkingDirectory=/home/nanodano
ExecStart=/home/nanodano/my_daemon --option=123
@vpnwall-services
vpnwall-services / curl-hack-.md
Created September 2, 2022 16:15
[CURL HACK] Curl Hack #bash #curl #hack

Hacking With cURL

A list of examples and references of hacking with Bash and the Curl command.

What the heck is cURL?

cURL is short for "Client URL" and is a computer software project providing a library (libcurl) and command-line tool (curl) first released in 1997. It is a free client-side URL transfer library that supports the following protocols: Cookies, DICT, FTP, FTPS, Gopher, HTTP/1, HTTP/2, HTTP POST, HTTP PUT, HTTP proxy tunneling, HTTPS, IMAP, Kerberos, LDAP, POP3, RTSP, SCP, and SMTP Although attack proxies like BurpSuitePro are very handy tools, cURL allows you to get a bit closer to the protocol level, leverage bash scripting and provides a bit more flexibility when you are working on a complex vulnerability.

cURL GET parameters

HTTP GET variables can be set by adding them to the URL.

@vpnwall-services
vpnwall-services / ngrok-installer.sh
Last active December 1, 2023 20:56
[Ngrok Installer] Script to install ngrok #linux #script #installer #ngrok
#!/bin/bash
apt-get install unzip -y
wget https://bin.equinox.io/c/4VmDzA7iaHb/ngrok-stable-linux-amd64.zip
unzip ngrok-stable-linux-amd64.zip
mkdir /opt/ngrok
mv ngrok /opt/ngrok/ngrok
echo -e "You should now login on https://dashboard.ngrok.com/user/signup"
echo -e "Once done, you should copy the command inside the"
echo -e "Connect your account frame"
echo -e "It look like this"
@vpnwall-services
vpnwall-services / kali-repository
Last active November 26, 2023 19:04
[Kali-Repo] Adds Kali Repository on Linux #linux #repo
#!/bin/bash
apt-get update ; apt-get install -y dirmngr
grep -q -F 'deb http://http.kali.org/kali kali-rolling main contrib non-free' /etc/apt/sources.list || echo 'deb http://http.kali.org/kali kali-rolling main contrib non-free' >> /etc/apt/sources.list
apt-key adv --keyserver pgp.mit.edu --recv-keys ED444FF07D8D0BF6
apt-get update
apt-get install -y -t kali-rolling
@vpnwall-services
vpnwall-services / GREP101.md
Last active November 22, 2023 13:00
[GREP 101] Grep 101 #grep #101 #find #word #line #after #before #recursive #between #tags #script

GREP 101

  • Grep code recursively between <script></script> tags grep -oRP '<script[^>]*>(.*?)</script>'

  • Grep minimum six numbers grep -E '[0-9]{6}' file.txt

  • Grep files that does not containt string

@vpnwall-services
vpnwall-services / gen-rand-pass.sh
Last active November 15, 2023 08:22
[Generate random password] Generate a password randomly #linux # generate #password
#!/bin/bash
# Echo three passwords
cat /dev/urandom| tr -dc 'a-zA-Z0-9-_!@#$%+'|fold -w 28| head -n 3
# Echo one password and put it in clipboard
# Requirements: apt-get install -y xclip
cat /dev/urandom| tr -dc 'a-zA-Z0-9-_!@#$%+'|fold -w 28| head -n 1|xclip"
openssl rand 60 | openssl base64 -A
@vpnwall-services
vpnwall-services / REGEX101.md
Last active November 12, 2023 02:54
[REGEX 101] Regex 101 #regex #101

REGEX 101

  • Trim spaces ^[\s]*(.*?)[\s]*$

  • HTML tag <([a-z]+)([^<]+)*(?:>(.*)<\/\1>|\s+\/>)

@vpnwall-services
vpnwall-services / TERRAFORM-PROXMOX-101.md
Last active November 6, 2023 22:17
[TERRAFORM x PROXMOX 101] Terraform x Proxmox 101 #debian #bash #proxmox #terraform

https://blog.levassb.ovh/post/terraform/

  • Create apiuser on proxmox Datacenter => Storage => Create user => terraform apitokens => root @pam / new_token / privesc: no

  • Snippets folder Storage => snippets / /storage/snippets /Snippets

  • Add permissions to apiuser Permissions =>

/ root@pam!new_token PVEVMAdmin