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

Show parent comments

183

u/JohnLocksTheKey Mar 07 '17 edited Mar 08 '17

ImportError: No module named waterboarding.

# damn it! I always forget...

from Warcrimes import waterboarding

...

69

u/SteveDougson Mar 08 '17

from WarCrimes import waterboarding as enhanced_interrogation

21

u/stevarino Mar 07 '17

Unless you're using Python 3, in which case you need to specify the war_crimes library.

9

u/avball Mar 08 '17

PEP-8 would like a space after your hash.

6

u/JohnLocksTheKey Mar 08 '17 edited Mar 08 '17

That was actually bugging me all day!! Fine, I'll correct it...

EDIT: I was hoping no one would notice

1

u/asdfkjasdhkasd requests, bs4, flask Mar 08 '17

pip install waterboarding

-19

u/MrEzekial Mar 07 '17

Warcrimes?

35

u/brtt3000 Mar 07 '17

from denial import Warcrimes

2

u/SchwarzerKaffee Mar 08 '17

from Iraq import wmd

6

u/_don_pablito Mar 08 '17

ImportError: No module named wmd

13

u/buttery_shame_cave Mar 07 '17

despite sean hannity's proclamations, waterboarding is indeed torture, which is pretty explicitly forbidden.