mirror of
https://gitlab.com/Nanolx/smashbroshaxer.git
synced 2024-11-22 09:19:17 +01:00
run commands in separate x-terminal-emulator
This commit is contained in:
parent
4d328cc492
commit
66bdf5116a
6
README
6
README
@ -9,10 +9,10 @@ Requirements:
|
|||||||
* sudo
|
* sudo
|
||||||
|
|
||||||
Usage:
|
Usage:
|
||||||
* run script in terminal
|
* run script
|
||||||
* select wifi device
|
* select wifi device
|
||||||
* select game version
|
* select game version
|
||||||
* press hax
|
* click 'hax my smash'
|
||||||
* [if requested] enter your password in terminal
|
* enter your password in terminal
|
||||||
* in game go to Smash > Group
|
* in game go to Smash > Group
|
||||||
* ... profit?
|
* ... profit?
|
||||||
|
@ -48,16 +48,16 @@ device=${array[0]}
|
|||||||
replay=${array[1]}
|
replay=${array[1]}
|
||||||
|
|
||||||
if [[ ${ret} == 0 ]]; then
|
if [[ ${ret} == 0 ]]; then
|
||||||
sudo ifconfig ${device} down
|
x-terminal-emulator -e /bin/bash -c \
|
||||||
sudo iwconfig ${device} mode monitor
|
"sudo ifconfig ${device} down && \
|
||||||
sudo ifconfig ${device} up
|
sudo iwconfig ${device} mode monitor && \
|
||||||
|
sudo ifconfig ${device} up && \
|
||||||
yes | sudo ${AIREPLAY} \
|
yes | sudo ${AIREPLAY} \
|
||||||
--interactive \
|
--interactive \
|
||||||
-r ${basedir}/pcap/${replay} \
|
-r ${basedir}/pcap/${replay} \
|
||||||
-h 59:ee:3f:2a:37:e0 \
|
-h 59:ee:3f:2a:37:e0 \
|
||||||
-x 20 \
|
-x 20 \
|
||||||
${device}
|
${device}"
|
||||||
else
|
else
|
||||||
echo -e "\n cancelled by user \n"
|
echo -e "\n cancelled by user \n"
|
||||||
exit 1
|
exit 1
|
||||||
|
Loading…
Reference in New Issue
Block a user