hydra是一个暴力破解的工具, 最核心的代码就是对于不同协议登陆机制的的实现,
#hydra 支持的协议如下:
"smb" "smbnt") "afp" "cisco" "cisco-enable" "cvs" "firebird" "ftp" "ftps" "http-get" "http-get-form" "http-head" "http-post-form" "http-proxy" "http-proxy-urlenum" "icq" "imap" "irc" "ldap2" "ldap3" "ldap3-crammd5" "ldap3-digestmd5" "mssql" "mysql" "ncp" "nntp" "oracle" "oracle-listener" "oracle-sid" "pcanywhere" "pcnfs" "pop3" "postgres" "rdp" "rexec" "rlogin" "rsh" "sapr3" "sip" "smtp" "smtp-enum" "snmp" "socks5" "ssh" "svn" "teamspeak" "telnet" "vmauthd" "vnc" "xmpp"
"smb" "smbnt") "afp" "cisco" "cisco-enable" "cvs" "firebird" "ftp" "ftps" "http-get" "http-get-form" "http-head" "http-post-form" "http-proxy" "http-proxy-urlenum" "icq" "imap" "irc" "ldap2" "ldap3" "ldap3-crammd5" "ldap3-digestmd5" "mssql" "mysql" "ncp" "nntp" "oracle" "oracle-listener" "oracle-sid" "pcanywhere" "pcnfs" "pop3" "postgres" "rdp" "rexec" "rlogin" "rsh" "sapr3" "sip" "smtp" "smtp-enum" "snmp" "socks5" "ssh" "svn" "teamspeak" "telnet" "vmauthd" "vnc" "xmpp"
J:\portage\net-analyzer\hydra\hydra-7.3-src.chm
root/hydra.c
1730 int main(int argc, char *argv[]) {
my_select(max_fd + 1, &fdreadheads, NULL, NULL, 0, 200000);
hydra_spawn_head(head_no, hydra_heads[head_no]->target_no);
service_afp(hydra_targets[target_no]->ip, hydra_heads[head_no]->sp[1], options, hydra_options.miscptr, hydra_brains.ofp, port);
service_cisco(hydra_targets[target_no]->ip, hydra_heads[head_no]->sp[1], options, hydra_options.miscptr, hydra_brains.ofp, port);
service_cisco_enable(hydra_targets[target_no]->ip, hydra_heads[head_no]->sp[1], options, hydra_options.miscptr, hydra_brains.ofp, port);
service_cvs(hydra_targets[target_no]->ip, hyd