projects
/
grml-tips.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
bd17ba5
)
added reverse shell via ssh and kvm
author
Michael Prokop
<mika@grml.org>
Fri, 2 Feb 2007 19:42:38 +0000
(20:42 +0100)
committer
Michael Prokop
<mika@grml.org>
Fri, 2 Feb 2007 19:42:38 +0000
(20:42 +0100)
debian/changelog
patch
|
blob
|
history
grml_tips
patch
|
blob
|
history
diff --git
a/debian/changelog
b/debian/changelog
index
52f382f
..
bf364c1
100644
(file)
--- 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 <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'.
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
(file)
--- a/
grml_tips
+++ b/
grml_tips
@@
-855,6
+855,14
@@
local host:
remote host:
% netcat 192.168.0.1 3333
--
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
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
--
% 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
+--