forked from nethunteros/installer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstrings.go
152 lines (110 loc) · 4.75 KB
/
strings.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
//
// Copyright 2017 The Maru OS Project
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
//
package main
const MsgWelcome = `
Welcome to the Nethunter installer! (forked from MaruOS installer)
In order to install Nethunter you will need to:
1. Connect your device to your computer over USB
2. Enable USB Debugging on your device:
1) Go to the Settings app and scroll down to
the System section
NOTE: If you already have "Developer options"
under System then go directly to #5
2) Tap on "About phone"
3) Tap "Build number" 7 times until you get a message
that says you are now a developer
4) Go back to the main Settings app
5) Tap on "Developer options"
6) Ensure that "USB debugging" is enabled
7) You may need to restart adb if you don't get an RSA key box (adb kill-server)
8) Tap "OK" if you see a dialog asking you to allow
USB Debugging for your computer's RSA key fingerprint
WARNING: Installing Nethunter will wipe all your personal data
so make sure you first back-up anything important!
`
const MsgIncompleteZip = `
Hmm, looks like your installer is a missing a few things.
Are you running this install script outside the directory you unzipped the installer in?
`
const msgFixAdb = `
Please ensure that:
1. Your device is connected to your computer over USB
2. You have USB Debugging enabled (see above for instructions)
3. You unlock your device and tap "OK" if you see a dialog asking you
to allow USB Debugging for your computer's RSA key fingerprint
If you are on Windows, please ensure you have the Google USB Driver properly
installed for your device as described in HELP.txt (this is the main source of
problems on Windows!)
Go ahead and re-run the installer when you're ready.
`
const MsgAdbIssue = "\nHmm, there was an issue communicating with your device.\n" + msgFixAdb
const MsgFastbootNoDeviceFound = `
Hmm, your device can't be found. Please ensure that your device is connected to
your computer over USB.
`
const MsgFixPerms = `
It looks like you are missing some USB permissions.
Please follow the instructions below depending on your platform:
Linux
-----
On certain Linux distributions (Ubuntu 14.04 for example), you will need to
explicitly add permissions to access USB devices:
1. Disconnect your device from USB
2. Run this in a terminal (requires sudo):
$ wget -S -O - https://source.android.com/source/51-android.txt | sed "s/<username>/$USER/" | sudo tee >/dev/null /etc/udev/rules.d/51-android.rules; sudo udevadm control --reload-rules
3. Re-connect your device over USB and re-run this installer
Windows
-------
Please ensure you have the Google USB Driver properly installed for your device
as described in HELP.txt (this is the main source of problems on Windows!)
`
const MsgUnlockSuccess = `
Successfully unlocked bootloader!
Your device will need to reboot before continuing. It will factory reset, so
this reboot can take a few minutes longer than usual.
To continue the installation process, please re-run this script after your
device completely boots up and you have re-enabled USB Debugging.
`
const MsgSuccess = `
Installation of base OS complete!
The first boot will take 2-3 mins as Nethunter sets up your device so please be
patient.
Rebooting into NethunterOS...were almost there! We still need to install Kali filesystem!
`
const MsgReenable = `
Please reenable ADB one more time to flash the filesystem to device.
1. Connect your device to your computer over USB
2. Enable USB Debugging on your device:
1) Go to the Settings app and scroll down to
the System section
NOTE: If you already have "Developer options"
under System then go directly to #5
2) Tap on "About phone"
3) Tap "Build number" 7 times until you get a message
that says you are now a developer
4) Go back to the main Settings app
5) Tap on "Developer options"
6) Ensure that "USB debugging" is enabled
7) You may need to restart adb if you don't get an RSA key box (adb kill-server)
8) Tap "OK" if you see a dialog asking you to allow
USB Debugging for your computer's RSA key fingerprint
`
const MsgFinished = `
All done!
Run the Nethunter app first to discovery chroot. Make sure to grant super su
permissions.
Terminal
`