003 File Manager
Current Path:
/usr/src/contrib/wpa/hostapd
usr
/
src
/
contrib
/
wpa
/
hostapd
/
📁
..
📄
ChangeLog
(63.82 KB)
📄
README
(15.55 KB)
📄
README-MULTI-AP
(8.07 KB)
📄
README-WPS
(14.02 KB)
📄
config_file.c
(129.23 KB)
📄
config_file.h
(720 B)
📄
ctrl_iface.c
(110.53 KB)
📄
ctrl_iface.h
(998 B)
📄
defconfig
(12.89 KB)
📄
eap_register.c
(3.24 KB)
📄
eap_register.h
(309 B)
📄
eap_testing.txt
(2.52 KB)
📄
hapd_module_tests.c
(364 B)
📄
hlr_auc_gw.c
(23.98 KB)
📄
hlr_auc_gw.milenage_db
(909 B)
📄
hlr_auc_gw.txt
(3.17 KB)
📄
hostapd.8
(1.47 KB)
📄
hostapd.accept
(276 B)
📄
hostapd.conf
(110.95 KB)
📄
hostapd.deny
(144 B)
📄
hostapd.eap_user
(4.27 KB)
📄
hostapd.eap_user_sqlite
(909 B)
📄
hostapd.radius_clients
(142 B)
📄
hostapd.sim_db
(409 B)
📄
hostapd.vlan
(282 B)
📄
hostapd.wpa_psk
(834 B)
📄
hostapd_cli.1
(1.81 KB)
📄
hostapd_cli.c
(50.17 KB)
📁
logwatch
📄
main.c
(22.3 KB)
📄
nt_password_hash.c
(922 B)
📄
wired.conf
(1.13 KB)
📄
wps-ap-nfc.py
(9.77 KB)
Editing: nt_password_hash.c
/* * hostapd - Plaintext password to NtPasswordHash * Copyright (c) 2005, Jouni Malinen <j@w1.fi> * * This software may be distributed under the terms of the BSD license. * See README for more details. */ #include "includes.h" #include "common.h" #include "crypto/ms_funcs.h" int main(int argc, char *argv[]) { unsigned char password_hash[16]; size_t i; char *password, buf[64], *pos; if (argc > 1) password = argv[1]; else { if (fgets(buf, sizeof(buf), stdin) == NULL) { printf("Failed to read password\n"); return 1; } buf[sizeof(buf) - 1] = '\0'; pos = buf; while (*pos != '\0') { if (*pos == '\r' || *pos == '\n') { *pos = '\0'; break; } pos++; } password = buf; } if (nt_password_hash((u8 *) password, strlen(password), password_hash)) return -1; for (i = 0; i < sizeof(password_hash); i++) printf("%02x", password_hash[i]); printf("\n"); return 0; }
Upload File
Create Folder