List conversion

2006-03-29 Thread yawgmoth7
Hello, I have a piece of code: command = raw_input("command> ") words = string.split(command, ' ') temparg = words if len(words)<= 3: temparg = words[4:] else: tempar

IRC Bot trouble..

2006-02-23 Thread yawgmoth7
I'm currently writing a IRC bot for fun...here is the code that I have writen so far: import sys import socket import string import time HOST="irc.freenode.net" PORT=6667 NICK="PapaJorgio_" IDENT="Papa" REALNAME="Jorgio" CHANNEL = "#holder" buffer = "" clientsock=socket.socket() clientsock.connect

IPy module

2006-01-31 Thread yawgmoth7
I was discussing this in another email, sadly I have misplaced the email. I got the module IPy, and I am taking a variable from the user(An IP) and doing something like this: startip = raw_input("Enter start IP: ") ip = IPy.IP(startip\255) for x in ip(): Well, this doesn't work(I knew it woul

Collecting IP range

2006-01-30 Thread yawgmoth7
Hello, I'm sure that this has been discussed before, but I have a question. I have written a few port scanners, banner grabbers in the past and have never found a good way to get a range of IP's. Obviously, in my opinion the best and simplest way to do somethign like and simple port scanner is to d

List of files to be opened

2006-01-25 Thread yawgmoth7
Hello, I am currently writing a script that requires a few different files to be opened, and examined. What I need to be able to do is use something like: filelist = os.system("ls") I cannot think of a way to do this, I could put them in a list of something of the sort. But that still does not s

Making dir's

2006-01-22 Thread yawgmoth7
Hello, I am writing a script that will organize all the code in the given directory. Well, currently I have it make dir's with something like: os.mkdir("C") os.mkdir("Python") os.mkdir("ASM") And so on. That is not very practical, and I wish to change it. I was wondering if there were any other m

Ordering numbers

2006-01-17 Thread yawgmoth7
I have a dictonary here: seq = {8:0x13AC9741, 10:0x27592E8, 4:0x4EB25D, 5:0x9D64B, 7:0x13AC9, 1:0x2759, 11:0x4EB, 3:0x9D, 9:0x13, 2:0x2, 0:0x0, 6:0x0} Python always prints them in order, from least to greatest. But I wanna have it show them in hte order that I put in. Thanks for all your help gu

Gurus'Network

2005-12-23 Thread yawgmoth7
gurusnetwork.org is a great place to learn about programming. And a lot of the admins are Python Pro's and they are willing to help and share info. Just thought I'd mention this fairly new site. -- http://mail.python.org/mailman/listinfo/python-list