{"id":1645,"date":"2022-09-27T14:30:48","date_gmt":"2022-09-27T14:30:48","guid":{"rendered":"https:\/\/dcnigma.eu5.org\/?p=1645"},"modified":"2022-10-06T17:18:22","modified_gmt":"2022-10-06T17:18:22","slug":"made-a-pwnagotchi","status":"publish","type":"post","link":"https:\/\/dcnigma.eu5.org\/?p=1645","title":{"rendered":"Made a Pwnagotchi >>  M1n1N16m4"},"content":{"rendered":"\n<h1>(\u2310\u25a0_\u25a0)<\/h1>\n\n\n\n<h6 class=\"has-text-align-left\" id=\"pwnagotchi-deep-reinforcement-learning-for-wifi-pwning\">PWNAGOTCHI: DEEP REINFORCEMENT LEARNING FOR WIFI PWNING!<br \/>Source: https:\/\/pwnagotchi.ai\/<\/h6>\n\n\n\n<p>Here are some pictures of my build\/design of the case:<\/p>\n\n\n\n<figure class=\"wp-container-2 wp-block-gallery-1 wp-block-gallery has-nested-images columns-default is-cropped\">\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" width=\"766\" height=\"532\" data-id=\"1650\"  src=\"https:\/\/dcnigma.eu5.org\/wp-content\/uploads\/2022\/09\/Screenshot-2022-09-25-at-21.21.28.png\" alt=\"\" class=\"wp-image-1650\" srcset=\"https:\/\/dcnigma.eu5.org\/wp-content\/uploads\/2022\/09\/Screenshot-2022-09-25-at-21.21.28.png 766w, https:\/\/dcnigma.eu5.org\/wp-content\/uploads\/2022\/09\/Screenshot-2022-09-25-at-21.21.28-300x208.png 300w, https:\/\/dcnigma.eu5.org\/wp-content\/uploads\/2022\/09\/Screenshot-2022-09-25-at-21.21.28-331x230.png 331w\" sizes=\"(max-width: 766px) 100vw, 766px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" width=\"811\" height=\"534\" data-id=\"1651\"  src=\"https:\/\/dcnigma.eu5.org\/wp-content\/uploads\/2022\/09\/Screenshot-2022-09-25-at-21.18.17.png\" alt=\"\" class=\"wp-image-1651\" srcset=\"https:\/\/dcnigma.eu5.org\/wp-content\/uploads\/2022\/09\/Screenshot-2022-09-25-at-21.18.17.png 811w, https:\/\/dcnigma.eu5.org\/wp-content\/uploads\/2022\/09\/Screenshot-2022-09-25-at-21.18.17-300x198.png 300w, https:\/\/dcnigma.eu5.org\/wp-content\/uploads\/2022\/09\/Screenshot-2022-09-25-at-21.18.17-768x506.png 768w, https:\/\/dcnigma.eu5.org\/wp-content\/uploads\/2022\/09\/Screenshot-2022-09-25-at-21.18.17-349x230.png 349w\" sizes=\"(max-width: 811px) 100vw, 811px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" width=\"865\" height=\"563\" data-id=\"1649\"  src=\"https:\/\/dcnigma.eu5.org\/wp-content\/uploads\/2022\/09\/Screenshot-2022-09-25-at-21.18.07.png\" alt=\"\" class=\"wp-image-1649\" srcset=\"https:\/\/dcnigma.eu5.org\/wp-content\/uploads\/2022\/09\/Screenshot-2022-09-25-at-21.18.07.png 865w, https:\/\/dcnigma.eu5.org\/wp-content\/uploads\/2022\/09\/Screenshot-2022-09-25-at-21.18.07-300x195.png 300w, https:\/\/dcnigma.eu5.org\/wp-content\/uploads\/2022\/09\/Screenshot-2022-09-25-at-21.18.07-768x500.png 768w, https:\/\/dcnigma.eu5.org\/wp-content\/uploads\/2022\/09\/Screenshot-2022-09-25-at-21.18.07-353x230.png 353w\" sizes=\"(max-width: 865px) 100vw, 865px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" width=\"2041\" height=\"2560\" data-id=\"1647\"  src=\"https:\/\/dcnigma.eu5.org\/wp-content\/uploads\/2022\/09\/IMG_1348-2-scaled.jpg\" alt=\"\" class=\"wp-image-1647\" srcset=\"https:\/\/dcnigma.eu5.org\/wp-content\/uploads\/2022\/09\/IMG_1348-2-scaled.jpg 2041w, https:\/\/dcnigma.eu5.org\/wp-content\/uploads\/2022\/09\/IMG_1348-2-239x300.jpg 239w, https:\/\/dcnigma.eu5.org\/wp-content\/uploads\/2022\/09\/IMG_1348-2-816x1024.jpg 816w, https:\/\/dcnigma.eu5.org\/wp-content\/uploads\/2022\/09\/IMG_1348-2-768x963.jpg 768w, https:\/\/dcnigma.eu5.org\/wp-content\/uploads\/2022\/09\/IMG_1348-2-1225x1536.jpg 1225w, https:\/\/dcnigma.eu5.org\/wp-content\/uploads\/2022\/09\/IMG_1348-2-1633x2048.jpg 1633w, https:\/\/dcnigma.eu5.org\/wp-content\/uploads\/2022\/09\/IMG_1348-2-183x230.jpg 183w\" sizes=\"(max-width: 2041px) 100vw, 2041px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" width=\"1024\" height=\"768\" data-id=\"1648\"  src=\"https:\/\/dcnigma.eu5.org\/wp-content\/uploads\/2022\/09\/IMG_1350-1024x768.jpg\" alt=\"\" class=\"wp-image-1648\" srcset=\"https:\/\/dcnigma.eu5.org\/wp-content\/uploads\/2022\/09\/IMG_1350-1024x768.jpg 1024w, https:\/\/dcnigma.eu5.org\/wp-content\/uploads\/2022\/09\/IMG_1350-300x225.jpg 300w, https:\/\/dcnigma.eu5.org\/wp-content\/uploads\/2022\/09\/IMG_1350-768x576.jpg 768w, https:\/\/dcnigma.eu5.org\/wp-content\/uploads\/2022\/09\/IMG_1350-1536x1153.jpg 1536w, https:\/\/dcnigma.eu5.org\/wp-content\/uploads\/2022\/09\/IMG_1350-2048x1537.jpg 2048w, https:\/\/dcnigma.eu5.org\/wp-content\/uploads\/2022\/09\/IMG_1350-306x230.jpg 306w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n<\/figure>\n\n\n\n<p>The Case is not perfect, but works \ud83d\ude42 need some sanding to fit the ports.<br \/>STL files will be uploaded to <a rel=\"noreferrer noopener\" href=\"https:\/\/www.thingiverse.com\/\" target=\"_blank\">Thingiverse<\/a><\/p>\n\n\n\n<p>Specs: <\/p>\n\n\n\n<ul><li>Raspberry Pi 3b+<\/li><li>WaveShare 2.7 inch e-Paper HAT<\/li><li>RPI UPSpack v3<\/li><li>Sweex WiFi dongle (2.4ghz only (very old but works perfect on raspberry))<\/li><li>Real-time clock ds3231<\/li><\/ul>\n\n\n\n<p class=\"has-vivid-green-cyan-color has-text-color\"><br \/>TODO: wire UART from ups to raspberry and write a plug-in&nbsp;<\/p>\n\n\n\n<h2>Backup and Restore<\/h2>\n\n\n\n<p><strong>Backup your SD card using DD (osx)<br \/><\/strong><em><code>sudo dd bs=4m if=\/dev\/disk* of=pwnagotchi.img<\/code><\/em><br \/><br \/><strong>Restore SD after you F*ck Up<br \/><\/strong><code>sudo dd if=\/Path\/To\/pwnagotci\/pwnagotchi.img of=\/dev\/disk* bs=4m<br \/><\/code>Or use balenaEtcher or any other Img writer<\/p>\n\n\n\n<h2>Buttons!<\/h2>\n\n\n\n<p>I wanted to make use of the buttons so I made a very simple python script.<br \/>But I never learned python so its a bit of hack and slach \ud83d\ude00 If it works it works!<\/p>\n\n\n\n<p>Also Install gpiozero to make it work:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>pip3 install gpiozero<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code>import os\nimport gpiozero  # We are using GPIO pins\nimport time\n \nbutton1 = gpiozero.Button(19) # GPIO19 connects to button \nbutton2 = gpiozero.Button(13) # GPIO13 connects to button \nbutton3 = gpiozero.Button(6) # GPIO6 connects to button \nbutton4 = gpiozero.Button(5) # GPIO5 connects to button \n \nwhile True:\n  if button1.is_pressed:\n    print(\"Button 1 is pressed!\")\n#    os.system(\"shutdown\")\n  else:\n    print(\"\")\n  if button2.is_pressed:\n    print(\"Button 2 is pressed!\")\n    os.system(\"touch \/root\/.pwnagotchi-auto\")\n    time.sleep(1.1)\n    os.system(\"systemctl restart pwnagotchi\")\n    time.sleep(5.5)\n  else:\n    print(\"\")\n  if button3.is_pressed:\n    print(\"Button 3 is pressed!\")\n    os.system(\"touch \/root\/.pwnagotchi-manu\")\n    time.sleep(1.1)\n    os.system(\"systemctl restart pwnagotchi\")\n    time.sleep(5.5)\n  else:\n    print(\"\")\n  if button4.is_pressed:\n    print(\"Button 4 is pressed!\")\n    os.system(\"reboot\")\n  else:\n    print(\"\")\n<\/code><\/pre>\n\n\n\n<p>I made it boot from <strong>rc.local<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo nano \/etc\/rc.local<\/code><\/pre>\n\n\n\n<p>Added the location:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo python3 \/home\/pi\/4_gpio_buttons.py &amp;<\/code><\/pre>\n\n\n\n<p>But no I will use GPIO Plugin  just found out how that works \ud83d\ude00<\/p>\n\n\n\n<h2>Extra Plugins I used:<\/h2>\n\n\n\n<ul><li><a rel=\"noreferrer noopener\" href=\"https:\/\/github.com\/flamebarke\/DiscoHash\" target=\"_blank\">DiscoHash<\/a><\/li><li>Aircrack-ng<\/li><li>Clock<\/li><li><a rel=\"noreferrer noopener\" href=\"https:\/\/github.com\/hannadiamond\/pwnagotchi-plugins\/blob\/main\/plugins\/age.py\" target=\"_blank\">Age<\/a><\/li><li><a rel=\"noreferrer noopener\" href=\"https:\/\/github.com\/GaelicThunder\/Experience-Plugin-Pwnagotchi\" target=\"_blank\">Exp<\/a> <\/li><li><a rel=\"noreferrer noopener\" href=\"https:\/\/github.com\/evilsocket\/pwnagotchi-plugins-contrib\/issues\/30\" target=\"_blank\">Auto_Backup<\/a><\/li><li>GPIO Plugin<\/li><li><a rel=\"noreferrer noopener\" href=\"https:\/\/gitlab.com\/sn0wflake\/pwnagotchi-powerutils-plugin\" target=\"_blank\">Pwnagotchi Powerutils Plugin<\/a><\/li><\/ul>\n\n\n\n<p><br \/>Some Extra info about the plugins:<br \/>Plugin configs:<\/p>\n\n\n\n<blockquote class=\"wp-block-quote\"><p><strong>aircrackonly plugin<\/strong><\/p><\/blockquote>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo pwnagotchi plugins install aircrackonly\nsudo nano \/etc\/pwnagotchi\/config.toml\n# add the following lines to config.toml:\nmain.plugins.aircrackonly.enabled = true\nmain.plugins.aircrackonly.face = \"(&gt;.&lt;)\"<\/code><\/pre>\n\n\n\n<blockquote class=\"wp-block-quote\"><p><strong>AGE plugin<\/strong><\/p><\/blockquote>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo nano \/etc\/pwnagotchi\/config.toml\n# add the following lines to config.toml:\nmain.plugins.age.enabled = true\nmain.plugins.age.age_x_coord = 0\nmain.plugins.age.age_y_coord = 135\nmain.plugins.age.str_x_coord = 67\nmain.plugins.age.str_y_coord = 135<\/code><\/pre>\n\n\n\n<blockquote class=\"wp-block-quote\"><p><strong>EXP plugin<\/strong><\/p><\/blockquote>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo nano \/etc\/pwnagotchi\/config.toml\n# add the following lines to config.toml:\nmain.plugins.exp.enabled = true\nmain.plugins.exp.lvl_x_coord = 0\nmain.plugins.exp.lvl_y_coord = 145\nmain.plugins.exp.exp_x_coord = 0\nmain.plugins.exp.exp_y_coord = 145<\/code><\/pre>\n\n\n\n<blockquote class=\"wp-block-quote\"><p><strong>Clock Plugin<\/strong><\/p><\/blockquote>\n\n\n\n<p>I changed the Waveshare to my version: <strong>is_waveshare27inch<\/strong> and changed te pos: to (200, 80)<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>        if ui.<strong>is_waveshare27inch<\/strong>():\n            pos = (135, 135) if memenable else (<strong>200, 80<\/strong>)\n            ui.add_element('clock', LabeledValue(color=BLACK, label='', value='-\/-\/-\\n-:--',\n                                                 position=pos,\n                                                 label_font=fonts.Small, text_font=fonts.Small))<\/code><\/pre>\n\n\n\n<blockquote class=\"wp-block-quote\"><p><strong>Auto_Backup Plugin<\/strong><\/p><\/blockquote>\n\n\n\n<p>Here is the UPDATED code you need to add to \/root\/etc\/pwnagotchi\/config.toml to make the auto_backup plugin work:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>main.plugins.auto_backup.enabled = true\nmain.plugins.auto_backup.interval = 1 # Every X Days\nmain.plugins.auto_backup.max_tries = 10\nmain.plugins.auto_backup.files = &#91;\n\"\/root\/brain.nn\",\n\"\/root\/brain.json\",\n\"\/root\/.api-report.json\",\n\"\/root\/handshakes\/\",\n\"\/root\/peers\/\",\n\"\/etc\/pwnagotchi\/\",\n\"\/var\/log\/pwnagotchi.log\"]\nmain.plugins.auto_backup.commands = &#91; \"tar czf \/root\/pwnagotchi-backup$(date +%d-%m-%Y).tar.gz {files}\"]<\/code><\/pre>\n\n\n\n<blockquote class=\"wp-block-quote\"><p><strong>gpio_buttons Plugin<\/strong><\/p><\/blockquote>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" width=\"300\" height=\"400\" src=\"https:\/\/dcnigma.eu5.org\/wp-content\/uploads\/2022\/09\/altsbd45hhbgg7ms3o1p.jpg\" alt=\"\" class=\"wp-image-1702\" srcset=\"https:\/\/dcnigma.eu5.org\/wp-content\/uploads\/2022\/09\/altsbd45hhbgg7ms3o1p.jpg 300w, https:\/\/dcnigma.eu5.org\/wp-content\/uploads\/2022\/09\/altsbd45hhbgg7ms3o1p-225x300.jpg 225w, https:\/\/dcnigma.eu5.org\/wp-content\/uploads\/2022\/09\/altsbd45hhbgg7ms3o1p-173x230.jpg 173w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/figure>\n\n\n\n<pre class=\"wp-block-code\"><code>main.plugins.gpio_buttons.enabled = true\nmain.plugins.gpio_buttons.gpios.5 = \"python \/home\/pi\/powerutilscmd.py shutdown\"\nmain.plugins.gpio_buttons.gpios.6 = \"python \/home\/pi\/powerutilscmd.py shutdown\"\nmain.plugins.gpio_buttons.gpios.13 = \"python \/home\/pi\/powerutilscmd.py shutdown\"\nmain.plugins.gpio_buttons.gpios.19 = \"python \/home\/pi\/pwnmenucmd.py close\"<\/code><\/pre>\n\n\n\n<h2 class=\"has-vivid-red-color has-text-color\">Plugins not working (for me):<\/h2>\n\n\n\n<ul><li>Christmas plugin. &gt;&gt; Uses old config.yml file.<br \/>(tried fixing it but after I made quick and dirty &#8220;fix&#8221; Wifi stopt scanning, very strange) <\/li><li><a rel=\"noreferrer noopener\" href=\"https:\/\/gitlab.com\/sn0wflake\/pwnagotchi-pwnmenu-plugin\" target=\"_blank\">Pwnagotchi Pwnmenu Plugin<\/a>&nbsp;get error:<\/li><\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>&#91;ERROR] Exception on \/plugins\/toggle &#91;POST]  \nFile \"\/usr\/local\/share\/pwnagotchi\/custom-plugins\/pwnmenu.py\", line 24, in &lt;module&gt;\n    menucommands.append(linelist&#91;1].replace(\"\\n\",\"\"))<\/code><\/pre>\n\n\n\n<ul><li><\/li><\/ul>\n\n\n\n<p>Here are some guides I found\/used <\/p>\n\n\n\n<ul><li><a href=\"https:\/\/pwnagotchi.ai\/installation\/\" target=\"_blank\" rel=\"noreferrer noopener\">pwnagotchi.ai<\/a><\/li><li><a href=\"https:\/\/pastebin.com\/bTkXiZ52\" target=\"_blank\" rel=\"noreferrer noopener\">pastebin.com<\/a><\/li><\/ul>\n\n\n\n<p>Successful cracked 2 Wifi Passwords<br \/>Results of <a rel=\"noreferrer noopener\" href=\"https:\/\/www.onlinehashcrack.com\/\" target=\"_blank\">O<\/a><a rel=\"noreferrer noopener\" href=\"https:\/\/www.onlinehashcrack.com\/\" target=\"_blank\">nline Hash Crack<\/a><\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" width=\"952\" height=\"95\" src=\"https:\/\/dcnigma.eu5.org\/wp-content\/uploads\/2022\/09\/Screenshot-2022-09-27-at-18.22.24.png\" alt=\"\" class=\"wp-image-1689\" srcset=\"https:\/\/dcnigma.eu5.org\/wp-content\/uploads\/2022\/09\/Screenshot-2022-09-27-at-18.22.24.png 952w, https:\/\/dcnigma.eu5.org\/wp-content\/uploads\/2022\/09\/Screenshot-2022-09-27-at-18.22.24-300x30.png 300w, https:\/\/dcnigma.eu5.org\/wp-content\/uploads\/2022\/09\/Screenshot-2022-09-27-at-18.22.24-768x77.png 768w, https:\/\/dcnigma.eu5.org\/wp-content\/uploads\/2022\/09\/Screenshot-2022-09-27-at-18.22.24-540x54.png 540w\" sizes=\"(max-width: 952px) 100vw, 952px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" width=\"952\" height=\"93\" src=\"https:\/\/dcnigma.eu5.org\/wp-content\/uploads\/2022\/09\/Screenshot-2022-09-27-at-18.22.14.png\" alt=\"\" class=\"wp-image-1690\" srcset=\"https:\/\/dcnigma.eu5.org\/wp-content\/uploads\/2022\/09\/Screenshot-2022-09-27-at-18.22.14.png 952w, https:\/\/dcnigma.eu5.org\/wp-content\/uploads\/2022\/09\/Screenshot-2022-09-27-at-18.22.14-300x29.png 300w, https:\/\/dcnigma.eu5.org\/wp-content\/uploads\/2022\/09\/Screenshot-2022-09-27-at-18.22.14-768x75.png 768w, https:\/\/dcnigma.eu5.org\/wp-content\/uploads\/2022\/09\/Screenshot-2022-09-27-at-18.22.14-540x53.png 540w\" sizes=\"(max-width: 952px) 100vw, 952px\" \/><\/figure>\n\n\n\n<p>You can contact&nbsp; ( \u2686_\u2686) <br \/><strong>M1N1N16M4<\/strong>&nbsp;via&nbsp;<a href=\"https:\/\/pwnagotchi.ai\/usage\/#pwnmail\">PwnMAIL<\/a>&nbsp;at:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>42fc6207fb1302f9d407042099aacb4c6c492794334e01c1613c0db5ed225f5b<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>(\u2310\u25a0_\u25a0) PWNAGOTCHI: DEEP REINFORCEMENT LEARNING FOR WIFI PWNING!Source: https:\/\/pwnagotchi.ai\/ Here are some pictures of my build\/design of the case: The Case is not perfect, but works \ud83d\ude42 need some sanding to fit the ports.STL files will be uploaded to Thingiverse Specs: Raspberry Pi 3b+ WaveShare 2.7 inch e-Paper HAT RPI UPSpack v3 Sweex WiFi dongle [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":1646,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[],"_links":{"self":[{"href":"https:\/\/dcnigma.eu5.org\/index.php?rest_route=\/wp\/v2\/posts\/1645"}],"collection":[{"href":"https:\/\/dcnigma.eu5.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/dcnigma.eu5.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/dcnigma.eu5.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/dcnigma.eu5.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1645"}],"version-history":[{"count":39,"href":"https:\/\/dcnigma.eu5.org\/index.php?rest_route=\/wp\/v2\/posts\/1645\/revisions"}],"predecessor-version":[{"id":1708,"href":"https:\/\/dcnigma.eu5.org\/index.php?rest_route=\/wp\/v2\/posts\/1645\/revisions\/1708"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/dcnigma.eu5.org\/index.php?rest_route=\/wp\/v2\/media\/1646"}],"wp:attachment":[{"href":"https:\/\/dcnigma.eu5.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1645"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/dcnigma.eu5.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1645"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/dcnigma.eu5.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1645"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}