{"id":123,"date":"2016-08-24T09:50:43","date_gmt":"2016-08-24T06:50:43","guid":{"rendered":"http:\/\/192.168.10.2\/?p=123"},"modified":"2023-05-11T21:44:31","modified_gmt":"2023-05-11T18:44:31","slug":"wireless-pentest-in-my-pocket","status":"publish","type":"post","link":"http:\/\/192.168.10.2\/wireless-pentest-in-my-pocket\/","title":{"rendered":"Wireless pentest in my pocket"},"content":{"rendered":"

Some may know that I really enjoy working on wireless security. However, pentesting tools for wireless systems usually are not so mobile as it should be.<\/p>\n

Before going into details I would like to remind that, although WiFi (802.11) works on ISM band and it is perfectly legal to use these frequency under your country’s regulations, it is not so ethic to perform any penetration test or intrusion to anyone without their permission.<\/p>\n

In the past I was using the below Raspberry Pi2 with an attached WiFi dongle in the same case. Also, in order to power it up, I was using a 7000MAh  Sony power bank. The result was something you do not want to carry on your pocket. Yet, with a single WiFi dongle, it was not possible to work on 3 non-overlapping WiFi channels (1,6, and 11) without hoping. This was especially a problem when the startup script was set to a specific channel while you want to work on another. Whenever this happens, I had to pull out the usb memory out from Raspberry Pi and plug it into my phone (OTG) and edit the startup script.<\/p>\n

\"Raspberry<\/a><\/p>\n

Then one day Raspberry Pi Zero came out. It was both thin and had low power consumption. Therefore, I decided to use it for this project.<\/p>\n

The idea was simple. Get a Pi Zero, add a usb hub, add 3 nano wifi dongles and use old cell phone battery, then put all into a wallet.<\/p>\n

From one of the local hardware store, I bought a USB hub and 3 Zyxel WiFi dongle. To make the device as thinner as possible I removed the plastic cover on them and solder.<\/p>\n

\"Zyxel<\/a><\/p>\n

I don’t know why but for some reason Pi Zero is some what picky about the USB hub. The first one I tried didn’t work on Pi zero although it was working all other versions of Raspberry Pi. Anyway, I tried another one and it did work.<\/p>\n

\"This<\/a>
This hub didn’t worked with Pi zero<\/figcaption><\/figure>\n

 <\/p>\n

\"WiFi<\/a>
I know the soldering is not so perfect. However, I got tired from the previous hub.<\/figcaption><\/figure>\n

Next, I removed the charger circuit of a dead lithium battery and connect it to another battery(thin) from an old phone.<\/p>\n

Finally, I installed Kali into Pi Zero and set all parts into a wallet and wrote a basic bash script to get wireless adapters to go monitor mode for all of the 3 non-overlapping channels.<\/p>\n

\"Each<\/a>
Each component was put into different parts of the wallet<\/figcaption><\/figure>\n
\"The<\/a>
The charger and the battery<\/figcaption><\/figure>\n

 <\/p>\n

\"The<\/a>
The Pi Zero<\/figcaption><\/figure>\n

 <\/p>\n

You will notice that the lithium battery pack is very small. It is actually 900mAh. However, Pi Zero does not require too much power and there are many thin batteries out in the market if you need more time. On the other hand WiFi dongles were the real problem. The main chip on them (Ralink RT3070) actually works with 3.3Volts. In order to maintain 3.3V from 5 Volt USB power, Zyxel used linear voltage regulator instead of switching ones. As you may guess this cause heat and therefore energy consumption problems. I have a strong feeling that I will replace them soon.<\/p>\n

In any way, I am satisfied with the final solution.  Now it is possible to put the wallet into my pocket and carry it anywhere I want.<\/p>\n

 <\/p>\n

\"Final<\/a><\/p>\n

 <\/p>\n","protected":false},"excerpt":{"rendered":"Some may know that I really enjoy working on wireless security. However, pentesting tools for wireless systems usually are not so mobile as it should be.\n","protected":false},"author":3,"featured_media":145,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[25,24,26,23],"_links":{"self":[{"href":"http:\/\/192.168.10.2\/wp-json\/wp\/v2\/posts\/123"}],"collection":[{"href":"http:\/\/192.168.10.2\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/192.168.10.2\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/192.168.10.2\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"http:\/\/192.168.10.2\/wp-json\/wp\/v2\/comments?post=123"}],"version-history":[{"count":16,"href":"http:\/\/192.168.10.2\/wp-json\/wp\/v2\/posts\/123\/revisions"}],"predecessor-version":[{"id":224,"href":"http:\/\/192.168.10.2\/wp-json\/wp\/v2\/posts\/123\/revisions\/224"}],"wp:featuredmedia":[{"embeddable":true,"href":"http:\/\/192.168.10.2\/wp-json\/wp\/v2\/media\/145"}],"wp:attachment":[{"href":"http:\/\/192.168.10.2\/wp-json\/wp\/v2\/media?parent=123"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/192.168.10.2\/wp-json\/wp\/v2\/categories?post=123"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/192.168.10.2\/wp-json\/wp\/v2\/tags?post=123"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}