Category Archives: miscellaneous

Wireguard. Installation

Hi,

these are the steps to install and configure wireguard on a raspberry pi as server.

michael@debdev ~ # sudo apt install wireguard

Generate the server private key

michael@debdev ~ # wg genkey
cNJnQwITOsONCZLpp1G6daBSvgvUBd3gzqQXLMuijmc=

And generate the clients private key

michael@debdev ~ # wg genkey

Create the servers config file

michael@debdev ~ # vi /etc/wireguard/wg0.conf
[Interface]
Address =  10.10.2.1/24
ListenPort = 58888
PrivateKey = cF6Yl9k661OSZFzgBlN7OPEotc9qAS0+GzB14wh16UU=

# Peer 1: WorkingLaptop
[Peer]
PublicKey = WtEJQKNTlX4HfIihoUW630rseGG+3KM6lC1Xv7ewrUQ=
AllowedIPs = 10.10.2.10/32

Enable config wg0

michael@debdev ~ # sudo systemctl enable wg-quick@wg0
michael@debdev ~ # sudo systemctl start wg-quick@wg0

Create a client config

[Interface]
PrivateKey = EDk0yjxBltW0kyJfCzysBqRXWB2X+8mmvN1VylOSZ1g=
Address = 10.10.2.10/24
DNS = 10.10.2.1

[Peer]
PublicKey = AsQUJtZLgHdgKBw0i6X1CiQZ/j7yF/vJl02OVZ4Ai1k=
Endpoint = myyour.vpnserver.org:58888
# Route all traffic through VPN
# AllowedIPs = 0.0.0.0/0
# Route only specific subnets through VPN. Pushing routes from server not possible
AllowedIPs = 10.11.1.0/24, 172.16.31.0/24
michael@debdev ~ # 

Windows Hints

"C:\Program Files\WireGuard\wireguard.exe" /installtunnelservice  %~dp0home.conf

sc stop WireGuardTunnel$home
sc start WireGuardTunnel$home

sc config  WireGuardTunnel$home start=disabled

"C:\Program Files\WireGuard\wg.exe" show

Linux

Unbound: Build (Cross compile on Fedora) it for Windows

Hi,

here are the steps to cross compile the Windows executables for unbound from source on (Fedora 42) linux.
Continue reading Unbound: Build (Cross compile on Fedora) it for Windows →

MagicMirror: Installing on windows

Hi,

short post about installing MagicMirror on Windows.

Continue reading MagicMirror: Installing on windows →

Wireshark/tcpdump: Write trace to a ringbuffer file

Hi,

sometimes it is necessary to only dump the network traffic before an event happend. For this cases wirkshark has the command line option for a ringbuffer.

Continue reading Wireshark/tcpdump: Write trace to a ringbuffer file →

Tools & Sites: Tools & Sites overview

This is a list of useful tools and links

Processes

Process Hacker -> Can show Windows firewall matches
Sysinternals Process Monitor
Sysinternals Process Explorer

Network
Sniffing

Ettercap
Wireshark
netsh – netsh trace
Microsoft Message Analyzer
wifite – Recover WiFi credentials
Nzyme – WLAN intrution detection

Get lost login/Credentials/Password

Hydra -> Login-Cracker
Windows Login Unlocker -> Reset account in WinPE
chntpw -> Reset account in WinPE
LaZagne -> – Python open source application used to retrieve lots of passwords
John the Ripper
John the Ripper
zip2john -> extract hash from zip -> Get pass with John the Ripper
DPAPI explained (used for Windows Vault)

Clone OS/Disk Imaging

clonezilla
Rufus – Create USB Bootstick

Recover files

photorec -> recover files
TestDisk -> recover partitions
OSFMount -> Mount images created by dd or ddrescue under Windows

Check webserver

DIRB – Search for well known folders and look for credentials…
WPScan – Check WordPress for known vulnarbiliteies
SQLmap – Check for SQL Injections

Intercept and inspect https traffic

OWAP Zed Attack Proxy (ZAP)
Fiddler
Burp
mitmproxy

Security Tools

metasploit -> Check again vulnarbiliteies
PowerShell Empire
mimikatz -> Extract credentials from Windows
Ghidra -> Reverse engineering
Reko – Decompiler/Reverse engineering
JD – Java Decompiler
Rubeus -> Raw Kerberos interaction
Windows Privilege Escalation – Scripts , etc…
Analyze physical Memory, memory dumps -> Volatility, Redline, Rekall , MemGator
nmap – Port scanner

velociraptor – Forensic tool kit

ntfstool – Restore files from ntfs formatted volumes

 

Post Explotation Frameworks

Covenant
Powersploit

Tool collections

WSCC

Windows 10

Sophia Script -> Disable some Windows 10 functions

Windows 11

DeBloated Win11  WIndow11 debloated

Boot Manager

Ventoy – Can boot iso, wim images….

Yumi – Multiboot USB Stick

Docker

Trivy – Scans docker images for vulnerabilities

Copy Tools

rcrypt – Copies files to various targets, can also encrypted data (webdav,s3, ….). Available for Windows, Linux..

CAD


Tinkercad
FreeCAD
LibreCAD

Electronic

Kicad – electronic design automation (EDA)
QElectroTech – create electric diagrams. Usefull for drawing electric diagrams for your home

Audio CD ripping/grapping

RipperX – Linux
CDex – Windows Newer Version comes with adware
Fre:ac – Windows

QR codes

Qreator – Generates WLAN, URL QRCodes (Linux)
SimpleCodeGenerator – Nirsoft quickly generate QR Code (Windows)

Multimedia center, Internet radio

Kodi – Media center
Volumio – Raspberry Audio Player
Pi Core Player
moodeaudio – Raspberry Audio Player
BubbleUPnP Server – Chromecast server, UPNP renderer….

Programming

ILSpy – .NET/C# decompiler

Testing

Testing/control Websites  – Selenium

Hypervisor

Harvestor

Performance
DIskperformance

IOMeter – Surface that takes some getting used to, old,  but still working.

DiskSpd – Microsoft tool for checking DIsk IO

Networkperformance

iperf – Supports TCP/UDP, differnet packet sizes…

Windows im Docker Container

Winapps-org