Follow us on Twitter!
One mans freedom fighter, another's terrorist.
Saturday, April 19, 2014
Navigation
Home
HellBoundHackers Main:
HellBoundHackers Find:
HellBoundHackers Information:
Learn
Communicate
Submit
Shop
Challenges
HellBoundHackers Exploit:
HellBoundHackers Programming:
HellBoundHackers Think:
HellBoundHackers Track:
HellBoundHackers Patch:
HellBoundHackers Other:
HellBoundHackers Need Help?
Other
Members Online
Total Online: 22
Guests Online: 20
Members Online: 2

Registered Members: 82839
Newest Member: fezphantom
Latest Articles
View Thread

HellBound Hackers | Computer General | Programming

Author

Can Python...?


Member

Your avatar

Posts:
Location:
Joined: 01.01.70
Rank:
Guest
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 Smile




Author

RE: Can Python...?

techb
Member



Posts: 384
Location:
Joined: 15.02.09
Rank:
Moderate
Posted on 11-03-11 23:51
yes. and most can be done with the standard lib that comes with python.


www.userbars.com/74460/665255/337-7865-ubda3219.gif
kbcarte.wordpress.com
Author

RE: Can Python...?

Xunxen
Member



Posts: 30
Location:
Joined: 06.03.11
Rank:
Apprentice
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
Member



Posts: 1486
Location: #valhalla
Joined: 08.10.07
Rank:
God
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?
Code
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.


halls-of-valhalla.org/images/affiliateLogo.png voodoorage.halls-of-valhalla.org/images/smallLogo.png
i537.photobucket.com/albums/ff338/ynori77/archenemysig1.jpg
ynori7 http://halls-of-valhalla.org
Author

RE: Can Python...?

spyware
Member



Posts: 4192
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.



img507.imageshack.us/img507/3580/spynewsig3il1.png
"The chowner of property." - Zeph
[small]
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
[/s
http://bitsofspy.net
Author

RE: Can Python...?


Member

Your avatar

Posts:
Location:
Joined: 01.01.70
Rank:
Guest
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 on 12-03-11 13:08
Author

RE: Can Python...?

spyware
Member



Posts: 4192
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. . .thonVsRuby



img507.imageshack.us/img507/3580/spynewsig3il1.png
"The chowner of property." - Zeph
[small]
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
[/s
http://bitsofspy.net
Author

RE: Can Python...?


Member

Your avatar

Posts:
Location:
Joined: 01.01.70
Rank:
Guest
Posted on 12-03-11 15:25
I actually qouted from that same link.
Author

RE: Can Python...?

spyware
Member



Posts: 4192
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.



img507.imageshack.us/img507/3580/spynewsig3il1.png
"The chowner of property." - Zeph
[small]
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
[/s
http://bitsofspy.net
Author

RE: Can Python...?

ynori7
Member



Posts: 1486
Location: #valhalla
Joined: 08.10.07
Rank:
God
Posted on 12-03-11 16:04
spyware wrote:
The whitespace in Python kills me.

http://c2.com/cgi. . .thonVsRuby

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.


halls-of-valhalla.org/images/affiliateLogo.png voodoorage.halls-of-valhalla.org/images/smallLogo.png
i537.photobucket.com/albums/ff338/ynori77/archenemysig1.jpg


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

RE: Can Python...?

fuser
Member



Posts: 960
Location: in front of a computer (duh)
Joined: 05.04.07
Rank:
Mad User
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. . .=2&t=12789


img.userbarz.com/51/10006.png
img.userbarz.com/146/29144.gif
img.userbarz.com/99/19602.jpg
img.userbarz.com/4/600.png
img.userbarz.com/45/8814.gif
img360.imageshack.us/img360/9231/bfbarlr0.jpg
[url=http://userbarz.com/][img]ht
catinthecpu@hotmail.com
Author

RE: Can Python...?

techb
Member



Posts: 384
Location:
Joined: 15.02.09
Rank:
Moderate
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.


www.userbars.com/74460/665255/337-7865-ubda3219.gif
kbcarte.wordpress.com
Author

RE: Can Python...?


Member

Your avatar

Posts:
Location:
Joined: 01.01.70
Rank:
Guest
Posted on 13-03-11 13:08
Thanks Smile

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