mirror of
https://github.com/vanhauser-thc/thc-hydra.git
synced 2025-07-06 13:01:42 -07:00
dpl4hydra update
This commit is contained in:
parent
2b02aa091b
commit
9fcde9f9bb
4 changed files with 4565 additions and 10 deletions
2
CHANGES
2
CHANGES
|
@ -10,6 +10,8 @@ Release 8.4-dev
|
||||||
* New command line options:
|
* New command line options:
|
||||||
-y : disables -x 1aA interpretation, thanks to crondaemon for the patch
|
-y : disables -x 1aA interpretation, thanks to crondaemon for the patch
|
||||||
-I : ignore an existing hydra.restore file (dont wait for 10 seconds)
|
-I : ignore an existing hydra.restore file (dont wait for 10 seconds)
|
||||||
|
* Fixed dpl4hydra to be able to update from the web again
|
||||||
|
* Updated default password lists
|
||||||
* The protocols vnc, xmpp, telnet, imap, nntp and pcanywhere got accidentially long sleep commands due a patch in 8.2, fixed
|
* The protocols vnc, xmpp, telnet, imap, nntp and pcanywhere got accidentially long sleep commands due a patch in 8.2, fixed
|
||||||
* Added special error message for clueless users :)
|
* Added special error message for clueless users :)
|
||||||
|
|
||||||
|
|
19
dpl4hydra.sh
19
dpl4hydra.sh
|
@ -64,7 +64,7 @@ refresh ()
|
||||||
echo "done."
|
echo "done."
|
||||||
echo
|
echo
|
||||||
|
|
||||||
cat $INDEXSITE | grep td | awk -F"\"" '{ print $8 }' | grep http > $SUBSITES
|
cat $INDEXSITE | grep -i 'href=./passwd-' | sed 's/.*href=.\/passwd-/\/passwd-/' | sed 's/".*//' > $SUBSITES
|
||||||
rm $INDEXSITE
|
rm $INDEXSITE
|
||||||
|
|
||||||
if [ -r $FULLFILE ]; then
|
if [ -r $FULLFILE ]; then
|
||||||
|
@ -74,14 +74,13 @@ refresh ()
|
||||||
fi
|
fi
|
||||||
|
|
||||||
for SUBSITE in `cat $SUBSITES`; do
|
for SUBSITE in `cat $SUBSITES`; do
|
||||||
VENDOR=`echo $SUBSITE | awk -F"-" '{ print $3 }' | sed 's/.htm//'`
|
VENDOR=`echo $SUBSITE | sed 's/\.htm*//' | sed 's/.*-//'`
|
||||||
echo "Downloading default passwords for ${VENDOR}... " | tr -d "\n"
|
echo "Downloading default passwords for ${VENDOR} ... " | tr -d "\n"
|
||||||
$FETCH $SUBSITE | grep -i tr | grep -i td | grep -i celltext | sed 's/<[^>]*>/,/g' | sed 's/,,*/,/g' | sed 's/^,//g' | tr -d "\r" >dpl4hydra_${VENDOR}.tmp || { echo "not found - skipping... " | tr -d "\n" ; }
|
$FETCH "${SITE}${SUBSITE}" | tr -d '\n\r' | sed 's/<tr/\n/gi' | sed 's/<\/tr/\n/gi' | \
|
||||||
|
grep -iw celltext | sed 's/.*celltext">/,/i' | sed 's/<\/td>/,/g' | sed 's/<[a-z =/":;-]*>//gi' | \
|
||||||
while read SYSTEM; do
|
sed 's/[\t ]*,[\t ]*/,/g' | sed 's/&[a-z]*;//gi' | sed 's/(unknown)//gi' | sed 's/(none)//gi' | sed 's/,unknown,/,,/gi' | sed 's/,none,/,,/gi' > dpl4hydra_${VENDOR}.tmp
|
||||||
echo "${VENDOR}," | tr -d "\n" >> $FULLFILE
|
|
||||||
echo "$SYSTEM" >> $FULLFILE
|
cat dpl4hydra_${VENDOR}.tmp | awk -F, '{print"'$VENDOR',"$2","$3","$4","$5","$6","$7","$8","$9}' >> $FULLFILE
|
||||||
done < dpl4hydra_${VENDOR}.tmp
|
|
||||||
|
|
||||||
rm dpl4hydra_${VENDOR}.tmp
|
rm dpl4hydra_${VENDOR}.tmp
|
||||||
echo "done."
|
echo "done."
|
||||||
|
@ -163,7 +162,7 @@ LOCALFILE="$DPLPATH/dpl4hydra_local.csv"
|
||||||
INDEXSITE="$DPLPATH/dpl4hydra_index.tmp"
|
INDEXSITE="$DPLPATH/dpl4hydra_index.tmp"
|
||||||
SUBSITES="$DPLPATH/dpl4hydra_subs.tmp"
|
SUBSITES="$DPLPATH/dpl4hydra_subs.tmp"
|
||||||
CLEANFILE="$DPLPATH/dpl4hydra_clean.tmp"
|
CLEANFILE="$DPLPATH/dpl4hydra_clean.tmp"
|
||||||
SITE="http://open-sez.me/passwd.htm"
|
SITE="http://open-sez.me"
|
||||||
|
|
||||||
case $# in
|
case $# in
|
||||||
0) usage
|
0) usage
|
||||||
|
|
2277
dpl4hydra_full.csv
2277
dpl4hydra_full.csv
File diff suppressed because it is too large
Load diff
2277
dpl4hydra_local.csv
2277
dpl4hydra_local.csv
File diff suppressed because it is too large
Load diff
Loading…
Add table
Add a link
Reference in a new issue