(Feb-23-2019, 09:23 PM)abstraction Wrote: [ -> ]What does it do? My quick look - i'm not a programmer, just googling - I think it can gain remote access to my laptop and take snapshots(?) of the screen. It seems to be importing other stuff...
i have very little experience with the socket module. So i am
not saying it is doing this, but
only what i think its doing. It looks like its taking a full screenshot and sending it to a remote location.
But then this makes you think there is more to it than that
actions= {1:"none",2:"move_mouse_to",3:"message_box",4:"quit_server",5:"right_click",6:"left_click",}
But this script never uses that variable "actions". But that doesnt mean another script importing this module doesnt.
Everything imported is a standard library or 3rd party library. But that doesnt mean another file is not importing this one.
mss is a screenshot library
https://pypi.org/project/mss/
The rest are standard python libraries for handling connections (
sockets) and system (os, sys). Although it never uses sys module in this script.
pyautogui library controls mouse/keyboard
https://pypi.org/project/PyAutoGUI/
however this script only uses it to obtain the window size
Quote: WIDTH, HEIGHT = pyautogui.size()
(Feb-23-2019, 09:23 PM)abstraction Wrote: [ -> ]Is there a way I can tell if there are any other python-coded programs on my laptop? eg, does it require python as you mentioned or other programs to be installed? And how do I detect python if it is installed?
The simplest idea would be to just search for .py .pyc .pyd .pyo files.
Quote:.py - Regular script
.py3 - (rarely used) Python3 script. Python3 scripts usually end with ".py" not ".py3", but I have seen that a few times
.pyc - compiled script (Bytecode)
.pyo - optimized pyc file (As of Python3.5, Python will only use pyc rather than pyo and pyc)
.pyw - Python script to run in Windowed mode, without a console; executed with pythonw.exe
.pyx - Cython src to be converted to C/C++
.pyd - Python script made as a Windows DLL
.pxd - Cython script which is equivalent to a C/C++ header
.pxi - MyPy stub
.pyi - Stub file (PEP 484)
.pyz - Python script archive (PEP 441); this is a script containing compressed Python scripts (ZIP) in binary form after the standard Python script header
.pywz - Python script archive for MS-Windows (PEP 441); this is a script containing compressed Python scripts (ZIP) in binary form after the standard Python script header
I would first check to see if python is a program installed (if you have the option to uninstall it)
https://www.pcworld.com/article/2954296/...ws-10.html
Then i would check the path and see if it has python anywhere in it. Essentially you would be undoing this tutorial
https://python-forum.io/Thread-Basic-Set...-directory
But files doesnt need to have any TLD at all. You dont even have to have python installed to run them. He "could of" built it into an exe with python embedded into it. In that case python would be essentially invisible to the system. If python is not installed system wide it would be harder to find. For example
portable python options. I would just search systemwide for python or just py even. Try not to update the system until afterwords (to avoid changing files yourself). Then note the time he had the laptop. Then
search modified/created files.
Personally i would be cautious with that computer for sensitive data until you either wipe it clean or find and remove all trace of that program.