File: web2dic.sh

package info (click to toggle)
dirb 2.22%2Bdfsg-7
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 2,244 kB
  • sloc: ansic: 1,704; sh: 1,132; makefile: 51; perl: 23
file content (22 lines) | stat: -rw-r--r-- 601 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/bin/bash
# Web2Dic
# Created: 28 Enero 2005
# Last modified: 31 Marzo 2005
# By Warezzman for DirB
#
# Requires: wget
#

if ( ! test "$1" ) then
  echo "Usage: ./web2dic.sh http://www.target.com/"
  exit
fi

mkdir temp
cd temp
wget -r -nd -R .css,.CSS,.gif,.GIF,.jpg,.JPG,.jpeg,.JPEG,.png,.PNG,.bmp,.BMP,.pdf,.PDF,.ps,.PS,.swf,.SWF,.doc,.DOC,.ppt,.PPT,.xls,.XLS,.mdb,.MDB,.zip,.ZIP,.jar,.JAR,.cab,.CAB,.class,.CLASS,.rar,.RAR,.gz,.GZ,.z,.Z $1
find . -type f -exec cat {} >> ../input.txt \;
../html2dic ../input.txt | sort | uniq > ../output.txt
cd ..
rm -rf temp
rm input.txt