You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

46 lines
1.2 KiB

  1. From a8edcc1ce2a55e0e02ee13c46c6a5f22dd7920e9 Mon Sep 17 00:00:00 2001
  2. From: "cheffner@tacnetsol.com"
  3. <cheffner@tacnetsol.com@027a3e96-2d37-f1c0-85d6-5ce5a08386c2>
  4. Date: Tue, 27 Mar 2012 16:25:10 +0000
  5. Subject: [PATCH] Fixed probe request bug in wash.
  6. git-svn-id: http://reaver-wps.googlecode.com/svn/trunk@113 027a3e96-2d37-f1c0-85d6-5ce5a08386c2
  7. ---
  8. src/wpsmon.c | 7 +++++++
  9. 1 file changed, 7 insertions(+)
  10. diff --git a/src/wpsmon.c b/src/wpsmon.c
  11. index da688b9..d976924 100644
  12. --- a/src/wpsmon.c
  13. +++ b/src/wpsmon.c
  14. @@ -132,6 +132,11 @@ int main(int argc, char *argv[])
  15. usage(argv[0]);
  16. goto end;
  17. }
  18. + else if(get_iface())
  19. + {
  20. + /* Get the MAC address of the specified interface */
  21. + read_iface_mac();
  22. + }
  23. if(get_iface() && source == PCAP_FILE)
  24. {
  25. @@ -300,6 +305,7 @@ void parse_wps_settings(const u_char *packet, struct pcap_pkthdr *header, char *
  26. set_ssid(NULL);
  27. bssid = (char *) mac2str(frame_header->addr3, ':');
  28. + set_bssid((unsigned char *) frame_header->addr3);
  29. if(bssid)
  30. {
  31. @@ -383,6 +389,7 @@ void parse_wps_settings(const u_char *packet, struct pcap_pkthdr *header, char *
  32. end:
  33. if(wps) free(wps);
  34. + set_bssid((unsigned char *) NULL_MAC);
  35. return;
  36. }
  37. --
  38. 2.6.4