P
P
Peter2018-04-13 16:37:15
Python
Peter, 2018-04-13 16:37:15

How to check that a python script is not sending information to the outside?

I ordered the program, launched it, it performs the stated actions.
How to make sure that it does not leak any data outside?
Well, how can she forbid it without being convinced?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
R
Reversaidx, 2018-04-13
@Reversaidx

You can, run it as a special user (new), you can block it with iptables.
iptables -I OUTPUT -m owner --uid-owner user -j DROP

1
101-s, 2018-04-14
@101-s

if the script is small, then you can try to figure it out, find all the commands or functions, such as

  • urllib.request.urlopen(url_0).read().decode("utf-8")
    after these commands, append the url output to a file in the form of logs, or it is easier to output to the console - print (url)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question