Rob's Hut

His digital playground

User Tools

Site Tools


Knowledge Base

Windows

Safely Remove Hardware

RunDll32.exe shell32.dll,Control_RunDLL hotplug.dll

Show Visible Wireless Networks

cmd /k netsh wlan show networks mode=bssid

Uncategorized

Download from mms stream

use package mimms

Convert wmv to avi

mencoder infile.wmv -ofps 23.976 -ovc lavc -oac copy -o outfile.avi

Source: http://www.linuxscrew.com/2007/09/23/convert-wmv-into-avi-with-ubuntu/#ixzz1Yyz5amSY

Generating PHP include graphs

  1. Make sure PECL is installed
    aptitude install php-pear
  2. Install inclued using PECL
    pecl install inclued-0.1.2
  3. Install graphviz
    aptitude install graphviz gsfonts
  4. Load inclued as extension (add this to /etc/php5/apache2/php.ini)
    extension=inclued.so
    inclued.enabled = On
    inclued.dumpdir = /tmp/inclued/
  5. Restart apache
    service apache2 restart
  6. (Find the location of gengraph script)
    find / -name gengraph.php
  7. Parse inclued outputs with gengraph script (assuming gengraph is in /usr/share/php, and the output is inclued.18101.6)
    php /usr/share/php/gengraph.php -i inclued.18101.6
  8. Convert the output into png
    dot -Tpng -o inclued.png inclued.out.dot
  • A script to parse all the inclued generated files in the current directory (make sure to chmod u+x to make it executable):
    #!/bin/sh
    for file in *
    do
    if [ -f "$file" ]; then
    php /usr/share/php/gengraph.php -i $file -t includes -o $file.dot
    dot -Tpng -o $file.inclued.png $file.dot
    fi
    done

Some references:

Using wget to download content protected by referer and cookies

  1. get base url and save its cookies in file
  2. get protected content using stored cookies
 $ wget --cookies=on --keep-session-cookies --save-cookies=cookie.txt http://first_page
 $ wget --referer=http://first_page --cookies=on --load-cookies=cookie.txt --keep-session-cookies --save-cookies=cookie.txt http://second_page

Running a persistent IRC client over SSH

  • Install: irssi, screen
  • Run screen, then irssi
  • Detach: CTRL+A-D
  • Reattach: screen -raAd

References:

Passcrack-related

Creating a dictionary from pot file

sed s/[A-Za-z0-9./]*://g file.pot > temp.dic
unique final.dic < temp.dic

Page Tools