From 90c21e0b0520af0cfe60c804f6a8e1390604b93d Mon Sep 17 00:00:00 2001 From: Michael Prokop Date: Fri, 2 Feb 2007 20:42:38 +0100 Subject: [PATCH] added reverse shell via ssh and kvm --- debian/changelog | 6 ++++++ grml_tips | 19 +++++++++++++++++++ 2 files changed, 25 insertions(+) diff --git a/debian/changelog b/debian/changelog index 52f382f..bf364c1 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,9 @@ +grml-tips (0.3-17) unstable; urgency=low + + * Added some more tips (reverse shell via ssh, kvm,...). + + -- Michael Prokop Fri, 2 Feb 2007 20:40:18 +0100 + grml-tips (0.3-16) unstable; urgency=low * Fix package name for grml-kerneladdons in 'qemu tip'. diff --git a/grml_tips b/grml_tips index 33ca66b..e044aaf 100644 --- a/grml_tips +++ b/grml_tips @@ -855,6 +855,14 @@ local host: remote host: % netcat 192.168.0.1 3333 -- +Reverse Shell via SSH: + +local host (inside the network): +% ssh -NR 1234:localhost:22 remote_host + +remote host (outside the network): +% ssh localhost -p 1234 +-- Remove empty directories with zsh: % rmdir ./**/*(/od) 2> /dev/null @@ -2379,3 +2387,14 @@ Usage example for 'ls': % LD_PRELOAD=/lib/libmemusage.so ls > /dev/null -- +Use KVM (Kernel-based Virtual Machine for Linux): + +Make sure to install the relevant tools: +# apt-get update ; apt-get install kvm +# modprobe kvm + +Test it with a minimal system like ttylinux: +# wget http://www.minimalinux.org/ttylinux/packages/bootcd-i386-5.3.iso.gz +# gzip -d bootcd-i386-5.3.iso.gz +# kvm -cdrom bootcd-i386-5.3.iso +-- -- 2.1.4