Skip to content

Commit 57d11c9

Browse files
committed
More theme changes here and there
1 parent 0969e06 commit 57d11c9

File tree

9 files changed

+42
-32
lines changed

9 files changed

+42
-32
lines changed

build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,8 @@ android {
5353
minSdkVersion 17
5454
targetSdkVersion 29
5555
//noinspection HighAppVersionCode
56-
versionCode 004
57-
versionName "0.0.4"
56+
versionCode 005
57+
versionName "0.0.5"
5858
multiDexEnabled true
5959
}
6060

res/layout/customcommands.xml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@
4343
android:scrollbars="none"
4444
app:layout_constraintTop_toBottomOf="@+id/f_customcommands_scrollView"
4545
app:layout_constraintStart_toStartOf="parent"
46+
app:layout_constraintEnd_toEndOf="parent"
4647
app:layout_constraintBottom_toBottomOf="parent">
4748

4849
<LinearLayout
@@ -52,20 +53,26 @@
5253
android:orientation="horizontal">
5354

5455
<Button
56+
android:layout_marginStart="4dp"
57+
android:layout_marginEnd="4dp"
5558
android:id="@+id/f_customcommands_addItemButton"
5659
android:layout_width="wrap_content"
5760
android:layout_height="wrap_content"
5861
style="@android:style/Holo.Light.ButtonBar"
5962
android:text="Add" />
6063

6164
<Button
65+
android:layout_marginStart="4dp"
66+
android:layout_marginEnd="4dp"
6267
android:id="@+id/f_customcommands_deleteItemButton"
6368
android:layout_width="wrap_content"
6469
android:layout_height="wrap_content"
6570
style="@android:style/Holo.Light.ButtonBar"
6671
android:text="Delete" />
6772

6873
<Button
74+
android:layout_marginStart="4dp"
75+
android:layout_marginEnd="4dp"
6976
android:id="@+id/f_customcommands_moveItemButton"
7077
android:layout_width="wrap_content"
7178
android:layout_height="wrap_content"

res/layout/customcommands_recyclerview_main.xml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -112,17 +112,14 @@
112112

113113
<Button
114114
android:id="@+id/f_customcommands_recyclerview_btn_run"
115-
style="@style/Widget.AppCompat.Button"
116115
android:layout_width="match_parent"
117116
android:layout_height="wrap_content"
118117
android:layout_gravity="bottom"
119118
android:layout_weight="0.8"
120-
android:alpha="0.50"
121119
android:bufferType="normal"
122120
android:capitalize="characters"
123121
android:fontFamily="sans-serif-condensed"
124122
android:text="RUN"
125-
android:textAppearance="@style/TextAppearance.AppCompat.Medium"
126123
android:textColor="#FFFFFF"
127124
android:textDirection="firstStrong"
128125
android:textSize="14sp" />

res/layout/nethunter_recyclerview_main.xml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,12 +59,10 @@
5959

6060
<Button
6161
android:id="@+id/f_nethunter_item_run_btn"
62-
style="@style/Widget.AppCompat.Button"
6362
android:layout_width="77dp"
6463
android:fontFamily="sans-serif-condensed"
6564
android:layout_height="wrap_content"
6665
android:text="RUN"
67-
android:textAppearance="@style/TextAppearance.AppCompat.Medium"
6866
android:textColor="#FFFFFF"
6967
android:textSize="14sp" />
7068

res/layout/searchsploit_item.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,8 @@
5757
android:layout_alignParentStart="true" />
5858

5959
<Button
60+
android:textSize="10dp"
6061
android:id="@+id/viewSource"
61-
style="?android:attr/buttonStyleSmall"
6262
android:layout_width="wrap_content"
6363
android:layout_height="wrap_content"
6464
android:layout_below="@+id/searchsploit_sendhid_button"
@@ -118,8 +118,8 @@
118118
android:layout_alignStart="@+id/author" />
119119

120120
<Button
121+
android:textSize="10dp"
121122
android:id="@+id/openWeb"
122-
style="?android:attr/buttonStyleSmall"
123123
android:layout_width="wrap_content"
124124
android:layout_height="wrap_content"
125125
android:layout_below="@+id/viewSource"
@@ -129,8 +129,8 @@
129129
android:textColor="@android:color/holo_blue_dark" />
130130

131131
<Button
132+
android:textSize="10dp"
132133
android:id="@+id/searchsploit_sendhid_button"
133-
style="?android:attr/buttonStyleSmall"
134134
android:layout_width="wrap_content"
135135
android:layout_height="wrap_content"
136136
android:layout_alignStart="@+id/viewSource"

res/layout/sidenav_header.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
<RelativeLayout
1212
android:layout_width="match_parent"
1313
android:layout_height="114dp"
14-
android:background="@drawable/cropbg"
14+
android:background="@drawable/nh_cropbg"
1515
android:orientation="horizontal">
1616

1717
<com.google.android.material.floatingactionbutton.FloatingActionButton xmlns:app="http://schemas.android.com/apk/res-auto"

res/values/strings.xml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,9 @@
231231
<item>wlan0</item>
232232
<item>wlan1</item>
233233
<item>wlan2</item>
234+
<item>wlan3</item>
234235
<item>eth0</item>
236+
<item>eth1</item>
235237
<item>rndis0</item>
236238
<item>usb0</item>
237239
</string-array>

res/values/styles.xml

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,20 +6,34 @@
66
<item name="colorPrimary">#AE1E1E1E</item>
77
<item name="colorPrimaryDark">@color/material_blue_grey_950</item>
88
<item name="colorAccent">#B5B5B5</item>
9+
10+
<!-- other styles/themes -->
11+
<item name="dialogTheme">@style/DialogStyle2</item>
912
<item name="drawerArrowStyle">@style/DrawerArrowStyle</item>
13+
14+
<!-- button styles -->
1015
<item name="materialButtonStyle">@style/kekbutton</item>
16+
<item name="buttonStyle">@style/kekbutton</item>
17+
18+
<!-- text colors/colours -->
1119
<item name="android:textColorLink">#476CCD</item>
1220
<item name="android:textColor">#E5E8ED</item>
21+
22+
<!-- text size -->
1323
<item name="android:textSize">14dp</item>
24+
25+
<!-- Button background colors/colours -->
1426
<item name="colorBackgroundFloating">#1C1C1C</item>
27+
28+
<!-- Button text colors/colours -->
1529
<item name="android:negativeButtonText">#FFFFFF</item>
1630

31+
<!-- Button styles-->
1732
<item name="buttonBarNegativeButtonStyle">@style/NegativeButtonStyle</item>
1833
<item name="buttonBarPositiveButtonStyle">@style/PositiveButtonStyle</item>
1934
<item name="buttonBarNeutralButtonStyle">@style/NeutralButtonStyle</item>
2035

21-
<item name="dialogTheme">@style/DialogStyle2</item>
22-
36+
<!-- Main styles-->
2337
<item name="android:windowShowWallpaper">true</item>
2438
<item name="android:windowBackground">@color/colorBackground</item>
2539

src/com/offsec/nethunter/SQL/CustomCommandsSQL.java

Lines changed: 11 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -40,29 +40,21 @@ public class CustomCommandsSQL extends SQLiteOpenHelper {
4040
{"4", "Stop wlan0 monitor mode",
4141
"su -c \"ifconfig wlan0 down; echo 0 > /sys/module/wlan/parameters/con_mode; ip link set wlan0 up; svc wifi enable\"; exit",
4242
"android", "interactive", "0"},
43-
{"5", "Start wlan1 in monitor mode",
43+
{"5", "Start wlan0 in monitor mode (POCO F1)",
44+
"su -c \"svc wifi disable; sleep 2; echo 4 > /sys/module/wlan/parameters/con_mode; sleep 2; killall -q -SIGSTOP lowi-server || true; ip link set wlan0 up; echo done\"; exit",
45+
"android", "interactive", "0"},
46+
{"6", "Stop wlan0 monitor mode (POCO F1)",
47+
"su -c \"ip link set wlan0 down && sleep 5 && echo 0 > /sys/module/wlan/parameters/con_mode && echo done\"; exit",
48+
"android", "interactive", "0"},
49+
{"7", "Start wlan1 in monitor mode",
4450
"ip link set wlan1 down && iw wlan1 set monitor control && ip link set wlan1 up;exit",
4551
"kali", "interactive", "0"},
46-
{"6", "Start wlan2 in monitor mode",
52+
{"8", "Start wlan2 in monitor mode",
4753
"ip link set wlan2 down && iw wlan2 set monitor control && ip link set wlan2 up;exit",
4854
"kali", "interactive", "0"},
49-
{"7", "Start beef",
50-
"cd /usr/share/beef-xss; && ./beef; exit",
51-
"kali", "interactive", "0"},
52-
{"8", "Y-cable start",
53-
"su -c \"bootkali ycable start;exit\"",
54-
"android", "interactive", "0"},
55-
{"9", "Y-cable stop",
56-
"su -c \"bootkali ycable start;exit\"",
57-
"android", "interactive", "0"},
58-
59-
// New way of making wlan0 mon mode (WIP)
60-
// {"4", "Start wlan0 in monitor mode",
61-
// "su -c \"svc wifi disable; sleep 1; echo 4 > /sys/module/wlan/parameters/con_mode; sleep 2; iwpriv wlan0 MonitorModeConf 11 40 1 111 0; iwpriv wlan0 monitor 1; killall -q -SIGSTOP lowi-server || true; ip link set wlan0 up;\";",
62-
// "android", "interactive", "0"},
63-
// {"5", "Stop wlan0 monitor mode",
64-
// "su -c \"iwpriv wlan0 monitor 0; ip link set wlan0 down; sleep 1; echo 0 > /sys/module/wlan/parameters/con_mode; sleep 2; killall -q -SIGCONT lowi-server || true\";",
65-
// "android", "interactive", "0"},
55+
{"9", "Start beef",
56+
"cd /usr/share/beef-xss; ./beef",
57+
"kali", "interactive", "0"}
6658
};
6759

6860
public synchronized static CustomCommandsSQL getInstance(Context context){

0 commit comments

Comments
 (0)