r/Python • • Mar 07 '17

CIA uses Python (a lot)

From the latest Vault 7 leaks from Wikileaks, we can see that CIA uses a lot of Python in its secret hacking tools.

Most notably in the Assassin, Caterpillar, MagicViking and Hornet projects.

Unfortunatelly, no files from these projects have been released yet. But if you look at the dump that was released, there are plenty of .py files, and even PIL is included.

There are even Coding Conventions: https://wikileaks.org/ciav7p1/cms/page_26607631.html

You can see more Python-related stuff here: https://search.wikileaks.org/?query=python&exact_phrase=&any_of=&exclude_words=&document_date_start=&document_date_end=&released_date_start=&released_date_end=&publication_type%5B%5D=51&new_search=False&order_by=most_relevant#results

1.1k Upvotes

220 comments sorted by

View all comments

283

u/Frog_and_Toad Mar 07 '17

I'm ok with it as long as they are following PEP8.

84

u/ikkebr Mar 07 '17

They leaked the coding standards too

57

u/synae Mar 07 '17

As far as I can tell it's just a copy of Google's python style guide.

20

u/manueslapera Mar 08 '17

didnt Google use 2 spaces instead of 4 for a long time?

9

u/DetN8 Mar 08 '17

Do they not anymore?

26

u/Fylwind Mar 08 '17

Just checked: it says 4 spaces now!

-79

u/Morris_Dungpile Mar 08 '17

What a ethralling sub thread! Does google recomment 2 or 4 spaces. I can;t wait to tell my date later tonight over dinner

2

u/Whawhawah Mar 08 '17

What if she prefers tabs...?

1

u/Morris_Dungpile Mar 09 '17

I was married to a woman for 18 years that preferred tabs to spaces.. it just didn't work out