| Author |
Can Python...? |
chompy
Member

Posts: 15
Location: Chookter Land
Joined: 24.12.10 Rank: Mad User |
|
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 
Theres 10 kinds of people in the world, those who understand binary and those who don't |
|
| Author |
RE: Can Python...? |
techb
Member

Posts: 384
Location:
Joined: 15.02.09 Rank: Hacker Level 2 |
|
yes. and most can be done with the standard lib that comes with python.
|
|
| Author |
RE: Can Python...? |
Xunxen
Member

Posts: 30
Location:
Joined: 06.03.11 Rank: HBH Guru |
|
can't you do all those things with any language that's Turing complete?
|
|
| Author |
RE: Can Python...? |
ynori7
Future Emperor of Earth

Posts: 1481
Location: #valhalla
Joined: 08.10.07 Rank: Diabolical |
|
Languages don't reproduce themselves, code does. That one is stilly to ask about since even bash can do that. And hog resources? Really?
while 1:
print "I'm hogging resources."
As for the rest, python is capable of doing those things if you program it to do so.
|
|
| Author |
RE: Can Python...? |
spyware
Member

Posts: 4190
Location: The Netherlands
Joined: 14.04.07 Rank: God Warn Level: 90
|
|
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.

"The chowner of property." - Zeph Widespread intellectual and moral docility may be convenient for leaders in the short term,
but it is suicidal for nations in the long term. - Carl Sagan Since the grid is inescapable, what were the earlier lasers about? Does the corridor have a sense of humor? - Ebert |
|
| Author |
RE: Can Python...? |
random
Member
Posts: 6
Location: N-H
Joined: 21.01.08 Rank: Newbie |
|
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.
Edited by random on 12-03-11 13:08 |
|
| Author |
RE: Can Python...? |
spyware
Member

Posts: 4190
Location: The Netherlands
Joined: 14.04.07 Rank: God Warn Level: 90
|
|
|
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

"The chowner of property." - Zeph Widespread intellectual and moral docility may be convenient for leaders in the short term,
but it is suicidal for nations in the long term. - Carl Sagan Since the grid is inescapable, what were the earlier lasers about? Does the corridor have a sense of humor? - Ebert |
|
| Author |
RE: Can Python...? |
random
Member
Posts: 6
Location: N-H
Joined: 21.01.08 Rank: Newbie |
|
|
I actually qouted from that same link. |
|
| Author |
RE: Can Python...? |
spyware
Member

Posts: 4190
Location: The Netherlands
Joined: 14.04.07 Rank: God Warn Level: 90
|
|
|
random wrote:
I actually qouted from that same link.
Oh. Well, you could call ROR an advantage I guess.

"The chowner of property." - Zeph Widespread intellectual and moral docility may be convenient for leaders in the short term,
but it is suicidal for nations in the long term. - Carl Sagan Since the grid is inescapable, what were the earlier lasers about? Does the corridor have a sense of humor? - Ebert |
|
| Author |
RE: Can Python...? |
ynori7
Future Emperor of Earth

Posts: 1481
Location: #valhalla
Joined: 08.10.07 Rank: Diabolical |
|
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.
Edited by ynori7 on 12-03-11 16:06 |
|
| Author |
RE: Can Python...? |
fuser
Member

Posts: 959
Location: in front of a computer (duh)
Joined: 05.04.07 Rank: HBH Guru |
|
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







Telling modern Internet users to stop whining is like telling them to stop breathing it seems unrealistic and inhumane. Paul Lutus
|
|
| Author |
RE: Can Python...? |
techb
Member

Posts: 384
Location:
Joined: 15.02.09 Rank: Hacker Level 2 |
|
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.
|
|
| Author |
RE: Can Python...? |
chompy
Member

Posts: 15
Location: Chookter Land
Joined: 24.12.10 Rank: Mad User |
|
Thanks 
I'm new to programming so wasn't sure if only specific languages could do they things
Theres 10 kinds of people in the world, those who understand binary and those who don't |
|