mirror of
https://github.com/vanhauser-thc/thc-hydra.git
synced 2025-07-05 20:41:39 -07:00
Prevert using NULL login
This commit is contained in:
parent
48709842a6
commit
300fe2f19d
1 changed files with 6 additions and 2 deletions
|
@ -32,7 +32,11 @@ void empty_register(char *buf, char *host, char *lhost, int port, int lport, cha
|
|||
"REGISTER sip:%s SIP/2.0\r\n"
|
||||
"Via: SIP/2.0/UDP %s:%i\r\n"
|
||||
"From: <sip:%s@%s>\r\n"
|
||||
"To: <sip:%s@%s>\r\n" "Call-ID: 1337@%s\r\n" "CSeq: %i REGISTER\r\n" "Content-Length: 0\r\n\r\n", host, lhost, lport, user, host, user, host, host, cseq);
|
||||
"To: <sip:%s@%s>\r\n"
|
||||
"Call-ID: 1337@%s\r\n"
|
||||
"CSeq: %i REGISTER\r\n"
|
||||
"Content-Length: 0\r\n\r\n",
|
||||
host, lhost, lport, user, host, user, host, host, cseq);
|
||||
}
|
||||
|
||||
int get_sip_code(char *buf) {
|
||||
|
@ -50,7 +54,7 @@ int start_sip(int s, char *ip, char *lip, int port, int lport, unsigned char opt
|
|||
char buf[SIP_MAX_BUF];
|
||||
|
||||
if (strlen(login = hydra_get_next_login()) == 0)
|
||||
login = NULL;
|
||||
return 3;
|
||||
if (strlen(pass = hydra_get_next_password()) == 0)
|
||||
pass = NULL;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue