X-Git-Url: http://git.grml.org/?a=blobdiff_plain;f=grml_tips;h=47ba348db77d317aeb0f9de0780fd76d724a8932;hb=7d8e8d8e7ed7b68c76bc85139583baeae4d2dff2;hp=25973730615ddc7aa36cb2c587673a8e59e479ae;hpb=d15fdf23c80d7e2bee17ed539658d3ae1b9fab27;p=grml-tips.git diff --git a/grml_tips b/grml_tips index 2597373..47ba348 100644 --- a/grml_tips +++ b/grml_tips @@ -708,9 +708,9 @@ Write back the guessed table: Develop, test and use exploit code with the Metasploit Framework: cd /tmp -wget http://framework-mirrors.metasploit.com/msf/downloader/framework-3.0.tar.gz -unp framework-3.0.tar.gz -cd framework-3.0 +wget http://spool.metasploit.com/releases/framework-3.2.tar.gz +unp framework-3.2.tar.gz +cd framework-3.2 ./msfcli -- Useful documentation: @@ -1105,7 +1105,7 @@ Assign static setup for network cards (eth0 and eth1) via udev: First method - manual: ~~~~~~~~~~~~~~~~~~~~~~ Get information for SYSFS address: -# udevinfo -a -p /sys/class/net/eth0/ | grep address +# udevadm info -a -p /sys/class/net/eth0/ | grep address Then create udev rules: # cat /etc/udev/network.rules @@ -1271,9 +1271,17 @@ via using grml nodma at the bootprompt. -- Write a Microsoft compatible boot record (MBR) using ms-sys -Write a Windows 2000/XP/2003 MBR to device: +Write a Windows 2000/XP/2003 MBR to a device: # ms-sys -m /dev/ice + +Notice: grab ms-sys from http://ms-sys.sourceforge.net/ - demo: + + wget http://surfnet.dl.sourceforge.net/sourceforge/ms-sys/ms-sys-2.1.3.tgz + unp ms-sys-2.1.3.tgz + cd ms-sys-2.1.3 + make + ./bin/ms-sys ... -- Use a Vodafone 3G Datacard (UMTS) with Linux: @@ -2320,8 +2328,6 @@ host2% hg merge # merge changes into your working directory Set up a CGI server on your webserver: % cp hgwebdir.cgi ~/public_html/hg/index.cgi % $EDITOR ~/public_html/hg/index.cgi # adjust the defaults - -Mercurial repositories of grml can be found at http://hg.grml.org/ -- Download binary codecs for mplayer: @@ -3126,3 +3132,36 @@ deb http://localhost:9999/debian unstable main contrib non-free use approx in grml-debootstrap like: % grml-debootstrap -r lenny -t /dev/sda1 -m http://127.0.0.1:9999/debian -- +Simple webserver with python: + +% python -m SimpleHTTPServer +-- +Upgrade only packages from the grml-stable Debian repository: + +echo 'deb http://deb.grml.org/ grml-stable main' > /etc/apt/grml-stable.list +apt-get -o Dir::Etc::sourcelist=/etc/apt/grml-stable.list -o Dir::Etc::sourceparts=/doesnotexist update +apt-get upgrade +-- +Install Centos into a directory: + +% febootstrap centos-5 directory http://mirror.centos.org/centos-5/5.3/os/i386/ +-- +Install Fedora into a directory: + +% febootstrap fedora-11 target_directory +-- +Use Nessus / OpenVAS (remote network security auditor): + +Install software packages: +# apt-get update +# apt-get install openvas-client openvas-server openvas-plugins-base openvas-plugins-dfsg + +Add a user: +# openvas-adduser + +Start openvas server (takes a while): +# Start openvas-server + +Invoke client as user: +% OpenVAS-Client +--