Can Python...?
Hi guys/gals, this isn't a "how do i?" thread.
I just want to know if python is able to do the following things:
query system information ( such as OS, Hardware, Applications list)
Scan ports (An Nmap style scanner)
FTP/TFPT
SSH/Telnet
Run FTP/TFPT/SSH/Telnet server (if implanted on a remote machine)
reproduce itself (like a worm)
Hog resources
manipulate file structure and permisions
run its own GUI
If any of these are stupid please say….
I'll try figure out how to do it myself :)
random wrote: I'd love to hear those advantages, the so called "conceptual elegance" of Ruby? Fuck that. If you choose to use a particular programming language it is merely because you prefer the way it solves your specific problem.
Yes. It's a preference, perhaps I should've stated this. The whitespace in Python kills me.
spyware wrote: The whitespace in Python kills me.
http://c2.com/cgi/wiki?PythonVsRuby There doesn't need to be much whitespace. While that link says "Python assumes a tab setting of 8", it's wrong. You only need to have consistent tabbing. Your tabs can be just one space if you want and it'll work just fine.
EDIT: You can also put multiple commands on the same line separated by semicolons too if saving space makes you happy.
speaking of self-replication, here is an example of self-replicating code written in python. It's pretty old though.
http://www.python-forum.org/pythonforum/viewtopic.php?f=2&t=12789
Spacing is a good thing. It forces us to use clean code; well visually cleaner. You can still have messy shit for code though.
Honestly, learn C++ before Python. You get a better understanding of memory allocation. With Python being so loosely typed its hard to move onto other strongly typed languages.