mirror of
https://github.com/vanhauser-thc/thc-hydra.git
synced 2025-08-20 05:13:51 -07:00
Formatting
This commit is contained in:
parent
2713a0d816
commit
0c2e02135d
1 changed files with 130 additions and 120 deletions
|
@ -208,6 +208,7 @@ void service_radmin2(char *ip, int sp, unsigned char options, char *miscptr, FIL
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
while(1) {
|
||||||
// Get a password to work with.
|
// Get a password to work with.
|
||||||
strncpy(password, hydra_get_next_password(), 101);
|
strncpy(password, hydra_get_next_password(), 101);
|
||||||
MD5_Init(&md5c);
|
MD5_Init(&md5c);
|
||||||
|
@ -319,11 +320,20 @@ void service_radmin2(char *ip, int sp, unsigned char options, char *miscptr, FIL
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
msg = buffer2message(buffer);
|
msg = buffer2message(buffer);
|
||||||
if(msg->type == 0x0a) {
|
switch(msg->type) {
|
||||||
|
case 0x0a:
|
||||||
hydra_completed_pair_found();
|
hydra_completed_pair_found();
|
||||||
}
|
break;
|
||||||
//5) Disconnect
|
case 0x0b:
|
||||||
|
hydra_completed_pair();
|
||||||
hydra_disconnect(sock);
|
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) {
|
int service_radmin2_init(char *ip, int sp, unsigned char options, char *miscptr, FILE * fp, int port, char *hostname) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue