File tree 1 file changed +5
-4
lines changed
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 :
7
7
8
8
.. code-block :: python
9
9
10
- from credslayer.manager import process_pcap
10
+ from credslayer import process_pcap
11
11
12
12
if __name__ == " __main__" :
13
13
credentials = process_pcap(" my_capture.pcap" ).get_list_of_all_credentials()
14
14
15
15
for creds in credentials:
16
16
print (creds)
17
17
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 :
19
19
20
20
.. code-block :: python
21
21
22
- from credslayer.manager import active_processing
22
+ from credslayer import active_processing
23
+ from credslayer.core.utils import Credentials
23
24
24
25
def process_found_credentials (credentials : Credentials):
25
26
print (" Found:" , credentials)
26
27
27
28
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