📄 examples.txt
字号:
These are some examples of a creative usage of the tools found in wepdecrypt.This one is a modified version of wepdecrypt_word script that uses plain words found in the dump file to build a dictionary, made by Scott Taylor <scott@berthoudwireless.net>-------------------------CUT HERE----------------------------------------#!/bin/sh# # edit /etc/wepdecrypt.conf for configuration. /etc/wepdecrypt.conf## command to join JOHN THE RIPPER and WEPDECRYPT#if which john &> /dev/null; then JOHNDIR=`which john | awk -F / '{for (i=1; i<=NF-1; i++){ printf "%s/", $i };}'`fiWORDLIST="$(mktemp /tmp/wword.XXXXXX)"TEMPLIST="$(mktemp /tmp/wtemp.XXXXXX)"JOHNLIST="$(mktemp /tmp/wjohn.XXXXXX)"OTHRLIST="$(mktemp /tmp/wothr.XXXXXX)"cat $TEMPLIST | sort -u > $JOHNLIST$JOHNDIR/john --wordlist=$JOHNLIST -rules -stdout:13 > $OTHRLISTcat $OTHRLIST | sort -u > $JOHNLISTstrings $1 | sed -e's|\b|\n|g' > $TEMPLISTstrings $1 | sed -e's|\W||g' >> $TEMPLISTcat $TEMPLIST | sort -u >> $WORDLISTecho -en "$(cat $WORDLIST | wc -l) \n"$JOHNDIR/john --wordlist=$WORDLIST -rules -stdout:13 > $TEMPLISTecho -en "$(cat $TEMPLIST | wc -l) "cat $TEMPLIST | sort -u | sort -k 3 >> $JOHNLISTecho -en "$(cat $JOHNLIST | wc -l) \n"if [ $# -lt 1 -o $# -gt 3 ]; then echo "Usage: $0 Dumpfile [mac_address] [number_networks]"; exit 1;fiif ! [ -f $1 ]; then echo "Error: Dumpfile '$1' does not exist."; exit 1;fiif [ $# -eq 1 ]; then if test -f $JOHNDIR/john; then $JOHNDIR/john -wordfile:$WORDLIST -rules -stdout:13\ | wepdecrypt -f $1 exit 0; else echo "John the ripper not found! Edit '/etc/wepdecrypt.conf' "; echo "to set correct path.." exit 1; fifiif [ $# -eq 2 ]; then if test -f $JOHNDIR/john; then $JOHNDIR/john -wordfile:$WORDLIST -rules -stdout:13\ | wepdecrypt -f $1 -b $2 exit 0; else echo "John the ripper not found! Edit '/etc/wepdecrypt.conf' "; echo "to set correct path.." exit 1; fifiif [ $# -eq 3 ]; then if test -f $JOHNDIR/john; then $JOHNDIR/john -wordfile:$WORDLIST -rules -stdout:13\ | wepdecrypt -f $1 -b $2 -n $3 exit 0; else echo "John the ripper not found! Edit '/etc/wepdecrypt.conf' "; echo "to set correct path.." exit 1; fifi-------------------------CUT HERE---------------------------------------- Here you have a script to generate unique hexkeys. It will generate keys from1 to WORD_LENGTH-------------------------CUT HERE----------------------------------------#!/bin/sh## edit /etc/wepdecrypt.conf for configuration. /etc/wepdecrypt.conf#if [ $# -lt 1 -o $# -gt 2 ]; then echo -e "Usage: $0 Filename [word_lenght]\n\tKeys will be stored in Filename"; exit 1;fiif [ $# -eq 2 ]; then WORD_LENGTH=$2else WORD_LENGTH=13fiif which john &> /dev/null; then JOHNDIR=`which john | awk -F / '{for (i=1; i<=NF-1; i++){ printf "%s/", $i };}'`fiecho -e "Keys will be saved in $1\nGenerating keys..."$JOHNDIR/john -stdout:$WORD_LENGTH -incremental | wkeygen -i | uniq > $1echo -e "Done"-------------------------CUT HERE----------------------------------------
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -