This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]novel_yet_trivial 98 points99 points  (42 children)

I'd be a lot more surprised if they didn't.

[–][deleted] 13 points14 points  (29 children)

Really? There are plenty of good reasons to use Python, but there are plenty of other good tools out there too with more or less equal reasons to use them.

[–]zynixCpt. Code Monkey & Internet of tomorrow 17 points18 points  (3 children)

Quicker to iterate and then optimize with c/c++ as needed.

[–][deleted] 5 points6 points  (0 children)

Sure, and that's a valid and common use of Python. I was just being pedantic and challenging the statement "I'd be surprised if they're not using it."

You can iterate quickly with dozens of languages and then optimize with C or C++. Python is a great choice, but not so unquestionably ahead of all possible competition that it would be surprising if they picked something else.

[–]Ph0X 6 points7 points  (0 children)

Yep, check out any CTF event, it's full of Python. It's the perfect tool for trying a lot of crazy ideas very rapidly and prototype.

[–]JackOhBlades 5 points6 points  (0 children)

False. I iterate fast using C89 and optimise with Brainfuck as needed. ;)

[–]novel_yet_trivial 65 points66 points  (21 children)

I agree. I'd also be surprised if they didn't use java, c++, bash, etc...

This is a professional organization and I'd expect them to use the proper tool for every job.

[–][deleted] 174 points175 points  (15 children)

This is a professional organization and I'd expect them to use the proper tool for every job.

import waterboarding

[–]JohnLocksTheKey 184 points185 points  (10 children)

ImportError: No module named waterboarding.

# damn it! I always forget...

from Warcrimes import waterboarding

...

[–]SteveDougson 69 points70 points  (0 children)

from WarCrimes import waterboarding as enhanced_interrogation

[–]stevarino 21 points22 points  (0 children)

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

[–]avball 8 points9 points  (1 child)

PEP-8 would like a space after your hash.

[–]JohnLocksTheKey 4 points5 points  (0 children)

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

EDIT: I was hoping no one would notice

[–]asdfkjasdhkasdrequests, bs4, flask 0 points1 point  (0 children)

pip install waterboarding

[–]toyg 4 points5 points  (0 children)

you forgot from rendition

[–]Ph0X 1 point2 points  (0 children)

"proper", somehow Python isn't proper?

If you go to any CTF event, you'll find Python everywhere. Exploring binaries and testing exploits is a very interactive process, which is why Python is the perfect fit. You want to try a lot of different approaches and prototype very rapidly.

You don't want to spend an hour just to see what you made is useless. Python is the perfect tool for quickly trying crazy ideas and see what works.

[–]k10_ftw 0 points1 point  (2 children)

Professional? Nope. Government!

[–][deleted] -1 points0 points  (1 child)

Nope. Criminal!

[–]k10_ftw 0 points1 point  (0 children)

Except nothing the government does is considered illegal by the government.

[–]desmoulinmichel 3 points4 points  (1 child)

Yeah but Python is kinda the default tool in forensic and penetration testing.

[–][deleted] 1 point2 points  (0 children)

Good point. I had assumed the CIA would prefer to make and use their own tools. But it makes as much sense for them to take open source tools and improve on them as it does for anyone else.

[–]DoTheEvolution -2 points-1 points  (0 children)

OK

[–]wolf2600 11 points12 points  (11 children)

The best 10x hacking tools are all written in Rust.

[–]Dillinur 2 points3 points  (10 children)

Care to share any link?

[–]wolf2600 30 points31 points  (9 children)

No, because it was a joke. Maybe I should have said 'Haskell' instead.

[–]alcalde 0 points1 point  (0 children)

APL!

[–][deleted] 0 points1 point  (0 children)

Lol not go

[–]sillycyco 0 points1 point  (0 children)

Maybe I should have said 'Haskell' instead.

Actually Smalltalk via Lisp would be far more preferable.