X-Git-Url: http://git.grml.org/?a=blobdiff_plain;f=grml_tips;h=e044aaf781c2d68d662a33aaa07ee45b993a6da7;hb=90c21e0b0520af0cfe60c804f6a8e1390604b93d;hp=33ca66bbc83d23ce38bb413f7771b112cb2b7da3;hpb=bd17ba52777fec860e26a3392b70ebbfbe005629;p=grml-tips.git 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 +--