Join us at IRC!
Society leans ever heavily on computers, if you have the power to take out computers you can take out society. - cubeman372
Wednesday, May 23, 2012
Navigation
Members Online
Total Online: 34
Web Spiders: 14
Guests Online: 31
Members Online: 3

Registered Members: 70170
Newest Member: bahmx
Latest Articles
View Thread

HellBound Hackers | Computer General | Programming

Author

Can Python...?

chompy
Member



Posts: 15
Location: Chookter Land
Joined: 24.12.10
Rank:
Mad User
Posted on 11-03-11 22:04
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
Posted on 11-03-11 23:51
yes. and most can be done with the standard lib that comes with python.


kbcarte.wordpress.com
Author

RE: Can Python...?

Xunxen
Member



Posts: 30
Location:
Joined: 06.03.11
Rank:
HBH Guru
Posted on 12-03-11 05:12
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
Posted on 12-03-11 05:30
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.




ynori7 http://halls-of-valhalla.org
Author

RE: Can Python...?

spyware
Member



Posts: 4190
Location: The Netherlands
Joined: 14.04.07
Rank:
God
Warn Level: 90
Posted on 12-03-11 10:50
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
http://bitsofspy.net
Author

RE: Can Python...?

random
Member

Posts: 6
Location: N-H
Joined: 21.01.08
Rank:
Newbie
Posted on 12-03-11 13:02
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
Posted on 12-03-11 15:18
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
http://bitsofspy.net
Author

RE: Can Python...?

random
Member

Posts: 6
Location: N-H
Joined: 21.01.08
Rank:
Newbie
Posted on 12-03-11 15:25
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
Posted on 12-03-11 15:32
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
http://bitsofspy.net
Author

RE: Can Python...?

ynori7
Future Emperor of Earth



Posts: 1481
Location: #valhalla
Joined: 08.10.07
Rank:
Diabolical
Posted on 12-03-11 16:04
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.






Edited by ynori7 on 12-03-11 16:06
ynori7 http://halls-of-valhalla.org
Author

RE: Can Python...?

fuser
Member



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

catinthecpu@hotmail.com
Author

RE: Can Python...?

techb
Member



Posts: 384
Location:
Joined: 15.02.09
Rank:
Hacker Level 2
Posted on 12-03-11 17:09
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.


kbcarte.wordpress.com
Author

RE: Can Python...?

chompy
Member



Posts: 15
Location: Chookter Land
Joined: 24.12.10
Rank:
Mad User
Posted on 13-03-11 13:08
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
Guest
Username

Password

Remember Me


Bookmark This Page
Affiliates
Adverts

 

 

Links
By using, viewing or obtaining any information contained on this site, you agree to the disclaimer.

© HellBound Hackers 2008- 2009. Since 3rd December 2004.