Showing posts with label dictionary. Show all posts
Showing posts with label dictionary. Show all posts

Tuesday, October 18, 2011

Ubuntu Oneiric 11.10 - problem with package dictionaries-common

I started getting troubles with dictionaries-common package right from the beginning of upgrading into Ubuntu Oneiric (11.10). The error message looks kind of like the following:


Setting up dictionaries-common (1.11.5ubuntu1) ...
update-default-wordlist: Question empty but elements installed for class "wordlist"
  dictionaries-common/default-wordlist: return code: "0", value: ""
  Choices: , Manual symlink setting
  shared/packages-wordlist: return code: "10" owners/error: "shared/packages-wordlist doesn't exist"
  Installed elements: american (American English)
  Please see "/usr/share/doc/dictionaries-common/README.problems", section
  "Debconf database corruption" for recovery info.
update-default-wordlist: Selected wordlist "" 
does not correspond to any installed package in the system
and no alternative wordlist could be selected.
dpkg: error processing dictionaries-common (--configure):
 subprocess installed post-installation script returned error exit status 255
dpkg: dependency problems prevent configuration of xscreensaver-data-extra:
 xscreensaver-data-extra depends on dictionaries-common; however:
  Package dictionaries-common is not configured yet.
dpkg: error processing xscreensaver-data-extra (--configure):
 dependency problems - leaving unconfigured
No apport report written because the error message indicates its a followup error from a previous failure.
Errors were encountered while processing:
 dictionaries-common
 xscreensaver-data-extra
E: Sub-process /usr/bin/dpkg returned an error code (1)

May be I was too quick to have skimmed over the error message and did not realize what is missing. It looks like the problem actually is that I do not have any word-list installed (or, somehow uninstalled during the distribution upgrade process) on my machine for the dictionary to point to. The quick solution is to install the preferred word-list as following:
sudo apt-get install wamerican-insane
 This should remove fix the package installation error with dictionaries-common package.


Monday, February 22, 2010

Bash wordlist/dictionary generator for brute-forcing

This example code will generate passwords of 4 characters only. To generate bigger passwords, there has to be more loops (pretty obvious in the code below). Happy Brute-forcing !!
1 #!/bin/bash
2
3 list=`echo {0..9} {a..z} {A..Z}`
4
5 for c1 in $list
6 do
7 for c2 in $list
8 do
9 for c3 in $list
10 do
11 for c4 in $list
12 do
13 echo $c1$c2$c3$c4
14 done
15 done
16 done
17 done
18