/*
* hydra v5.6 (c) 2001-2010 by van Hauser / THC <vh@thc.org>
* http://www.thc.org
*
* Parallized network login hacker. Do only use for legal purposes.
*/
#ifdef NESSUS_PLUGIN
#include <includes.h>
#endif
#include "hydra.h"
#include "performance.h"
void hydra_kill_arm(int arm_no, int killit, int fail);
extern void service_telnet(unsigned long int ip, int sp, unsigned char options, char *miscptr, FILE * fp, int port);
extern void service_ftp(unsigned long int ip, int sp, unsigned char options, char *miscptr, FILE * fp, int port);
extern void service_pop3(unsigned long int ip, int sp, unsigned char options, char *miscptr, FILE * fp, int port);
extern void service_vmauthd(unsigned long int ip, int sp, unsigned char options, char *miscptr, FILE * fp, int port);
extern void service_imap(unsigned long int ip, int sp, unsigned char options, char *miscptr, FILE * fp, int port);
extern void service_ldap2(unsigned long int ip, int sp, unsigned char options, char *miscptr, FILE * fp, int port);
extern void service_ldap3(unsigned long int ip, int sp, unsigned char options, char *miscptr, FILE * fp, int port);
extern void service_cisco(unsigned long int ip, int sp, unsigned char options, char *miscptr, FILE * fp, int port);
extern void service_cisco_enable(unsigned long int ip, int sp, unsigned char options, char *miscptr, FILE * fp, int port);
extern void service_vnc(unsigned long int ip, int sp, unsigned char options, char *miscptr, FILE * fp, int port);
extern void service_socks5(unsigned long int ip, int sp, unsigned char options, char *miscptr, FILE * fp, int port);
extern void service_rexec(unsigned long int ip, int sp, unsigned char options, char *miscptr, FILE * fp, int port);
extern void service_rlogin(unsigned long int ip, int sp, unsigned char options, char *miscptr, FILE * fp, int port);
extern void service_rsh(unsigned long int ip, int sp, unsigned char options, char *miscptr, FILE * fp, int port);
extern void service_nntp(unsigned long int ip, int sp, unsigned char options, char *miscptr, FILE * fp, int port);
extern void service_http_head(unsigned long int ip, int sp, unsigned char options, char *miscptr, FILE * fp, int port);
extern void service_http_get(unsigned long int ip, int sp, unsigned char options, char *miscptr, FILE * fp, int port);
extern void service_http_get_form(unsigned long int ip, int sp, unsigned char options, char *miscptr, FILE * fp, int port);
extern void service_http_post_form(unsigned long int ip, int sp, unsigned char options, char *miscptr, FILE * fp, int port);
extern void service_http_proxy(unsigned long int ip, int sp, unsigned char options, char *miscptr, FILE * fp, int port);
extern void service_icq(unsigned long int ip, int sp, unsigned char options, char *miscptr, FILE * fp, int port);
extern void service_pcnfs(unsigned long int ip, int sp, unsigned char options, char *miscptr, FILE * fp, int port);
extern void service_smb(unsigned long int ip, int sp, unsigned char options, char *miscptr, FILE * fp, int port);
extern void service_mysql(unsigned long int ip, int sp, unsigned char options, char *miscptr, FILE * fp, int port);
extern void service_mssql(unsigned long int ip, int sp, unsigned char options, char *miscptr, FILE * fp, int port);
extern void service_oracle_listener(unsigned long int ip, int sp, unsigned char options, char *miscptr, FILE * fp, int port);
extern void service_cvs(unsigned long int ip, int sp, unsigned char options, char *miscptr, FILE * fp, int port);
extern void service_snmp(unsigned long int ip, int sp, unsigned char options, char *miscptr, FILE * fp, int port);
extern void service_smtpauth(unsigned long int ip, int sp, unsigned char options, char *miscptr, FILE * fp, int port);
extern void service_teamspeak(unsigned long int ip, int sp, unsigned char options, char *miscptr, FILE * fp, int port);
extern void service_pcanywhere(unsigned long int ip, int sp, unsigned char options, char *miscptr, FILE * fp, int port);
extern void service_sip(unsigned long int ip, int sp, unsigned char options, char *miscptr, FILE * fp, int port);
extern void service_pop3_ntlm(unsigned long int ip, int sp, unsigned char options, char *miscptr, FILE * fp, int port);
extern void service_imap_ntlm(unsigned long int ip, int sp, unsigned char options, char *miscptr, FILE * fp, int port);
extern void service_smtpauth_ntlm(unsigned long int ip, int sp, unsigned char options, char *miscptr, FILE * fp, int port);
extern void service_http_proxy_auth_ntlm(unsigned long int ip, int sp, unsigned char options, char *miscptr, FILE * fp, int port);
#ifdef LIBPOSTGRES
extern void service_postgres(unsigned long int ip, int sp, unsigned char options, char *miscptr, FILE * fp, int port);
#endif
#ifdef LIBOPENSSL
extern void service_smbnt(unsigned long int ip, int sp, unsigned char options, char *miscptr, FILE * fp, int port);
#endif
#ifdef LIBSAPR3
extern void service_sapr3(unsigned long int ip, int sp, unsigned char options, char *miscptr, FILE * fp, int port);
#endif
#ifdef LIBFIREBIRD
extern void service_firebird(unsigned long int ip, int sp, unsigned char options, char *miscptr, FILE * fp, int port);
#endif
#ifdef LIBNCP
extern void service_ncp(unsigned long int ip, int sp, unsigned char options, char *miscptr, FILE * fp, int port);
#endif
#ifdef LIBSSH
extern void service_ssh2(unsigned long int ip, int sp, unsigned char options, char *miscptr, FILE * fp, int port);
#endif
#ifdef LIBSVN
extern void service_svn(unsigned long int ip, int sp, unsigned char options, char *miscptr, FILE * fp, int port);
#endif
/* ADD NEW SERVICES HERE */
#define SERVICES "telnet ftp pop3[-ntlm] imap[-ntlm] smb smbnt http[s]-{head|get} http-{get|post}-form http-proxy cisco cisco-enable vnc ldap2 ldap3 mssql mysql oracle-listener postgres nntp socks5 rexec rlogin pcnfs snmp rsh cvs svn icq sapr3 ssh2 smtp-auth[-ntlm] pcanywhere teamspeak sip vmauthd firebird ncp"
/* ADD NEW SERVICES HERE */
#define MAXBUF 520
#define MAXLINESIZE ( ( MAXBUF / 2 ) - 4 )
#define MAXTASKS 255
#define MAXSERVERS 16
#define MAXFAIL 3
#define MAXENDWAIT 20
#define RESTOREFILE "./hydra.restore"
#define PROGRAM "Hydra"
#define VERSION "v5.7"
#define AUTHOR "van Hauser / THC"
#define EMAIL "<vh@thc.org>"
#define RESSOURCE "http://www.thc.org"
#define WAITTIME 30
#define TASKS 16
extern void hydra_tobase64(unsigned char *buf, int buflen, int bufsize);
int fck=0;
char *sck=NULL;
/* some structure definitions */
typedef struct {
pid_t pid;
int sp[2];
int target_no;
char *current_login_ptr;
char *current_pass_ptr;
int active;
int redo;
time_t last_seen;
} hydra_arm;
typedef struct {
char *target;
unsigned long int ip;
char *login_ptr;
char *pass_ptr;
unsigned long int login_no;
unsigned long int pass_no;
unsigned long int sent;
int pass_state;
int use_count;
int max_use_count;
int done; /* 0 if active, 1 if finished scanning, 2 if error (for RESTOREFILE) */
int fail_count;
} hydra_target;
typedef struct {
int active; /* active tasks of hydra_options.tasks */
int targets;
int finished;
unsigned long int todo_all;
unsigned long int todo;
unsigned long int sent;
unsigned long int found;
size_t countlogin;
size_t sizelogin;
size_t countpass;
size_t sizepass;
FILE *ofp;
} hydra_brain;
typedef struct {
int mode;
/* valid modes:
0 = -l -p
1 = -l -P
2 = -L -p
3 = -L -P
+16 if try_null_password
+32 if try_password_same_as_login
64 = -C
*/
int ssl;
int restore;
int debug; /* is external - for restore */
int verbose; /* is external - for restore */
int showAttempt;
int tasks;
int try_null_password;
int try_password_same_as_login;
int exit_found;
int max_use;
char *login;
char *loginfile;
char *pass;
char *passfile;
char *outfile_ptr;
char *infile_ptr;
char *colonfile;
int waittime; /* is external - for resto
没有合适的资源?快使用搜索试试~ 我知道了~
资源推荐
资源详情
资源评论
收起资源包目录
hydra-5.7.tar.gz (98个子文件)
hydra-5.7-src
hydra-cisco.c 4KB
hydra-rsh.c 3KB
hydra-sapr3.c 4KB
hydra-http-proxy.c 3KB
hydra-mysql.c 9KB
hydra-telnet.c 7KB
ntlm.h 4KB
hydra-teamspeak.c 3KB
hydra-http.c 5KB
hydra-rexec.c 3KB
hydra-smbnt.c 18KB
postgres_ext.h 2KB
hydra-http-proxy-auth-ntlm.c 5KB
hydra-mod.c 17KB
hydra-oracle.c 7KB
hydra-smb.c 6KB
hydra-icq.c 6KB
hydra-gtk
missing 6KB
COPYING 18KB
xhydra.glade 99KB
aclocal.m4 12KB
INSTALL 8KB
config.h 899B
config.h.in 775B
mkinstalldirs 722B
configure 151KB
ChangeLog 0B
install-sh 5KB
Makefile.in 12KB
stamp-h.in 10B
configure.in 385B
AUTHORS 0B
src
callbacks.h 2KB
main.c 2KB
callbacks.c 19KB
interface.c 52KB
interface.h 95B
support.c 4KB
support.h 1KB
Makefile.in 9KB
Makefile.am 351B
autogen.sh 4KB
conf600.sh 18B
README 283B
make_xhydra.sh 626B
xhydra.gladep 363B
NEWS 0B
acconfig.h 142B
Makefile.am 641B
d3des.c 16KB
INSTALL 59B
hydra-imap-ntlm.c 4KB
md4.c 8KB
hydra-socks5.c 4KB
LICENSE 34KB
hydra-pcnfs.c 5KB
hydra-mssql.c 6KB
crc32.c 6KB
Makefile.unix 19B
configure 14KB
hydra-ldap.c 5KB
hydra-postgres.c 3KB
hydra.h 2KB
hydra-ftp.c 4KB
hydra-cisco-enable.c 6KB
hydra-firebird.c 4KB
hydra-ncp.c 5KB
hydra-smtpauth.c 6KB
TODO 799B
hydra-http-form.c 9KB
hydra-svn.c 5KB
hydra-mod.h 2KB
hydra-snmp.c 5KB
md4.h 2KB
libpq-fe.h 15KB
hydra-pop3.c 4KB
pw-inspector.c 5KB
hydra-vmauthd.c 4KB
hydra-vnc.c 5KB
README 9KB
hydra-oracle-listener.c 3KB
d3des.h 2KB
CHANGES 17KB
hydra-cvs.c 4KB
crc32.h 118B
hydra-smtpauth-ntlm.c 6KB
hydra-nntp.c 4KB
hydra-5.4-src
hydra-ncp.c 5KB
hydra-ssh2.c 4KB
hydra-pop3-ntlm.c 4KB
hydra-rlogin.c 3KB
hydra.c 85KB
hydra-pcanywhere.c 6KB
Makefile.am 3KB
hydra-imap.c 3KB
hydra-sip.c 9KB
performance.h 1KB
ntlm.c 40KB
共 98 条
- 1
资源评论
-c_-
- 粉丝: 2
- 资源: 15
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- 基于opencv的dnn模块实现Yolo-Fastest的目标检测python源码+模型+说明(高分项目).zip
- 使用Python调用微信本地ocr服务.zip
- 【精品推荐】人工智能在医疗中的应用.pptx
- 【精品推荐】电子医疗仪器人机接口-(1).ppt
- 【精品推荐】电子医疗仪器人机接口.ppt
- ubuntu镜像ubuntu镜像01
- 基于paddle搭建神经网络实现5种水果识别分类python源码+数据集(高分毕设).zip
- 【精品推荐】电子商务网店类型介绍.ppt
- 基于paddle搭建神经网络实现水果识别分类python源码+数据集(高分项目).zip
- 三菱plc编程口通信学习笔记.doc
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功