File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed
Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -7,22 +7,23 @@ The easiest way to retrieve credentials from a pcap is as follow :
77
88.. code-block :: python
99
10- from credslayer.manager import process_pcap
10+ from credslayer import process_pcap
1111
1212 if __name__ == " __main__" :
1313 credentials = process_pcap(" my_capture.pcap" ).get_list_of_all_credentials()
1414
1515 for creds in credentials:
1616 print (creds)
1717
18- I you want to perform a live capture and process credentials as they come, you can use a callback as follow :
18+ If you want to perform a live capture and process credentials as they come, you can use a callback as follow :
1919
2020.. code-block :: python
2121
22- from credslayer.manager import active_processing
22+ from credslayer import active_processing
23+ from credslayer.core.utils import Credentials
2324
2425 def process_found_credentials (credentials : Credentials):
2526 print (" Found:" , credentials)
2627
2728 if __name__ == " __main__" :
28- active_processing(" wlp2s0" , callback = process_found_credentials)
29+ active_processing(" wlp2s0" , creds_found_callback = process_found_credentials)
You can’t perform that action at this time.
0 commit comments