Пример #1
0
 def loadpcap(self, pcapfile):
     """
         List the available commands or further describe a single command.
         Syntax:
                     loadpcap filename
         Parameters:
                     filename:   The path to and name of the pcap file to be loaded.
     """
     p = rdpcap(pcapfile)
     if p is None:
         print "Couldn't file that file, mate."
         return
     for pkt in p:
         if HTTP in pkt:
             sniff_data.callback(pkt, self.hostdict)
     print "File", pcapfile, "loaded and processed.\nIf nothing went wrong, you should be able to show your results now."
Пример #2
0
 def loadpcap(self, pcapfile):
     """
         List the available commands or further describe a single command.
         Syntax:
                     loadpcap filename
         Parameters:
                     filename:   The path to and name of the pcap file to be loaded.
     """
     p = rdpcap(pcapfile)
     if p is None:
         print "Couldn't file that file, mate."
         return
     for pkt in p:
         if HTTP in pkt:
             sniff_data.callback(pkt, self.hostdict)
     print "File", pcapfile, "loaded and processed.\nIf nothing went wrong, you should be able to show your results now."
Пример #3
0
 def runbg(self):
     """
         Run the credential and cookie sniffing process in the background so you can attend to other important matters whilst the data rolls in.
         Syntax:
                     sniffbg
         (Takes no arguments)
     """
     self.bgthread = sniff_thread.SniffThread(
         lfilter=lambda x: HTTP in x,
         prn=lambda x: sniff_data.callback(x, self.hostdict))
     self.bgthread.start()
Пример #4
0
 def runfg(self):
     """
         Run the credential and cookie sniffing process in the foreground so you can watch as info is gathered.
         Syntax:
                     sniff
         (Takes no arguments)
     """
     print "Listening for credentials and cookies."
     print "Hit Ctrl+C to stop listening and return shell."
     print "-----------------------------------------------"
     try:
         sniff(lfilter=lambda x: HTTP in x, prn=lambda x: sniff_data.callback(x, self.hostdict), store=0)
     except KeyboardInterrupt:
         print
         print
         return
Пример #5
0
 def runfg(self):
     """
         Run the credential and cookie sniffing process in the foreground so you can watch as info is gathered.
         Syntax:
                     sniff
         (Takes no arguments)
     """
     print "Listening for credentials and cookies."
     print "Hit Ctrl+C to stop listening and return shell."
     print "-----------------------------------------------"
     try:
         sniff(lfilter=lambda x: HTTP in x,
               prn=lambda x: sniff_data.callback(x, self.hostdict),
               store=0)
     except KeyboardInterrupt:
         print
         print
         return
Пример #6
0
 def runbg(self):
     """
         Run the credential and cookie sniffing process in the background so you can attend to other important matters whilst the data rolls in.
         Syntax:
                     sniffbg
         (Takes no arguments)
     """
     self.bgthread = sniff_thread.SniffThread(lfilter=lambda x: HTTP in x, prn=lambda x: sniff_data.callback(x, self.hostdict))
     self.bgthread.start()