-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathHow To Install
133 lines (119 loc) · 4.67 KB
/
How To Install
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
get the image https://github.com/aluminum-ice/pwnagotchi/releases/ #search 1.6.1
burn with balena etcher
========================================================================================================================
before removing sd card, edit /boot/config.toml and change anything you need to in there
========================================================================================================================
# main.name = "pwnagotchi"
# main.lang = "en"
# main.whitelist = [
# "EXAMPLE_NETWORK",
# "ANOTHER_EXAMPLE_NETWORK",
# "fo:od:ba:be:fo:od",
# "fo:od:ba"
# ]
#
# main.plugins.grid.enabled = true
# main.plugins.grid.report = true
# main.plugins.grid.exclude = [
# "YourHomeNetworkHere"
# ]
#
# ui.display.enabled = true
# ui.display.type = "inky"
# ui.display.color = "black"
==========================================================================================================================
save and exit the file, unmount the disks
put the microsd in the raspberry pi
boot the pi with ethernet plugged in and your wlan usb adapter.
ssh to it #find the IP with IP SCANNER or something else if your 10.0.0.1 not working
user: pi
pass: raspberry
===========================================================================================================================
upgrade everything
$ sudo rm /var/lib/dpkg/status
$ sudo touch /var/lib/dpkg/status
$ sudo apt update
$ sudo apt upgrade
$ sudo raspi-config #set boot CLI automatic login pi user
$ sudo mv /etc/apt/apt.conf.d/20listchanges /etc/apt/apt.conf.d/20listchanges.bak
$ sudo apt-get install apt-listchanges
$ sudo apt-get install -y git python3-pip
$ sudo apt-get --reinstall install python3-software-properties
$ python3 -m pip install --upgrade pip
$ sudo /bin/bash
# cd /root
# cp /usr/local/lib/python3.7/dist-packages/pwnagotchi/ui/web/static/images/pwnagotchi.png /root
# apt install fbi
===========================================================================================================================
# nano /etc/pwnagotchi/config.toml
add these or edit yours to be like this
# ui.display.enabled = true
# ui.display.type = "waveshare35lcd" #for the waveshare 3.5" LCD
# ui.display.color = "black"
then edit the boot cmd line
# nano /boot/cmdline.txt
add this if not already there
add "modules-load=dwc2,g_ether"
# nano /boot/config.txt
add this if not already there
add "dtoverlay=dwc"
========================================================================================================================
then edit your rc.local
# nano /etc/rc.local
#!/bin/sh -e
#
# rc.local
#
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# value on error.
#
# In order to enable or disable this script just change the execution
# bits.
#
# By default this script does nothing.
# Print the IP address
_IP=$(hostname -I) || true
if [ "$_IP" ]; then
printf "My IP address is %s\n" "$_IP"
fi
ln -s /var/tmp/pwnagotchi/pwnagotchi.png /tmp/pwnagotchi_1.png
ln -s /var/tmp/pwnagotchi/pwnagotchi.png /tmp/pwnagotchi_2.png
ln -s /var/tmp/pwnagotchi/pwnagotchi.png /tmp/pwnagotchi_3.png
exit 0
========================================================================================================================
then edit your /etc/profile
# nano /etc/profile
add this at the end
. /home/pi/pwnagotchi.sh
========================================================================================================================
then edit your pwnagotchi configuration file
# nano /home/pi/pwnagotchi.sh
#!/bin/bash
START=true
while $START
do
readarray -t PIDS < <(exec pgrep -x fbi)
if [[ ${#PIDS[@]} -eq 0 ]]; then
echo "No fbi process was found."
sudo fbi -T 1 -a -noverbose -t 5 -cachemem 0 /tmp/pwnagotchi_1.png /tmp/pwnagotchi_2.png /tmp/pwnagotchi_3.png
elif ps -fp "${PIDS[@]}" | fgrep -F '<defunct>' >/dev/null; then
echo "Defunct fbi process found: ${PIDS[*]}"
sudo kill -s SIGTERM "${PIDS[@]}"
sudo kill -s SIGKILL "${PIDS[@]}"
fi
sleep 15
done
==========================================================================================================================
then make it executable
# chmod +x /home/pi/pwnagotchi.sh
==========================================================================================================================
# sudo systemctl enable pwnagotchi
# sudo systemctl start pwnagotchi
===========================================================================================================================
For waveshare 3.5" LCD
git clone https://github.com/waveshare/LCD-show.git
cd LCD-show/
chmod +x LCD35-show
./LCD35-show
you’re done. just reboot and you’re all set to start testing.