Skip to content

installing

otter edited this page Feb 2, 2023 · 14 revisions

installing is very easy (i think)
dont use this until the project has been renamed to pwnhyve
artemis = pwnhyve

kernel stuff

first, update your kernel:
sudo BRANCH=next rpi-update
reboot the pi, if it doesnt auto reboot

setup dwc2 and dtoverlay, for the usb hid gadget

echo \"dtoverlay=dwc2\" | sudo tee -a /boot/config.txt
echo \"dwc2\" | sudo tee -a /etc/modules

reboot the pi again

installing

git clone the repository:
git clone https://github.com/nototter/artemis && cd artemis

setup usb and ssh (ssh is subject to change)

sudo cp ./core/installation/pwnhyveusb /bin/ && sudo chmod +x /bin/pwnhyveusb
sudo cp ./core/installation/pwnhyvessh /bin/ && sudo chmod +x /bin/pwnhyvessh

usb module run on boot

theres different ways of doing this (cronjobs, systemctl) but i just used rc.local since it's easy and im lazy

add /bin/pwnhyveusb at the end of the file, but before the exit 0 line
for example:

# stuff n code n stuff
/bin/pwnhyveusb
exit 0

making pwnhyve to start on boot

i used systemctl since i can just do systemctl restart pwnhyve and it auto restarts you can use rc.local but it wont work as well

make a file in /bin/ called pwnhyveStart

make sure you're still in pwnhyve's folder

cp ./core/installation/startup.sh /bin/
mv /bin/startup.sh /bin/pwnhyveStart
pwd # save the output of this command, in your memory or ctrl+c
chmod +x /bin/pwnhyveStart
nano /bin/pwnhyveStart

replace all %cwd% in the file with your pwd value eventually ill make it use variables, maybe

now for the final part

cp ./core/installation/pwnhyve.service /etc/systemd/system/
systemctl enable pwnhyve.service

now reboot your pi or do systemctl start pwnhyve.service

congradulations on ur new pi with pwnhyve installed
report any issues on the github, or any suggestions

Clone this wiki locally