Skip to content

Instantly share code, notes, and snippets.

@vincent1890
vincent1890 / dockerizeWireguardOverWebsocket.md
Created May 30, 2024 18:08 — forked from jvdi/dockerizeWireguardOverWebsocket.md
Set Up a dockerize Wireguard VPN Server over WebSocket Tunneling

This tutorial good for Linux or Unix system at the end need to run bash script for connect
(Also it's have some technic for use in windows - Explained at client install section.)

VPS => virtual private server as wiregurd vpn server

Requirements

  • Assuming the firewall is off (Not Secure - it's just for test so in production: config firewall)
  • VPS have docker and docker-compose (for install instrucrion : docker site full explained)
  • In VPS enable net.ipv4.ip_forward=1 at /etc/sysctl.conf (or /etc/sysctl.d/99-sysctl.conf) and reboot your system
  • Have access to root user in VPS
#define scan account
$domain = "DOMAIN"
$name = "NAME"
$scandef = "DOMAIN\NAME"
#get username
$getusername = (Get-WmiObject -Class Win32_ComputerSystem).Username
function scanacl() {
#set full access for scan
$access=New-Object System.Security.AccessControl.FileSystemAccessRule ("$scandef","FullControl","ContainerInherit,ObjectInherit","None","Allow")
$ACL = Get-Acl -Path C:\Scan
##### edit #############
$computer = "localhost"
$printerName = "HP Color LaserJet CP2020 Series PCL 6"
$portName = "\\HOSTNAME\HP Color LaserJet CP2020 Series PCL6"
$driverPath = "\\HOSTNAME\Drivers\hp2025"
$inf_x86 = "hppcp610.inf"
$inf_x64 = "hppdp610.inf"
#########################
#platform
switch ($ver = (Get-WmiObject -Class win32_operatingsystem).OSArchitecture) {
@work-on-code
work-on-code / dockerizeWireguardOverWebsocket.md
Created February 12, 2024 09:32 — forked from jvdi/dockerizeWireguardOverWebsocket.md
Set Up a dockerize Wireguard VPN Server over WebSocket Tunneling

This tutorial good for Linux or Unix system at the end need to run bash script for connect
(Also it's have some technic for use in windows - Explained at client install section.)

VPS => virtual private server as wiregurd vpn server

Requirements

  • Assuming the firewall is off (Not Secure - it's just for test so in production: config firewall)
  • VPS have docker and docker-compose (for install instrucrion : docker site full explained)
  • In VPS enable net.ipv4.ip_forward=1 at /etc/sysctl.conf (or /etc/sysctl.d/99-sysctl.conf) and reboot your system
  • Have access to root user in VPS
@junecastillote
junecastillote / Get-InstalledApps.ps1
Created September 18, 2023 15:00
PowerShell script to get installed apps using local or remote registry
## ORIGINALLY FROM - https://theitbros.com/how-to-get-list-of-installed-programs-in-windows-10
# Get-InstalledApps.ps1
[CmdletBinding()]
param (
[parameter()]
[switch]$Credential,
[parameter(ValueFromPipeline = $true)]
[String[]]$ComputerName = $env:COMPUTERNAME
)
@jvdi
jvdi / dockerizeWireguardOverWebsocket.md
Last active June 25, 2024 06:34
Set Up a dockerize Wireguard VPN Server over WebSocket Tunneling

This tutorial good for Linux or Unix system at the end need to run bash script for connect
(Also it's have some technic for use in windows - Explained at client install section.)

VPS => virtual private server as wiregurd vpn server

Requirements

  • Assuming the firewall is off (Not Secure - it's just for test so in production: config firewall)
  • VPS have docker and docker-compose (for install instrucrion : docker site full explained)
  • In VPS enable net.ipv4.ip_forward=1 at /etc/sysctl.conf (or /etc/sysctl.d/99-sysctl.conf) and reboot your system
  • Have access to root user in VPS
@blotus
blotus / log4j_exploitation_attempts_crowdsec.md
Last active December 29, 2023 12:24
IPs exploiting the log4j2 CVE-2021-44228 detected by the crowdsec community

This list is no longer updated, thus the information is no longer reliable.

You can see the latest version (from october 2022) here

@vincent1890
vincent1890 / cas_logout.php
Created July 6, 2021 21:41 — forked from wixaw/cas_logout.php
Cleaning remove delete SSO CAS session apereo/mod_auth_cas PHP
<?php
// Cleaning CAS session apereo/mod_auth_cas (https://github.com/apereo/mod_auth_cas)
// Sarting session
session_start();
if ((!isset($_SERVER["PHP_AUTH_USER"])) || (!empty($_SERVER["PHP_AUTH_USER"]))) {
// Get username
$login = $_SERVER["PHP_AUTH_USER"];
// Select your Folder ( set by CASCookiePath /var/cache/apache2/mod_auth_cas/ )
@mskian
mskian / gotify.sh
Created January 22, 2020 11:45
Gotify - A Simple Shell Script to Send Push Notification to the Gotify Server
#!/bin/bash
# -----------------------------------------------------------------------------
# Info:
# author: Santhosh veer
# website: https://santhoshveer.com
# file: gotify.sh
# created: 22.01.2020
# revision: 22.02.2020
# version: 0.1
@daminebenq
daminebenq / installer.sh
Created December 30, 2019 17:05
Teamspeak Server install script
#!/bin/bash
# Name: install_ts3-server.sh
# Version: 0.0
# Created By: BJARNE L.
# ==> VARIABLES <==
# user to run the ts3server and where to install it
TS3_USER="teamspeak3"
TS3_DIR="/opt/ts3server"
TS3_VER="3.10.0"