AdSense

Thursday, March 8, 2018

Pentest via cellular network (III): SMS messages with Hologram Python SDK


PENTEST VIA CELLULAR NETWORK (III): SMS MESSAGES WITH HOLOGRAM PYTHON SDK

- Layout for this exercise (Smartphone and Raspberry Pi / SIM card / Modem):





- The goal of this exercise is to send/receive SMS messages between a Hologram modem (installed at a Raspberry Pi device) and a smartphone via the celullar network, using the Hologram Python SDK library.


- First of all, let's create an external data script where the device key and the phone number are stored:







- Now, importing libraries from the Hologram Python SDK, this Python script sends an SMS  message and prints the successful result:







- Running SendTEST.py:




- In similar way, this Python script puts the modem into receiving mode and prints the message once it has been received:






- Running ReceiveTEST.py (in the image I have removed the sender phone number by privacy reasons):                                                                                                                                                                                











- The smartphone screen displays the SMS messages exchanged with the modem: