Skip to content

Commit

Permalink
Bug Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
t6x committed May 11, 2015
1 parent 68515bd commit ead842c
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 8 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,8 @@
Modifications made by t6_x, DataHead, Soxrok2212

Some ideas made by nuroo, kcdtv

Bug fix made by alxchk

#Special Thanks
Soxrok2212 for all work done to help in the development of tools
Expand Down
5 changes: 3 additions & 2 deletions src/wps/wps_registrar.c
Original file line number Diff line number Diff line change
Expand Up @@ -1884,7 +1884,7 @@ static int wps_process_e_hash2(struct wps_data *wps, const u8 *e_hash2)
if(aux_pixie_pin != NULL)
{
pixie_test = 0;
break;
//break;
}


Expand All @@ -1906,11 +1906,12 @@ static int wps_process_e_hash2(struct wps_data *wps, const u8 *e_hash2)
}
}

printf("[Pixie-Dust]\n");
break;
}

}
printf("[Pixie-Dust]\n");


if(pclose(fpixe)) {
//printf("Command not found or exited with error status\n");
Expand Down
12 changes: 6 additions & 6 deletions src/wpsmon.c
Original file line number Diff line number Diff line change
Expand Up @@ -444,23 +444,23 @@ void parse_wps_settings(const u_char *packet, struct pcap_pkthdr *header, char *
aux_cmd_chipset = strstr(cmd_chipset_buf,"[P] WPS Manufacturer:");
if(aux_cmd_chipset != NULL)
{
//md_chipset_buf
strncpy(info_manufac, aux_cmd_chipset+21, sizeof(cmd_chipset_buf));
//cprintf(INFO,"%s\n",info_manufac);

//bug fix by alxchk
strncpy(info_manufac, aux_cmd_chipset+21, sizeof(info_manufac));
}

aux_cmd_chipset = strstr(cmd_chipset_buf,"[P] WPS Model Number:");
if(aux_cmd_chipset != NULL)
{
strncpy(info_modelnum, aux_cmd_chipset+21, sizeof(cmd_chipset_buf));
//bug fix by alxchk
strncpy(info_modelnum, aux_cmd_chipset+21, sizeof(info_modelnum));

}

aux_cmd_chipset = strstr(cmd_chipset_buf,"[P] WPS Model Serial Number:");
if(aux_cmd_chipset != NULL)
{
strncpy(info_modelserial, aux_cmd_chipset+28, sizeof(cmd_chipset_buf));
//bug fix by alxchk
strncpy(info_modelserial, aux_cmd_chipset+28, sizeof(info_modelserial));

}

Expand Down

0 comments on commit ead842c

Please sign in to comment.