From c62e1652e77dc89b3d629eb0958f8c1039bc929e Mon Sep 17 00:00:00 2001 From: lassulus Date: Mon, 29 Dec 2014 04:10:46 +0100 Subject: text2speech: fix example --- util/bin/text2speech.google | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/util/bin/text2speech.google b/util/bin/text2speech.google index b732f363..061bb1c8 100755 --- a/util/bin/text2speech.google +++ b/util/bin/text2speech.google @@ -5,7 +5,7 @@ TL=${TL:="en"} usage(){ echo 'TL= can specifiy which language to use, default is "en"' - echo 'Example: TL="de" ./text2speech.google "whats up?" | mpv -)' + echo 'Example: TL="de" ./text2speech.google "whats up?" | mpv -' exit 0 } -- cgit v1.2.3 From 127f434824695d3789e4c8ef4ef09e03cebf1343 Mon Sep 17 00:00:00 2001 From: lassulus Date: Mon, 29 Dec 2014 04:11:42 +0100 Subject: translate: fix example --- util/bin/translate.google | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/util/bin/translate.google b/util/bin/translate.google index cb69064a..06c6a5a8 100755 --- a/util/bin/translate.google +++ b/util/bin/translate.google @@ -7,7 +7,7 @@ tl=${TL:="en"} usage(){ echo 'TL= targetlanguage, valid strings are in the style of "en", "pl" or "de". default "en"' echo 'SL= sourcelanguage, same TL, default is auto' - echo 'Example: TL="de" ./translate.google whats up?' + echo 'Example: TL="de" ./translate.google "whats up?"' exit 0 } -- cgit v1.2.3 From 4c82c9df30585a30db7adbdeef6b8df3d89ba98d Mon Sep 17 00:00:00 2001 From: lassulus Date: Tue, 30 Dec 2014 16:15:16 +0100 Subject: move belkin plugin to correct dir --- recon/inspect_wifi/plugins/11belkin_wps | 30 ------------------------------ recon/inspector_wifi/plugins/11belkin_wps | 30 ++++++++++++++++++++++++++++++ 2 files changed, 30 insertions(+), 30 deletions(-) delete mode 100755 recon/inspect_wifi/plugins/11belkin_wps create mode 100755 recon/inspector_wifi/plugins/11belkin_wps diff --git a/recon/inspect_wifi/plugins/11belkin_wps b/recon/inspect_wifi/plugins/11belkin_wps deleted file mode 100755 index 65448ad0..00000000 --- a/recon/inspect_wifi/plugins/11belkin_wps +++ /dev/null @@ -1,30 +0,0 @@ -#!/bin/sh - -cd $(dirname $(readlink -f $0)) -. ./plugin_core -parse_plugin_args "$@" - -if ! check_vendor_mac "$VENDOR_MAC" 002275 001CDF 09863B; then - echo "VENDOR MAC $VENDOR_MAC not affected" - exit 1 -fi - -calc_belkin(){ - PRIVATE_MAC=${1} - p=$((0x$PRIVATE_MAC % 10000000)) - wps_pin_checksum(){ - pin=$1 - accum=0 - while [ $pin -ne 0 ];do - accum=$((accum + (3 * (pin % 10)) )) - pin=$((pin/10)) - accum=$((accum + pin %10 )) - pin=$((pin/10)) - done - echo $(( (10 - accum % 10) % 10)) - } - printf "%07d%d" $p $(wps_pin_checksum $p) - return 0 -} - -printf "WPS-PIN: %s" $(calc_belkin ${PRIVATE_MAC}) diff --git a/recon/inspector_wifi/plugins/11belkin_wps b/recon/inspector_wifi/plugins/11belkin_wps new file mode 100755 index 00000000..65448ad0 --- /dev/null +++ b/recon/inspector_wifi/plugins/11belkin_wps @@ -0,0 +1,30 @@ +#!/bin/sh + +cd $(dirname $(readlink -f $0)) +. ./plugin_core +parse_plugin_args "$@" + +if ! check_vendor_mac "$VENDOR_MAC" 002275 001CDF 09863B; then + echo "VENDOR MAC $VENDOR_MAC not affected" + exit 1 +fi + +calc_belkin(){ + PRIVATE_MAC=${1} + p=$((0x$PRIVATE_MAC % 10000000)) + wps_pin_checksum(){ + pin=$1 + accum=0 + while [ $pin -ne 0 ];do + accum=$((accum + (3 * (pin % 10)) )) + pin=$((pin/10)) + accum=$((accum + pin %10 )) + pin=$((pin/10)) + done + echo $(( (10 - accum % 10) % 10)) + } + printf "%07d%d" $p $(wps_pin_checksum $p) + return 0 +} + +printf "WPS-PIN: %s" $(calc_belkin ${PRIVATE_MAC}) -- cgit v1.2.3