added reverse shell via ssh and kvm
authorMichael Prokop <mika@grml.org>
Fri, 2 Feb 2007 19:42:38 +0000 (20:42 +0100)
committerMichael Prokop <mika@grml.org>
Fri, 2 Feb 2007 19:42:38 +0000 (20:42 +0100)
debian/changelog
grml_tips

index 52f382f..bf364c1 100644 (file)
@@ -1,3 +1,9 @@
+grml-tips (0.3-17) unstable; urgency=low
+
+  * Added some more tips (reverse shell via ssh, kvm,...).
+
+ -- Michael Prokop <mika@grml.org>  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'.
index 33ca66b..e044aaf 100644 (file)
--- 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
+--