Send SMS in python from android phone. (Python) - python

I want to run a script in python that sends a text message to a selected number from my android phone. Is this even possible with python?

Since the script has to send a message from your Android phone, I assume you want to run the script on your phone as well. This blog post suggests that it is (or was) possible, using the Android Scripting Environment.

Related

How can to get online data sent by the server to a Windows application in Python for processing?

I have a Windows program that connects to a server by Mpls method on a special personal system and receives data and sends the answer.
I wrote a Python program that processes this data and shows the appropriate answer.
Now I want this Python program to receive the data received by the Windows program and send it to the server after processing through the Windows program.
My problem is how to receive and send this data to server or connect this my own Python program to Windows program?

How to capture the traffic of an Android device in Python?

I want to capture traffic of a particular Android device using a Python script. I am doing the same thing for a laptop using "pyshark" that monitors the real-time traffic of laptop for a specific time and then creates a pcap file for it. I want to do the same thing for my Android device. I have tried Tcpdump, scapy and packetsniffer but nothing helped me in capturing the traffic of my Android device.
Ideally I want an analyzer (a python script) that should run in such a fashion that when it is turned on, it continuously monitors the traffic of my Android device. I will have to make something similar to a proxy server but i am stucked how to do it.
pyshark usage for my laptop
Does your program run with the necessary rights at all? Under Linux and Windows a program needs extended rights to open raw sockets, which are necessary for sniffing. Under Windows there must be some group policy XY setting (I don't know Windows), under Linux the program needs root rights.
I don't know about such a policy too. But in the scenario displayed in the picture attached, there is no need for socket programming. I am also okay with passive sniffing.

Accessing files on Android phone from Python on a Desktop

When I connect my android phone to a (Windows) desktop via a USB cable, I would like to automate downloading photos and other files from the phone to the desktop by using a script, preferably Python, but C# would do.
Is there a ready package available for this task? If not, what is the way to access the file system on the phone? How to get to the phone data using Windows system API?
ADB stands for Android Debug Bridge; it is the official command line tool and provides shell terminal access to Android phones that has allowed developer debug access.
There seems to be 3rd-party python API for this.
https://github.com/google/python-adb

Running python scripts on apache server and get the output as http response

I have a django website hosted on raspberry pi using apache server.
Is there any way I can execute python scripts on the pi server and get the output of the scripts in the website?
I have link to all the python files on the website but when I click them instead of executing the raw code opens.
Aside that this is a very risky thing to do, you can do this in different ways - see these answers, where the second one also shows how to fetch the output:
How can I make one python file run another?
Running shell command from Python and capturing the output

Python(Linux) send notification to Pc(Windows)

I've been working on a program in Python, that allows people to interact with the machine via Whatsapp. Now I want to be able to see whenever people send a message in the form of a small pop-up on my windows pc.
What I'm looking for now, is a way to send a message from my Linux machine to my Windows pc. For example I would like to have a line of code in my script, that when ran, the windows pc would receive a notification. I'm sure there are programs out there, but I couldn't find it after an hour of searching.
TL DR; Send a message via a Python script to a windows machine as a notification (in the bottom right)
I would love to hear your ideas!
Rick

Categories