mirror of
https://gitlab.com/Nanolx/smashbroshaxer.git
synced 2024-11-22 09:19:17 +01:00
improvements ; enforce xterm
This commit is contained in:
parent
a4a87570eb
commit
b807a92e76
@ -8,6 +8,7 @@ Requirements:
|
|||||||
* Linux (x86/x86_64)
|
* Linux (x86/x86_64)
|
||||||
* Gtk+ 3
|
* Gtk+ 3
|
||||||
* sudo
|
* sudo
|
||||||
|
* xterm
|
||||||
|
|
||||||
Usage (interactive mode):
|
Usage (interactive mode):
|
||||||
================
|
================
|
||||||
@ -32,6 +33,11 @@ ChangeLog:
|
|||||||
3.0 (20160724):
|
3.0 (20160724):
|
||||||
* switch to channel 6 (should do stuff faster)
|
* switch to channel 6 (should do stuff faster)
|
||||||
* reset wifi interface after work is done (brings back interwebs)
|
* reset wifi interface after work is done (brings back interwebs)
|
||||||
|
* display short info strings in terminal windows
|
||||||
|
* use xterm instead of x-terminal-emulator
|
||||||
|
** some terminals like Konsole need extra arguments (--nofork)
|
||||||
|
** to properly work as desired, thus enforce xterm so that I
|
||||||
|
** don't have fiddle around with that stuff
|
||||||
* add new payloads:
|
* add new payloads:
|
||||||
** US 1.0.1
|
** US 1.0.1
|
||||||
** EU-JAP 1.0.1
|
** EU-JAP 1.0.1
|
||||||
|
@ -15,17 +15,29 @@ fi
|
|||||||
|
|
||||||
hax_my_smash () {
|
hax_my_smash () {
|
||||||
|
|
||||||
x-terminal-emulator -e /bin/bash -c \
|
xterm -e /bin/bash -c \
|
||||||
"sudo ifconfig ${device} down && \
|
"printf \">> Enter password to access WiFi device:
|
||||||
|
|
||||||
|
\" && \
|
||||||
|
sudo ifconfig ${device} down && \
|
||||||
sudo iwconfig ${device} mode monitor && \
|
sudo iwconfig ${device} mode monitor && \
|
||||||
sudo ifconfig ${device} up && \
|
sudo ifconfig ${device} up && \
|
||||||
sudo iwconfig ${device} channel 6 && \
|
sudo iwconfig ${device} channel 6 && \
|
||||||
yes | sudo ${AIREPLAY} \
|
yes | sudo ${AIREPLAY} \
|
||||||
--interactive \
|
--interactive \
|
||||||
-r ${replay} \
|
-r ${replay} \
|
||||||
-h 59:ee:3f:2a:37:e0 \
|
-h 59:ee:3f:2a:37:e0 \
|
||||||
-x 20 \
|
-x 20 \
|
||||||
${device} ; \
|
${device}" ; \
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
reset_wifi () {
|
||||||
|
|
||||||
|
xterm -e /bin/bash -c \
|
||||||
|
"printf \">> Enter password to reset WiFi device:
|
||||||
|
|
||||||
|
\" && \
|
||||||
sudo ifconfig ${device} down && \
|
sudo ifconfig ${device} down && \
|
||||||
sudo iwconfig ${device} mode managed && \
|
sudo iwconfig ${device} mode managed && \
|
||||||
sudo ifconfig ${device} up"
|
sudo ifconfig ${device} up"
|
||||||
@ -83,7 +95,8 @@ interactive_mode () {
|
|||||||
replay=${basedir}/pcap/${array[1]}
|
replay=${basedir}/pcap/${array[1]}
|
||||||
|
|
||||||
case ${ret} in
|
case ${ret} in
|
||||||
0 ) hax_my_smash ;;
|
0 ) hax_my_smash
|
||||||
|
reset_wifi ;;
|
||||||
|
|
||||||
2 ) open_3ds_homebrew ;;
|
2 ) open_3ds_homebrew ;;
|
||||||
|
|
||||||
@ -125,5 +138,6 @@ usage:
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
hax_my_smash
|
hax_my_smash
|
||||||
|
reset_wifi
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
Loading…
Reference in New Issue
Block a user