Formatting

This commit is contained in:
Catatonic Prime 2016-11-13 20:37:35 +00:00
commit 0c2e02135d

View file

@ -208,6 +208,7 @@ void service_radmin2(char *ip, int sp, unsigned char options, char *miscptr, FIL
return;
}
while(1) {
// Get a password to work with.
strncpy(password, hydra_get_next_password(), 101);
MD5_Init(&md5c);
@ -319,11 +320,20 @@ void service_radmin2(char *ip, int sp, unsigned char options, char *miscptr, FIL
}
}
msg = buffer2message(buffer);
if(msg->type == 0x0a) {
switch(msg->type) {
case 0x0a:
hydra_completed_pair_found();
}
//5) Disconnect
break;
case 0x0b:
hydra_completed_pair();
hydra_disconnect(sock);
break;
default:
hydra_report(stderr, "Error: Child with pid %d terminating, protocol error\n", (int)getpid());
hydra_child_exit(2);
}
}
}
int service_radmin2_init(char *ip, int sp, unsigned char options, char *miscptr, FILE * fp, int port, char *hostname) {