Welcome to HBH! If you have tried to register and didn't get a verification email, please using the following link to resend the verification email.

Can Python...?


ghost's Avatar
0 0

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 :)


techb's Avatar
Member
0 0

yes. and most can be done with the standard lib that comes with python.


Xunxen's Avatar
Member
0 0

can't you do all those things with any language that's Turing complete?


ynori7's Avatar
Future Emperor of Earth
0 0

Languages don't reproduce themselves, code does. That one is stilly to ask about since even bash can do that. And hog resources? Really?

    print "I'm hogging resources."```

As for the rest, python is capable of doing those things if you program it to do so.

spyware's Avatar
Banned
0 0

They were all stupid questions, btw. Not sure why no one here told you that yet. Also, you might be interested in Ruby, it has some great advantages over Python.


ghost's Avatar
0 0

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.


spyware's Avatar
Banned
0 0

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.

http://c2.com/cgi/wiki?PythonVsRuby


ghost's Avatar
0 0

I actually qouted from that same link.


spyware's Avatar
Banned
0 0

random wrote: I actually qouted from that same link.

Oh. Well, you could call ROR an advantage I guess.


ynori7's Avatar
Future Emperor of Earth
0 0

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.


techb's Avatar
Member
0 0

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.


ghost's Avatar
0 0

Thanks :)

I'm new to programming so wasn't sure if only specific languages could do they things