r/Python • u/ruskeeblue • Mar 15 '12
Python code to exploit Windows RDP - Yes , its out in the wild!
http://pastebin.com/fFWkezQH18
u/maryjayjay Mar 15 '12
Saying that's a python exploit is like saying it's the syringe that cures smallpox.
18
u/Samus_ Mar 16 '12
in all fairness it doesn't say "python exploit" it says "python code to exploit"
0
Mar 15 '12
[deleted]
14
u/maryjayjay Mar 15 '12
The exploit is in machine code, the conveyance to inject the exploit is a python wrapper and could have been written in any language. Hence my comparison of python to the syringe. They both deliver the payload, but are generally unrelated to it.
2
u/flying-sheep Mar 16 '12
thought the same thing. the python here is a very thin wrapper injecting some-python-unrelated binary code somewhere else.
1
1
u/zahlman the heretic Mar 16 '12
... so what's with the coding style of all these hackers, anyway?
buf = ''
buf += 'bunch of hex'
buf += 'moar hex'Ugh.
data = ''.join(
'bunch of hex',
'moar hex'
)Much better IMO. DRY wrt the identifier name.
0
Mar 16 '12
[deleted]
7
u/zahlman the heretic Mar 16 '12
Actually, quite right... adjacent literals are joined at compile time, just like in C. Well spotted :)
1
-1
u/minivanmegafun Mar 16 '12
Bleh. This affects way too many of my customers who are away too stupid to comprehend our announcement.
20
u/rmdashrf Mar 15 '12
It is fake.