From 246cdb5770873fc937b0a14b38e42ca6f032b2ea Mon Sep 17 00:00:00 2001 From: Diadlo Date: Thu, 22 Jun 2017 10:53:52 +0300 Subject: [PATCH 1/6] Move services in separate directory --- hydra-adam6500.c => services/hydra-adam6500.c | 0 hydra-afp.c => services/hydra-afp.c | 0 hydra-asterisk.c => services/hydra-asterisk.c | 0 hydra-cisco-enable.c => services/hydra-cisco-enable.c | 0 hydra-cisco.c => services/hydra-cisco.c | 0 hydra-cvs.c => services/hydra-cvs.c | 0 hydra-firebird.c => services/hydra-firebird.c | 0 hydra-ftp.c => services/hydra-ftp.c | 0 hydra-http-form.c => services/hydra-http-form.c | 0 hydra-http-proxy-urlenum.c => services/hydra-http-proxy-urlenum.c | 0 hydra-http-proxy.c => services/hydra-http-proxy.c | 0 hydra-http.c => services/hydra-http.c | 0 hydra-icq.c => services/hydra-icq.c | 0 hydra-imap.c => services/hydra-imap.c | 0 hydra-irc.c => services/hydra-irc.c | 0 hydra-ldap.c => services/hydra-ldap.c | 0 hydra-mssql.c => services/hydra-mssql.c | 0 hydra-mysql.c => services/hydra-mysql.c | 0 hydra-ncp.c => services/hydra-ncp.c | 0 hydra-nntp.c => services/hydra-nntp.c | 0 hydra-oracle-listener.c => services/hydra-oracle-listener.c | 0 hydra-oracle-sid.c => services/hydra-oracle-sid.c | 0 hydra-oracle.c => services/hydra-oracle.c | 0 hydra-pcanywhere.c => services/hydra-pcanywhere.c | 0 hydra-pcnfs.c => services/hydra-pcnfs.c | 0 hydra-pop3.c => services/hydra-pop3.c | 0 hydra-postgres.c => services/hydra-postgres.c | 0 hydra-rdp.c => services/hydra-rdp.c | 0 hydra-redis.c => services/hydra-redis.c | 0 hydra-rexec.c => services/hydra-rexec.c | 0 hydra-rlogin.c => services/hydra-rlogin.c | 0 hydra-rpcap.c => services/hydra-rpcap.c | 0 hydra-rsh.c => services/hydra-rsh.c | 0 hydra-rtsp.c => services/hydra-rtsp.c | 0 hydra-s7-300.c => services/hydra-s7-300.c | 0 hydra-sapr3.c => services/hydra-sapr3.c | 0 hydra-sip.c => services/hydra-sip.c | 0 hydra-smb.c => services/hydra-smb.c | 0 hydra-smtp-enum.c => services/hydra-smtp-enum.c | 0 hydra-smtp.c => services/hydra-smtp.c | 0 hydra-snmp.c => services/hydra-snmp.c | 0 hydra-socks5.c => services/hydra-socks5.c | 0 hydra-ssh.c => services/hydra-ssh.c | 0 hydra-sshkey.c => services/hydra-sshkey.c | 0 hydra-svn.c => services/hydra-svn.c | 0 hydra-teamspeak.c => services/hydra-teamspeak.c | 0 hydra-telnet.c => services/hydra-telnet.c | 0 hydra-vmauthd.c => services/hydra-vmauthd.c | 0 hydra-vnc.c => services/hydra-vnc.c | 0 hydra-xmpp.c => services/hydra-xmpp.c | 0 50 files changed, 0 insertions(+), 0 deletions(-) rename hydra-adam6500.c => services/hydra-adam6500.c (100%) rename hydra-afp.c => services/hydra-afp.c (100%) rename hydra-asterisk.c => services/hydra-asterisk.c (100%) rename hydra-cisco-enable.c => services/hydra-cisco-enable.c (100%) rename hydra-cisco.c => services/hydra-cisco.c (100%) rename hydra-cvs.c => services/hydra-cvs.c (100%) rename hydra-firebird.c => services/hydra-firebird.c (100%) rename hydra-ftp.c => services/hydra-ftp.c (100%) rename hydra-http-form.c => services/hydra-http-form.c (100%) rename hydra-http-proxy-urlenum.c => services/hydra-http-proxy-urlenum.c (100%) rename hydra-http-proxy.c => services/hydra-http-proxy.c (100%) rename hydra-http.c => services/hydra-http.c (100%) rename hydra-icq.c => services/hydra-icq.c (100%) rename hydra-imap.c => services/hydra-imap.c (100%) rename hydra-irc.c => services/hydra-irc.c (100%) rename hydra-ldap.c => services/hydra-ldap.c (100%) rename hydra-mssql.c => services/hydra-mssql.c (100%) rename hydra-mysql.c => services/hydra-mysql.c (100%) rename hydra-ncp.c => services/hydra-ncp.c (100%) rename hydra-nntp.c => services/hydra-nntp.c (100%) rename hydra-oracle-listener.c => services/hydra-oracle-listener.c (100%) rename hydra-oracle-sid.c => services/hydra-oracle-sid.c (100%) rename hydra-oracle.c => services/hydra-oracle.c (100%) rename hydra-pcanywhere.c => services/hydra-pcanywhere.c (100%) rename hydra-pcnfs.c => services/hydra-pcnfs.c (100%) rename hydra-pop3.c => services/hydra-pop3.c (100%) rename hydra-postgres.c => services/hydra-postgres.c (100%) rename hydra-rdp.c => services/hydra-rdp.c (100%) rename hydra-redis.c => services/hydra-redis.c (100%) rename hydra-rexec.c => services/hydra-rexec.c (100%) rename hydra-rlogin.c => services/hydra-rlogin.c (100%) rename hydra-rpcap.c => services/hydra-rpcap.c (100%) rename hydra-rsh.c => services/hydra-rsh.c (100%) rename hydra-rtsp.c => services/hydra-rtsp.c (100%) rename hydra-s7-300.c => services/hydra-s7-300.c (100%) rename hydra-sapr3.c => services/hydra-sapr3.c (100%) rename hydra-sip.c => services/hydra-sip.c (100%) rename hydra-smb.c => services/hydra-smb.c (100%) rename hydra-smtp-enum.c => services/hydra-smtp-enum.c (100%) rename hydra-smtp.c => services/hydra-smtp.c (100%) rename hydra-snmp.c => services/hydra-snmp.c (100%) rename hydra-socks5.c => services/hydra-socks5.c (100%) rename hydra-ssh.c => services/hydra-ssh.c (100%) rename hydra-sshkey.c => services/hydra-sshkey.c (100%) rename hydra-svn.c => services/hydra-svn.c (100%) rename hydra-teamspeak.c => services/hydra-teamspeak.c (100%) rename hydra-telnet.c => services/hydra-telnet.c (100%) rename hydra-vmauthd.c => services/hydra-vmauthd.c (100%) rename hydra-vnc.c => services/hydra-vnc.c (100%) rename hydra-xmpp.c => services/hydra-xmpp.c (100%) diff --git a/hydra-adam6500.c b/services/hydra-adam6500.c similarity index 100% rename from hydra-adam6500.c rename to services/hydra-adam6500.c diff --git a/hydra-afp.c b/services/hydra-afp.c similarity index 100% rename from hydra-afp.c rename to services/hydra-afp.c diff --git a/hydra-asterisk.c b/services/hydra-asterisk.c similarity index 100% rename from hydra-asterisk.c rename to services/hydra-asterisk.c diff --git a/hydra-cisco-enable.c b/services/hydra-cisco-enable.c similarity index 100% rename from hydra-cisco-enable.c rename to services/hydra-cisco-enable.c diff --git a/hydra-cisco.c b/services/hydra-cisco.c similarity index 100% rename from hydra-cisco.c rename to services/hydra-cisco.c diff --git a/hydra-cvs.c b/services/hydra-cvs.c similarity index 100% rename from hydra-cvs.c rename to services/hydra-cvs.c diff --git a/hydra-firebird.c b/services/hydra-firebird.c similarity index 100% rename from hydra-firebird.c rename to services/hydra-firebird.c diff --git a/hydra-ftp.c b/services/hydra-ftp.c similarity index 100% rename from hydra-ftp.c rename to services/hydra-ftp.c diff --git a/hydra-http-form.c b/services/hydra-http-form.c similarity index 100% rename from hydra-http-form.c rename to services/hydra-http-form.c diff --git a/hydra-http-proxy-urlenum.c b/services/hydra-http-proxy-urlenum.c similarity index 100% rename from hydra-http-proxy-urlenum.c rename to services/hydra-http-proxy-urlenum.c diff --git a/hydra-http-proxy.c b/services/hydra-http-proxy.c similarity index 100% rename from hydra-http-proxy.c rename to services/hydra-http-proxy.c diff --git a/hydra-http.c b/services/hydra-http.c similarity index 100% rename from hydra-http.c rename to services/hydra-http.c diff --git a/hydra-icq.c b/services/hydra-icq.c similarity index 100% rename from hydra-icq.c rename to services/hydra-icq.c diff --git a/hydra-imap.c b/services/hydra-imap.c similarity index 100% rename from hydra-imap.c rename to services/hydra-imap.c diff --git a/hydra-irc.c b/services/hydra-irc.c similarity index 100% rename from hydra-irc.c rename to services/hydra-irc.c diff --git a/hydra-ldap.c b/services/hydra-ldap.c similarity index 100% rename from hydra-ldap.c rename to services/hydra-ldap.c diff --git a/hydra-mssql.c b/services/hydra-mssql.c similarity index 100% rename from hydra-mssql.c rename to services/hydra-mssql.c diff --git a/hydra-mysql.c b/services/hydra-mysql.c similarity index 100% rename from hydra-mysql.c rename to services/hydra-mysql.c diff --git a/hydra-ncp.c b/services/hydra-ncp.c similarity index 100% rename from hydra-ncp.c rename to services/hydra-ncp.c diff --git a/hydra-nntp.c b/services/hydra-nntp.c similarity index 100% rename from hydra-nntp.c rename to services/hydra-nntp.c diff --git a/hydra-oracle-listener.c b/services/hydra-oracle-listener.c similarity index 100% rename from hydra-oracle-listener.c rename to services/hydra-oracle-listener.c diff --git a/hydra-oracle-sid.c b/services/hydra-oracle-sid.c similarity index 100% rename from hydra-oracle-sid.c rename to services/hydra-oracle-sid.c diff --git a/hydra-oracle.c b/services/hydra-oracle.c similarity index 100% rename from hydra-oracle.c rename to services/hydra-oracle.c diff --git a/hydra-pcanywhere.c b/services/hydra-pcanywhere.c similarity index 100% rename from hydra-pcanywhere.c rename to services/hydra-pcanywhere.c diff --git a/hydra-pcnfs.c b/services/hydra-pcnfs.c similarity index 100% rename from hydra-pcnfs.c rename to services/hydra-pcnfs.c diff --git a/hydra-pop3.c b/services/hydra-pop3.c similarity index 100% rename from hydra-pop3.c rename to services/hydra-pop3.c diff --git a/hydra-postgres.c b/services/hydra-postgres.c similarity index 100% rename from hydra-postgres.c rename to services/hydra-postgres.c diff --git a/hydra-rdp.c b/services/hydra-rdp.c similarity index 100% rename from hydra-rdp.c rename to services/hydra-rdp.c diff --git a/hydra-redis.c b/services/hydra-redis.c similarity index 100% rename from hydra-redis.c rename to services/hydra-redis.c diff --git a/hydra-rexec.c b/services/hydra-rexec.c similarity index 100% rename from hydra-rexec.c rename to services/hydra-rexec.c diff --git a/hydra-rlogin.c b/services/hydra-rlogin.c similarity index 100% rename from hydra-rlogin.c rename to services/hydra-rlogin.c diff --git a/hydra-rpcap.c b/services/hydra-rpcap.c similarity index 100% rename from hydra-rpcap.c rename to services/hydra-rpcap.c diff --git a/hydra-rsh.c b/services/hydra-rsh.c similarity index 100% rename from hydra-rsh.c rename to services/hydra-rsh.c diff --git a/hydra-rtsp.c b/services/hydra-rtsp.c similarity index 100% rename from hydra-rtsp.c rename to services/hydra-rtsp.c diff --git a/hydra-s7-300.c b/services/hydra-s7-300.c similarity index 100% rename from hydra-s7-300.c rename to services/hydra-s7-300.c diff --git a/hydra-sapr3.c b/services/hydra-sapr3.c similarity index 100% rename from hydra-sapr3.c rename to services/hydra-sapr3.c diff --git a/hydra-sip.c b/services/hydra-sip.c similarity index 100% rename from hydra-sip.c rename to services/hydra-sip.c diff --git a/hydra-smb.c b/services/hydra-smb.c similarity index 100% rename from hydra-smb.c rename to services/hydra-smb.c diff --git a/hydra-smtp-enum.c b/services/hydra-smtp-enum.c similarity index 100% rename from hydra-smtp-enum.c rename to services/hydra-smtp-enum.c diff --git a/hydra-smtp.c b/services/hydra-smtp.c similarity index 100% rename from hydra-smtp.c rename to services/hydra-smtp.c diff --git a/hydra-snmp.c b/services/hydra-snmp.c similarity index 100% rename from hydra-snmp.c rename to services/hydra-snmp.c diff --git a/hydra-socks5.c b/services/hydra-socks5.c similarity index 100% rename from hydra-socks5.c rename to services/hydra-socks5.c diff --git a/hydra-ssh.c b/services/hydra-ssh.c similarity index 100% rename from hydra-ssh.c rename to services/hydra-ssh.c diff --git a/hydra-sshkey.c b/services/hydra-sshkey.c similarity index 100% rename from hydra-sshkey.c rename to services/hydra-sshkey.c diff --git a/hydra-svn.c b/services/hydra-svn.c similarity index 100% rename from hydra-svn.c rename to services/hydra-svn.c diff --git a/hydra-teamspeak.c b/services/hydra-teamspeak.c similarity index 100% rename from hydra-teamspeak.c rename to services/hydra-teamspeak.c diff --git a/hydra-telnet.c b/services/hydra-telnet.c similarity index 100% rename from hydra-telnet.c rename to services/hydra-telnet.c diff --git a/hydra-vmauthd.c b/services/hydra-vmauthd.c similarity index 100% rename from hydra-vmauthd.c rename to services/hydra-vmauthd.c diff --git a/hydra-vnc.c b/services/hydra-vnc.c similarity index 100% rename from hydra-vnc.c rename to services/hydra-vnc.c diff --git a/hydra-xmpp.c b/services/hydra-xmpp.c similarity index 100% rename from hydra-xmpp.c rename to services/hydra-xmpp.c From 93ca2d1bf396e346128f7c6687f3fbd39918dd29 Mon Sep 17 00:00:00 2001 From: Diadlo Date: Thu, 22 Jun 2017 11:05:51 +0300 Subject: [PATCH 2/6] Update Makefile --- Makefile.am | 60 +++++++++++++++++++++++++++++++++-------------------- 1 file changed, 37 insertions(+), 23 deletions(-) diff --git a/Makefile.am b/Makefile.am index f0f7754..c2ef7ba 100644 --- a/Makefile.am +++ b/Makefile.am @@ -9,28 +9,42 @@ MANDIR ?= /man/man1/ DATADIR ?= /etc DESTDIR ?= -SRC = hydra-vnc.c hydra-pcnfs.c hydra-rexec.c hydra-nntp.c hydra-socks5.c \ - hydra-telnet.c hydra-cisco.c hydra-http.c hydra-ftp.c hydra-imap.c \ - hydra-pop3.c hydra-smb.c hydra-icq.c hydra-cisco-enable.c hydra-ldap.c \ - hydra-mysql.c hydra-mssql.c hydra-xmpp.c hydra-http-proxy-urlenum.c \ - hydra-snmp.c hydra-cvs.c hydra-smtp.c hydra-smtp-enum.c hydra-sapr3.c hydra-ssh.c \ - hydra-sshkey.c hydra-teamspeak.c hydra-postgres.c hydra-rsh.c hydra-rlogin.c \ - hydra-oracle-listener.c hydra-svn.c hydra-pcanywhere.c hydra-sip.c \ - hydra-oracle.c hydra-vmauthd.c hydra-asterisk.c hydra-firebird.c hydra-afp.c hydra-ncp.c \ - hydra-oracle-sid.c hydra-http-proxy.c hydra-http-form.c hydra-irc.c \ - hydra-rdp.c hydra-s7-300.c hydra-redis.c hydra-adam6500.c \ - crc32.c d3des.c bfg.c ntlm.c sasl.c hmacmd5.c hydra-mod.c hydra-rtsp.c hydra-time.c hydra-rpcap.c -OBJ = hydra-vnc.o hydra-pcnfs.o hydra-rexec.o hydra-nntp.o hydra-socks5.o \ - hydra-telnet.o hydra-cisco.o hydra-http.o hydra-ftp.o hydra-imap.o \ - hydra-pop3.o hydra-smb.o hydra-icq.o hydra-cisco-enable.o hydra-ldap.o \ - hydra-mysql.o hydra-mssql.o hydra-xmpp.o hydra-http-proxy-urlenum.o \ - hydra-snmp.o hydra-cvs.o hydra-smtp.o hydra-smtp-enum.o hydra-sapr3.o hydra-ssh.o \ - hydra-sshkey.o hydra-teamspeak.o hydra-postgres.o hydra-rsh.o hydra-rlogin.o \ - hydra-oracle-listener.o hydra-svn.o hydra-pcanywhere.o hydra-sip.o \ - hydra-oracle-sid.o hydra-oracle.o hydra-vmauthd.o hydra-asterisk.o hydra-firebird.o hydra-afp.o hydra-ncp.o \ - hydra-http-proxy.o hydra-http-form.o hydra-irc.o hydra-redis.o \ - hydra-rdp.o hydra-s7-300.c hydra-adam6500.o \ - crc32.o d3des.o bfg.o ntlm.o sasl.o hmacmd5.o hydra-mod.o hydra-rtsp.o hydra-time.o hydra-rpcap.o +SRC = services/hydra-vnc.c services/hydra-pcnfs.c services/hydra-rexec.c \ + services/hydra-nntp.c services/hydra-socks5.c services/hydra-telnet.c \ + services/hydra-cisco.c services/hydra-http.c services/hydra-ftp.c \ + services/hydra-imap.c services/hydra-pop3.c services/hydra-smb.c \ + services/hydra-icq.c services/hydra-cisco-enable.c services/hydra-ldap.c \ + services/hydra-mysql.c services/hydra-mssql.c services/hydra-xmpp.c \ + services/hydra-http-proxy-urlenum.c services/hydra-snmp.c \ + services/hydra-cvs.c services/hydra-smtp.c services/hydra-smtp-enum.c \ + services/hydra-sapr3.c services/hydra-ssh.c services/hydra-sshkey.c \ + services/hydra-teamspeak.c services/hydra-postgres.c services/hydra-rsh.c \ + services/hydra-rlogin.c services/hydra-oracle-listener.c services/hydra-svn.c \ + services/hydra-pcanywhere.c services/hydra-sip.c services/hydra-oracle.c \ + services/hydra-vmauthd.c services/hydra-asterisk.c services/hydra-firebird.c \ + services/hydra-afp.c services/hydra-ncp.c services/hydra-oracle-sid.c \ + services/hydra-http-proxy.c services/hydra-http-form.c services/hydra-irc.c \ + services/hydra-rdp.c services/hydra-s7-300.c services/hydra-redis.c \ + services/hydra-adam6500.c services/hydra-rtsp.c services/hydra-rpcap.c \ + crc32.c d3des.c bfg.c ntlm.c sasl.c hmacmd5.c hydra-mod.c hydra-time.c +OBJ = services/hydra-vnc.o services/hydra-pcnfs.o services/hydra-rexec.o \ + services/hydra-nntp.o services/hydra-socks5.o services/hydra-telnet.o \ + services/hydra-cisco.o services/hydra-http.o services/hydra-ftp.o \ + services/hydra-imap.o services/hydra-pop3.o services/hydra-smb.o \ + services/hydra-icq.o services/hydra-cisco-enable.o services/hydra-ldap.o \ + services/hydra-mysql.o services/hydra-mssql.o services/hydra-xmpp.o \ + services/hydra-http-proxy-urlenum.o services/hydra-snmp.o \ + services/hydra-cvs.o services/hydra-smtp.o services/hydra-smtp-enum.o \ + services/hydra-sapr3.o services/hydra-ssh.o services/hydra-sshkey.o \ + services/hydra-teamspeak.o services/hydra-postgres.o services/hydra-rsh.o \ + services/hydra-rlogin.o services/hydra-oracle-listener.o services/hydra-svn.o \ + services/hydra-pcanywhere.o services/hydra-sip.o services/hydra-oracle-sid.o \ + services/hydra-oracle.o services/hydra-vmauthd.o services/hydra-asterisk.o \ + services/hydra-firebird.o services/hydra-afp.o services/hydra-ncp.o \ + services/hydra-http-proxy.o services/hydra-http-form.o services/hydra-irc.o \ + services/hydra-redis.o services/hydra-rdp.o services/hydra-s7-300.c \ + services/hydra-adam6500.o services/hydra-rtsp.o services/hydra-rpcap.o \ + crc32.o d3des.o bfg.o ntlm.o sasl.o hmacmd5.o hydra-mod.o hydra-time.o BINS = hydra pw-inspector EXTRA_DIST = README README.arm README.palm CHANGES TODO INSTALL LICENSE \ @@ -53,7 +67,7 @@ pw-inspector: pw-inspector.c -$(CC) $(OPTS) $(SEC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -o pw-inspector $(PWI_LOGO) pw-inspector.c .c.o: - $(CC) $(OPTS) $(SEC) $(CFLAGS) $(CPPFLAGS) -c $< $(XDEFINES) $(XIPATHS) + $(CC) $(OPTS) $(SEC) $(CFLAGS) $(CPPFLAGS) -c $< $(XDEFINES) $(XIPATHS) -o $@ strip: all strip $(BINS) From 7d2d9cfa573d826ec5730c874789a7ce86275596 Mon Sep 17 00:00:00 2001 From: Diadlo Date: Thu, 22 Jun 2017 12:41:59 +0300 Subject: [PATCH 3/6] Add header file for each service --- services/hydra-adam6500.h | 8 ++++++++ services/hydra-afp.h | 8 ++++++++ services/hydra-asterisk.h | 8 ++++++++ services/hydra-cisco-enable.h | 8 ++++++++ services/hydra-cisco.h | 8 ++++++++ services/hydra-cvs.h | 8 ++++++++ services/hydra-firebird.h | 8 ++++++++ services/hydra-ftp.h | 9 +++++++++ services/hydra-http-form.h | 9 +++++++++ services/hydra-http-proxy-urlenum.h | 8 ++++++++ services/hydra-http-proxy.h | 8 ++++++++ services/hydra-http.h | 10 ++++++++++ services/hydra-icq.h | 8 ++++++++ services/hydra-imap.h | 8 ++++++++ services/hydra-irc.h | 8 ++++++++ services/hydra-ldap.h | 11 +++++++++++ services/hydra-mssql.h | 8 ++++++++ services/hydra-mysql.h | 8 ++++++++ services/hydra-ncp.h | 8 ++++++++ services/hydra-nntp.h | 8 ++++++++ services/hydra-oracle-listener.h | 8 ++++++++ services/hydra-oracle-sid.h | 8 ++++++++ services/hydra-oracle.h | 8 ++++++++ services/hydra-pcanywhere.h | 8 ++++++++ services/hydra-pcnfs.h | 8 ++++++++ services/hydra-pop3.h | 8 ++++++++ services/hydra-postgres.h | 8 ++++++++ services/hydra-rdp.h | 8 ++++++++ services/hydra-redis.h | 8 ++++++++ services/hydra-rexec.h | 8 ++++++++ services/hydra-rlogin.h | 8 ++++++++ services/hydra-rpcap.h | 8 ++++++++ services/hydra-rsh.h | 8 ++++++++ services/hydra-rtsp.h | 8 ++++++++ services/hydra-s7-300.h | 8 ++++++++ services/hydra-sapr3.h | 8 ++++++++ services/hydra-sip.h | 8 ++++++++ services/hydra-smb.h | 8 ++++++++ services/hydra-smtp-enum.h | 8 ++++++++ services/hydra-smtp.h | 8 ++++++++ services/hydra-snmp.h | 8 ++++++++ services/hydra-socks5.h | 8 ++++++++ services/hydra-ssh.h | 8 ++++++++ services/hydra-sshkey.h | 8 ++++++++ services/hydra-svn.h | 8 ++++++++ services/hydra-teamspeak.h | 8 ++++++++ services/hydra-telnet.h | 8 ++++++++ services/hydra-vmauthd.h | 8 ++++++++ services/hydra-vnc.h | 8 ++++++++ services/hydra-xmpp.h | 8 ++++++++ 50 files changed, 407 insertions(+) create mode 100644 services/hydra-adam6500.h create mode 100644 services/hydra-afp.h create mode 100644 services/hydra-asterisk.h create mode 100644 services/hydra-cisco-enable.h create mode 100644 services/hydra-cisco.h create mode 100644 services/hydra-cvs.h create mode 100644 services/hydra-firebird.h create mode 100644 services/hydra-ftp.h create mode 100644 services/hydra-http-form.h create mode 100644 services/hydra-http-proxy-urlenum.h create mode 100644 services/hydra-http-proxy.h create mode 100644 services/hydra-http.h create mode 100644 services/hydra-icq.h create mode 100644 services/hydra-imap.h create mode 100644 services/hydra-irc.h create mode 100644 services/hydra-ldap.h create mode 100644 services/hydra-mssql.h create mode 100644 services/hydra-mysql.h create mode 100644 services/hydra-ncp.h create mode 100644 services/hydra-nntp.h create mode 100644 services/hydra-oracle-listener.h create mode 100644 services/hydra-oracle-sid.h create mode 100644 services/hydra-oracle.h create mode 100644 services/hydra-pcanywhere.h create mode 100644 services/hydra-pcnfs.h create mode 100644 services/hydra-pop3.h create mode 100644 services/hydra-postgres.h create mode 100644 services/hydra-rdp.h create mode 100644 services/hydra-redis.h create mode 100644 services/hydra-rexec.h create mode 100644 services/hydra-rlogin.h create mode 100644 services/hydra-rpcap.h create mode 100644 services/hydra-rsh.h create mode 100644 services/hydra-rtsp.h create mode 100644 services/hydra-s7-300.h create mode 100644 services/hydra-sapr3.h create mode 100644 services/hydra-sip.h create mode 100644 services/hydra-smb.h create mode 100644 services/hydra-smtp-enum.h create mode 100644 services/hydra-smtp.h create mode 100644 services/hydra-snmp.h create mode 100644 services/hydra-socks5.h create mode 100644 services/hydra-ssh.h create mode 100644 services/hydra-sshkey.h create mode 100644 services/hydra-svn.h create mode 100644 services/hydra-teamspeak.h create mode 100644 services/hydra-telnet.h create mode 100644 services/hydra-vmauthd.h create mode 100644 services/hydra-vnc.h create mode 100644 services/hydra-xmpp.h diff --git a/services/hydra-adam6500.h b/services/hydra-adam6500.h new file mode 100644 index 0000000..7df03ca --- /dev/null +++ b/services/hydra-adam6500.h @@ -0,0 +1,8 @@ +#ifndef _HYDRA_SERVICE_ADAM6500_H_ +#define _HYDRA_SERVICE_ADAM6500_H_ + +void service_adam6500(char *ip, int sp, unsigned char options, char *miscptr, FILE * fp, int port, char *hostname); +int service_adam6500_init(char *ip, int sp, unsigned char options, char *miscptr, FILE * fp, int port, char *hostname); +void usage_adam6500(const char* service); + +#endif /* _HYDRA_SERVICE_ADAM6500_H_ */ diff --git a/services/hydra-afp.h b/services/hydra-afp.h new file mode 100644 index 0000000..ae90af1 --- /dev/null +++ b/services/hydra-afp.h @@ -0,0 +1,8 @@ +#ifndef _HYDRA_SERVICE_AFP_H_ +#define _HYDRA_SERVICE_AFP_H_ + +void service_afp(char *ip, int sp, unsigned char options, char *miscptr, FILE * fp, int port, char *hostname); +int service_afp_init(char *ip, int sp, unsigned char options, char *miscptr, FILE * fp, int port, char *hostname); +void usage_afp(const char* service); + +#endif /* _HYDRA_SERVICE_AFP_H_ */ diff --git a/services/hydra-asterisk.h b/services/hydra-asterisk.h new file mode 100644 index 0000000..885a97f --- /dev/null +++ b/services/hydra-asterisk.h @@ -0,0 +1,8 @@ +#ifndef _HYDRA_SERVICE_ASTERISK_H_ +#define _HYDRA_SERVICE_ASTERISK_H_ + +void service_asterisk(char *ip, int sp, unsigned char options, char *miscptr, FILE * fp, int port, char *hostname); +int service_asterisk_init(char *ip, int sp, unsigned char options, char *miscptr, FILE * fp, int port, char *hostname); +void usage_asterisk(const char* service); + +#endif /* _HYDRA_SERVICE_ASTERISK_H_ */ diff --git a/services/hydra-cisco-enable.h b/services/hydra-cisco-enable.h new file mode 100644 index 0000000..3b58cfc --- /dev/null +++ b/services/hydra-cisco-enable.h @@ -0,0 +1,8 @@ +#ifndef _HYDRA_SERVICE_CISCO_ENABLE_H_ +#define _HYDRA_SERVICE_CISCO_ENABLE_H_ + +void service_cisco_enable(char *ip, int sp, unsigned char options, char *miscptr, FILE * fp, int port, char *hostname); +int service_cisco_enable_init(char *ip, int sp, unsigned char options, char *miscptr, FILE * fp, int port, char *hostname); +void usage_cisco_enable(const char* service); + +#endif /* _HYDRA_SERVICE_CISCO_ENABLE_H_ */ diff --git a/services/hydra-cisco.h b/services/hydra-cisco.h new file mode 100644 index 0000000..a96d23b --- /dev/null +++ b/services/hydra-cisco.h @@ -0,0 +1,8 @@ +#ifndef _HYDRA_SERVICE_CISCO_H_ +#define _HYDRA_SERVICE_CISCO_H_ + +void service_cisco(char *ip, int sp, unsigned char options, char *miscptr, FILE * fp, int port, char *hostname); +int service_cisco_init(char *ip, int sp, unsigned char options, char *miscptr, FILE * fp, int port, char *hostname); +void usage_cisco(const char* service); + +#endif /* _HYDRA_SERVICE_CISCO_H_ */ diff --git a/services/hydra-cvs.h b/services/hydra-cvs.h new file mode 100644 index 0000000..94d5e4d --- /dev/null +++ b/services/hydra-cvs.h @@ -0,0 +1,8 @@ +#ifndef _HYDRA_SERVICE_CVS_H_ +#define _HYDRA_SERVICE_CVS_H_ + +void service_cvs(char *ip, int sp, unsigned char options, char *miscptr, FILE * fp, int port, char *hostname); +int service_cvs_init(char *ip, int sp, unsigned char options, char *miscptr, FILE * fp, int port, char *hostname); +void usage_cvs(const char* service); + +#endif /* _HYDRA_SERVICE_CVS_H_ */ diff --git a/services/hydra-firebird.h b/services/hydra-firebird.h new file mode 100644 index 0000000..c9d25c7 --- /dev/null +++ b/services/hydra-firebird.h @@ -0,0 +1,8 @@ +#ifndef _HYDRA_SERVICE_FIREBIRD_H_ +#define _HYDRA_SERVICE_FIREBIRD_H_ + +void service_firebird(char *ip, int sp, unsigned char options, char *miscptr, FILE * fp, int port, char *hostname); +int service_firebird_init(char *ip, int sp, unsigned char options, char *miscptr, FILE * fp, int port, char *hostname); +void usage_firebird(const char* service); + +#endif /* _HYDRA_SERVICE_FIREBIRD_H_ */ diff --git a/services/hydra-ftp.h b/services/hydra-ftp.h new file mode 100644 index 0000000..8db5eb0 --- /dev/null +++ b/services/hydra-ftp.h @@ -0,0 +1,9 @@ +#ifndef _HYDRA_SERVICE_FTP_H_ +#define _HYDRA_SERVICE_FTP_H_ + +void service_ftp(char *ip, int sp, unsigned char options, char *miscptr, FILE * fp, int port, char *hostname); +void service_ftps(char *ip, int sp, unsigned char options, char *miscptr, FILE * fp, int port, char *hostname); +int service_ftp_init(char *ip, int sp, unsigned char options, char *miscptr, FILE * fp, int port, char *hostname); +void usage_ftp(const char* service); + +#endif /* _HYDRA_SERVICE_FTP_H_ */ diff --git a/services/hydra-http-form.h b/services/hydra-http-form.h new file mode 100644 index 0000000..eca7959 --- /dev/null +++ b/services/hydra-http-form.h @@ -0,0 +1,9 @@ +#ifndef _HYDRA_SERVICE_HTTP_FORM_H_ +#define _HYDRA_SERVICE_HTTP_FORM_H_ + +void service_http_post_form(char *ip, int sp, unsigned char options, char *miscptr, FILE * fp, int port, char *hostname); +void service_http_get_form(char *ip, int sp, unsigned char options, char *miscptr, FILE * fp, int port, char *hostname); +int service_http_form_init(char *ip, int sp, unsigned char options, char *miscptr, FILE * fp, int port, char *hostname); +void usage_http_form(const char* service); + +#endif /* _HYDRA_SERVICE_HTTP_FORM_H_ */ diff --git a/services/hydra-http-proxy-urlenum.h b/services/hydra-http-proxy-urlenum.h new file mode 100644 index 0000000..4f28b7a --- /dev/null +++ b/services/hydra-http-proxy-urlenum.h @@ -0,0 +1,8 @@ +#ifndef _HYDRA_SERVICE_HTTP_PROXY_URLENUM_H_ +#define _HYDRA_SERVICE_HTTP_PROXY_URLENUM_H_ + +void service_http_proxy_urlenum(char *ip, int sp, unsigned char options, char *miscptr, FILE * fp, int port, char *hostname); +int service_http_proxy_urlenum_init(char *ip, int sp, unsigned char options, char *miscptr, FILE * fp, int port, char *hostname); +void usage_http_proxy_urlenum(const char* service); + +#endif /* _HYDRA_SERVICE_HTTP_PROXY_URLENUM_H_ */ diff --git a/services/hydra-http-proxy.h b/services/hydra-http-proxy.h new file mode 100644 index 0000000..4c247cb --- /dev/null +++ b/services/hydra-http-proxy.h @@ -0,0 +1,8 @@ +#ifndef _HYDRA_SERVICE_HTTP_PROXY_H_ +#define _HYDRA_SERVICE_HTTP_PROXY_H_ + +void service_http_proxy(char *ip, int sp, unsigned char options, char *miscptr, FILE * fp, int port, char *hostname); +int service_http_proxy_init(char *ip, int sp, unsigned char options, char *miscptr, FILE * fp, int port, char *hostname); +void usage_http_proxy(const char* service); + +#endif /* _HYDRA_SERVICE_HTTP_PROXY_H_ */ diff --git a/services/hydra-http.h b/services/hydra-http.h new file mode 100644 index 0000000..a72871d --- /dev/null +++ b/services/hydra-http.h @@ -0,0 +1,10 @@ +#ifndef _HYDRA_SERVICE_HTTP_H_ +#define _HYDRA_SERVICE_HTTP_H_ + +void service_http_get(char *ip, int sp, unsigned char options, char *miscptr, FILE * fp, int port, char *hostname); +void service_http_head(char *ip, int sp, unsigned char options, char *miscptr, FILE * fp, int port, char *hostname); +void service_http_post(char *ip, int sp, unsigned char options, char *miscptr, FILE * fp, int port, char *hostname); +int service_http_init(char *ip, int sp, unsigned char options, char *miscptr, FILE * fp, int port, char *hostname); +void usage_http(const char* service); + +#endif /* _HYDRA_SERVICE_HTTP_H_ */ diff --git a/services/hydra-icq.h b/services/hydra-icq.h new file mode 100644 index 0000000..1f64ddb --- /dev/null +++ b/services/hydra-icq.h @@ -0,0 +1,8 @@ +#ifndef _HYDRA_SERVICE_ICQ_H_ +#define _HYDRA_SERVICE_ICQ_H_ + +void service_icq(char *ip, int sp, unsigned char options, char *miscptr, FILE * fp, int port, char *hostname); +int service_icq_init(char *ip, int sp, unsigned char options, char *miscptr, FILE * fp, int port, char *hostname); +void usage_icq(const char* service); + +#endif /* _HYDRA_SERVICE_ICQ_H_ */ diff --git a/services/hydra-imap.h b/services/hydra-imap.h new file mode 100644 index 0000000..a766a57 --- /dev/null +++ b/services/hydra-imap.h @@ -0,0 +1,8 @@ +#ifndef _HYDRA_SERVICE_IMAP_H_ +#define _HYDRA_SERVICE_IMAP_H_ + +void service_imap(char *ip, int sp, unsigned char options, char *miscptr, FILE * fp, int port, char *hostname); +int service_imap_init(char *ip, int sp, unsigned char options, char *miscptr, FILE * fp, int port, char *hostname); +void usage_imap(const char* service); + +#endif /* _HYDRA_SERVICE_IMAP_H_ */ diff --git a/services/hydra-irc.h b/services/hydra-irc.h new file mode 100644 index 0000000..d5e7acd --- /dev/null +++ b/services/hydra-irc.h @@ -0,0 +1,8 @@ +#ifndef _HYDRA_SERVICE_IRC_H_ +#define _HYDRA_SERVICE_IRC_H_ + +void service_irc(char *ip, int sp, unsigned char options, char *miscptr, FILE * fp, int port, char *hostname); +int service_irc_init(char *ip, int sp, unsigned char options, char *miscptr, FILE * fp, int port, char *hostname); +void usage_irc(const char* service); + +#endif /* _HYDRA_SERVICE_IRC_H_ */ diff --git a/services/hydra-ldap.h b/services/hydra-ldap.h new file mode 100644 index 0000000..df5b80a --- /dev/null +++ b/services/hydra-ldap.h @@ -0,0 +1,11 @@ +#ifndef _HYDRA_SERVICE_LDAP_H_ +#define _HYDRA_SERVICE_LDAP_H_ + +void service_ldap2(char *ip, int sp, unsigned char options, char *miscptr, FILE * fp, int port, char *hostname); +void service_ldap3(char *ip, int sp, unsigned char options, char *miscptr, FILE * fp, int port, char *hostname); +void service_ldap3_cram_md5(char *ip, int sp, unsigned char options, char *miscptr, FILE * fp, int port, char *hostname); +void service_ldap3_digest_md5(char *ip, int sp, unsigned char options, char *miscptr, FILE * fp, int port, char *hostname); +int service_ldap_init(char *ip, int sp, unsigned char options, char *miscptr, FILE * fp, int port, char *hostname); +void usage_ldap(const char* service); + +#endif /* _HYDRA_SERVICE_LDAP_H_ */ diff --git a/services/hydra-mssql.h b/services/hydra-mssql.h new file mode 100644 index 0000000..e060fb7 --- /dev/null +++ b/services/hydra-mssql.h @@ -0,0 +1,8 @@ +#ifndef _HYDRA_SERVICE_MSSQL_H_ +#define _HYDRA_SERVICE_MSSQL_H_ + +void service_mssql(char *ip, int sp, unsigned char options, char *miscptr, FILE * fp, int port, char *hostname); +int service_mssql_init(char *ip, int sp, unsigned char options, char *miscptr, FILE * fp, int port, char *hostname); +void usage_mssql(const char* service); + +#endif /* _HYDRA_SERVICE_MSSQL_H_ */ diff --git a/services/hydra-mysql.h b/services/hydra-mysql.h new file mode 100644 index 0000000..d2452af --- /dev/null +++ b/services/hydra-mysql.h @@ -0,0 +1,8 @@ +#ifndef _HYDRA_SERVICE_MYSQL_H_ +#define _HYDRA_SERVICE_MYSQL_H_ + +void service_mysql(char *ip, int sp, unsigned char options, char *miscptr, FILE * fp, int port, char *hostname); +int service_mysql_init(char *ip, int sp, unsigned char options, char *miscptr, FILE * fp, int port, char *hostname); +void usage_mysql(const char* service); + +#endif /* _HYDRA_SERVICE_MYSQL_H_ */ diff --git a/services/hydra-ncp.h b/services/hydra-ncp.h new file mode 100644 index 0000000..ee6dd85d --- /dev/null +++ b/services/hydra-ncp.h @@ -0,0 +1,8 @@ +#ifndef _HYDRA_SERVICE_NCP_H_ +#define _HYDRA_SERVICE_NCP_H_ + +void service_ncp(char *ip, int sp, unsigned char options, char *miscptr, FILE * fp, int port, char *hostname); +int service_ncp_init(char *ip, int sp, unsigned char options, char *miscptr, FILE * fp, int port, char *hostname); +void usage_ncp(const char* service); + +#endif /* _HYDRA_SERVICE_NCP_H_ */ diff --git a/services/hydra-nntp.h b/services/hydra-nntp.h new file mode 100644 index 0000000..f63455c --- /dev/null +++ b/services/hydra-nntp.h @@ -0,0 +1,8 @@ +#ifndef _HYDRA_SERVICE_NNTP_H_ +#define _HYDRA_SERVICE_NNTP_H_ + +void service_nntp(char *ip, int sp, unsigned char options, char *miscptr, FILE * fp, int port, char *hostname); +int service_nntp_init(char *ip, int sp, unsigned char options, char *miscptr, FILE * fp, int port, char *hostname); +void usage_nntp(const char* service); + +#endif /* _HYDRA_SERVICE_NNTP_H_ */ diff --git a/services/hydra-oracle-listener.h b/services/hydra-oracle-listener.h new file mode 100644 index 0000000..9bc93a0 --- /dev/null +++ b/services/hydra-oracle-listener.h @@ -0,0 +1,8 @@ +#ifndef _HYDRA_SERVICE_ORACLE_LISTENER_H_ +#define _HYDRA_SERVICE_ORACLE_LISTENER_H_ + +void service_oracle_listener(char *ip, int sp, unsigned char options, char *miscptr, FILE * fp, int port, char *hostname); +int service_oracle_listener_init(char *ip, int sp, unsigned char options, char *miscptr, FILE * fp, int port, char *hostname); +void usage_oracle_listener(const char* service); + +#endif /* _HYDRA_SERVICE_ORACLE_LISTENER_H_ */ diff --git a/services/hydra-oracle-sid.h b/services/hydra-oracle-sid.h new file mode 100644 index 0000000..d9dd047 --- /dev/null +++ b/services/hydra-oracle-sid.h @@ -0,0 +1,8 @@ +#ifndef _HYDRA_SERVICE_ORACLE_SID_H_ +#define _HYDRA_SERVICE_ORACLE_SID_H_ + +void service_oracle_sid(char *ip, int sp, unsigned char options, char *miscptr, FILE * fp, int port, char *hostname); +int service_oracle_sid_init(char *ip, int sp, unsigned char options, char *miscptr, FILE * fp, int port, char *hostname); +void usage_oracle_sid(const char* service); + +#endif /* _HYDRA_SERVICE_ORACLE_SID_H_ */ diff --git a/services/hydra-oracle.h b/services/hydra-oracle.h new file mode 100644 index 0000000..44204a6 --- /dev/null +++ b/services/hydra-oracle.h @@ -0,0 +1,8 @@ +#ifndef _HYDRA_SERVICE_ORACLE_H_ +#define _HYDRA_SERVICE_ORACLE_H_ + +void service_oracle(char *ip, int sp, unsigned char options, char *miscptr, FILE * fp, int port, char *hostname); +int service_oracle_init(char *ip, int sp, unsigned char options, char *miscptr, FILE * fp, int port, char *hostname); +void usage_oracle(const char* service); + +#endif /* _HYDRA_SERVICE_ORACLE_H_ */ diff --git a/services/hydra-pcanywhere.h b/services/hydra-pcanywhere.h new file mode 100644 index 0000000..8532223 --- /dev/null +++ b/services/hydra-pcanywhere.h @@ -0,0 +1,8 @@ +#ifndef _HYDRA_SERVICE_PCANYWHERE_H_ +#define _HYDRA_SERVICE_PCANYWHERE_H_ + +void service_pcanywhere(char *ip, int sp, unsigned char options, char *miscptr, FILE * fp, int port, char *hostname); +int service_pcanywhere_init(char *ip, int sp, unsigned char options, char *miscptr, FILE * fp, int port, char *hostname); +void usage_pcanywhere(const char* service); + +#endif /* _HYDRA_SERVICE_PCANYWHERE_H_ */ diff --git a/services/hydra-pcnfs.h b/services/hydra-pcnfs.h new file mode 100644 index 0000000..36836f0 --- /dev/null +++ b/services/hydra-pcnfs.h @@ -0,0 +1,8 @@ +#ifndef _HYDRA_SERVICE_PCNFS_H_ +#define _HYDRA_SERVICE_PCNFS_H_ + +void service_pcnfs(char *ip, int sp, unsigned char options, char *miscptr, FILE * fp, int port, char *hostname); +int service_pcnfs_init(char *ip, int sp, unsigned char options, char *miscptr, FILE * fp, int port, char *hostname); +void usage_pcnfs(const char* service); + +#endif /* _HYDRA_SERVICE_PCNFS_H_ */ diff --git a/services/hydra-pop3.h b/services/hydra-pop3.h new file mode 100644 index 0000000..b306729 --- /dev/null +++ b/services/hydra-pop3.h @@ -0,0 +1,8 @@ +#ifndef _HYDRA_SERVICE_POP3_H_ +#define _HYDRA_SERVICE_POP3_H_ + +void service_pop3(char *ip, int sp, unsigned char options, char *miscptr, FILE * fp, int port, char *hostname); +int service_pop3_init(char *ip, int sp, unsigned char options, char *miscptr, FILE * fp, int port, char *hostname); +void usage_pop3(const char* service); + +#endif /* _HYDRA_SERVICE_POP3_H_ */ diff --git a/services/hydra-postgres.h b/services/hydra-postgres.h new file mode 100644 index 0000000..b1c4dc4 --- /dev/null +++ b/services/hydra-postgres.h @@ -0,0 +1,8 @@ +#ifndef _HYDRA_SERVICE_POSTGRES_H_ +#define _HYDRA_SERVICE_POSTGRES_H_ + +void service_postgres(char *ip, int sp, unsigned char options, char *miscptr, FILE * fp, int port, char *hostname); +int service_postgres_init(char *ip, int sp, unsigned char options, char *miscptr, FILE * fp, int port, char *hostname); +void usage_postgres(const char* service); + +#endif /* _HYDRA_SERVICE_POSTGRES_H_ */ diff --git a/services/hydra-rdp.h b/services/hydra-rdp.h new file mode 100644 index 0000000..36ea4fb --- /dev/null +++ b/services/hydra-rdp.h @@ -0,0 +1,8 @@ +#ifndef _HYDRA_SERVICE_RDP_H_ +#define _HYDRA_SERVICE_RDP_H_ + +void service_rdp(char *ip, int sp, unsigned char options, char *miscptr, FILE * fp, int port, char *hostname); +int service_rdp_init(char *ip, int sp, unsigned char options, char *miscptr, FILE * fp, int port, char *hostname); +void usage_rdp(const char* service); + +#endif /* _HYDRA_SERVICE_RDP_H_ */ diff --git a/services/hydra-redis.h b/services/hydra-redis.h new file mode 100644 index 0000000..b01f238 --- /dev/null +++ b/services/hydra-redis.h @@ -0,0 +1,8 @@ +#ifndef _HYDRA_SERVICE_REDIS_H_ +#define _HYDRA_SERVICE_REDIS_H_ + +void service_redis(char *ip, int sp, unsigned char options, char *miscptr, FILE * fp, int port, char *hostname); +int service_redis_init(char *ip, int sp, unsigned char options, char *miscptr, FILE * fp, int port, char *hostname); +void usage_redis(const char* service); + +#endif /* _HYDRA_SERVICE_REDIS_H_ */ diff --git a/services/hydra-rexec.h b/services/hydra-rexec.h new file mode 100644 index 0000000..a453e76 --- /dev/null +++ b/services/hydra-rexec.h @@ -0,0 +1,8 @@ +#ifndef _HYDRA_SERVICE_REXEC_H_ +#define _HYDRA_SERVICE_REXEC_H_ + +void service_rexec(char *ip, int sp, unsigned char options, char *miscptr, FILE * fp, int port, char *hostname); +int service_rexec_init(char *ip, int sp, unsigned char options, char *miscptr, FILE * fp, int port, char *hostname); +void usage_rexec(const char* service); + +#endif /* _HYDRA_SERVICE_REXEC_H_ */ diff --git a/services/hydra-rlogin.h b/services/hydra-rlogin.h new file mode 100644 index 0000000..c05674c --- /dev/null +++ b/services/hydra-rlogin.h @@ -0,0 +1,8 @@ +#ifndef _HYDRA_SERVICE_RLOGIN_H_ +#define _HYDRA_SERVICE_RLOGIN_H_ + +void service_rlogin(char *ip, int sp, unsigned char options, char *miscptr, FILE * fp, int port, char *hostname); +int service_rlogin_init(char *ip, int sp, unsigned char options, char *miscptr, FILE * fp, int port, char *hostname); +void usage_rlogin(const char* service); + +#endif /* _HYDRA_SERVICE_RLOGIN_H_ */ diff --git a/services/hydra-rpcap.h b/services/hydra-rpcap.h new file mode 100644 index 0000000..8a09b3f --- /dev/null +++ b/services/hydra-rpcap.h @@ -0,0 +1,8 @@ +#ifndef _HYDRA_SERVICE_RPCAP_H_ +#define _HYDRA_SERVICE_RPCAP_H_ + +void service_rpcap(char *ip, int sp, unsigned char options, char *miscptr, FILE * fp, int port, char *hostname); +int service_rpcap_init(char *ip, int sp, unsigned char options, char *miscptr, FILE * fp, int port, char *hostname); +void usage_rpcap(const char* service); + +#endif /* _HYDRA_SERVICE_RPCAP_H_ */ diff --git a/services/hydra-rsh.h b/services/hydra-rsh.h new file mode 100644 index 0000000..04fe785 --- /dev/null +++ b/services/hydra-rsh.h @@ -0,0 +1,8 @@ +#ifndef _HYDRA_SERVICE_RSH_H_ +#define _HYDRA_SERVICE_RSH_H_ + +void service_rsh(char *ip, int sp, unsigned char options, char *miscptr, FILE * fp, int port, char *hostname); +int service_rsh_init(char *ip, int sp, unsigned char options, char *miscptr, FILE * fp, int port, char *hostname); +void usage_rsh(const char* service); + +#endif /* _HYDRA_SERVICE_RSH_H_ */ diff --git a/services/hydra-rtsp.h b/services/hydra-rtsp.h new file mode 100644 index 0000000..ca4d275 --- /dev/null +++ b/services/hydra-rtsp.h @@ -0,0 +1,8 @@ +#ifndef _HYDRA_SERVICE_RTSP_H_ +#define _HYDRA_SERVICE_RTSP_H_ + +void service_rtsp(char *ip, int sp, unsigned char options, char *miscptr, FILE * fp, int port, char *hostname); +int service_rtsp_init(char *ip, int sp, unsigned char options, char *miscptr, FILE * fp, int port, char *hostname); +void usage_rtsp(const char* service); + +#endif /* _HYDRA_SERVICE_RTSP_H_ */ diff --git a/services/hydra-s7-300.h b/services/hydra-s7-300.h new file mode 100644 index 0000000..b5f7b05 --- /dev/null +++ b/services/hydra-s7-300.h @@ -0,0 +1,8 @@ +#ifndef _HYDRA_SERVICE_S7_300_H_ +#define _HYDRA_SERVICE_S7_300_H_ + +void service_s7_300(char *ip, int sp, unsigned char options, char *miscptr, FILE * fp, int port, char *hostname); +int service_s7_300_init(char *ip, int sp, unsigned char options, char *miscptr, FILE * fp, int port, char *hostname); +void usage_s7_300(const char* service); + +#endif /* _HYDRA_SERVICE_S7_300_H_ */ diff --git a/services/hydra-sapr3.h b/services/hydra-sapr3.h new file mode 100644 index 0000000..aba0f32 --- /dev/null +++ b/services/hydra-sapr3.h @@ -0,0 +1,8 @@ +#ifndef _HYDRA_SERVICE_SAPR3_H_ +#define _HYDRA_SERVICE_SAPR3_H_ + +void service_sapr3(char *ip, int sp, unsigned char options, char *miscptr, FILE * fp, int port, char *hostname); +int service_sapr3_init(char *ip, int sp, unsigned char options, char *miscptr, FILE * fp, int port, char *hostname); +void usage_sapr3(const char* service); + +#endif /* _HYDRA_SERVICE_SAPR3_H_ */ diff --git a/services/hydra-sip.h b/services/hydra-sip.h new file mode 100644 index 0000000..71a5331 --- /dev/null +++ b/services/hydra-sip.h @@ -0,0 +1,8 @@ +#ifndef _HYDRA_SERVICE_SIP_H_ +#define _HYDRA_SERVICE_SIP_H_ + +void service_sip(char *ip, int sp, unsigned char options, char *miscptr, FILE * fp, int port, char *hostname); +int service_sip_init(char *ip, int sp, unsigned char options, char *miscptr, FILE * fp, int port, char *hostname); +void usage_sip(const char* service); + +#endif /* _HYDRA_SERVICE_SIP_H_ */ diff --git a/services/hydra-smb.h b/services/hydra-smb.h new file mode 100644 index 0000000..b7593d8 --- /dev/null +++ b/services/hydra-smb.h @@ -0,0 +1,8 @@ +#ifndef _HYDRA_SERVICE_SMB_H_ +#define _HYDRA_SERVICE_SMB_H_ + +void service_smb(char *ip, int sp, unsigned char options, char *miscptr, FILE * fp, int port, char *hostname); +int service_smb_init(char *ip, int sp, unsigned char options, char *miscptr, FILE * fp, int port, char *hostname); +void usage_smb(const char* service); + +#endif /* _HYDRA_SERVICE_SMB_H_ */ diff --git a/services/hydra-smtp-enum.h b/services/hydra-smtp-enum.h new file mode 100644 index 0000000..7e3f81e --- /dev/null +++ b/services/hydra-smtp-enum.h @@ -0,0 +1,8 @@ +#ifndef _HYDRA_SERVICE_SMTP_ENUM_H_ +#define _HYDRA_SERVICE_SMTP_ENUM_H_ + +void service_smtp_enum(char *ip, int sp, unsigned char options, char *miscptr, FILE * fp, int port, char *hostname); +int service_smtp_enum_init(char *ip, int sp, unsigned char options, char *miscptr, FILE * fp, int port, char *hostname); +void usage_smtp_enum(const char* service); + +#endif /* _HYDRA_SERVICE_SMTP_ENUM_H_ */ diff --git a/services/hydra-smtp.h b/services/hydra-smtp.h new file mode 100644 index 0000000..44045a5 --- /dev/null +++ b/services/hydra-smtp.h @@ -0,0 +1,8 @@ +#ifndef _HYDRA_SERVICE_SMTP_H_ +#define _HYDRA_SERVICE_SMTP_H_ + +void service_smtp(char *ip, int sp, unsigned char options, char *miscptr, FILE * fp, int port, char *hostname); +int service_smtp_init(char *ip, int sp, unsigned char options, char *miscptr, FILE * fp, int port, char *hostname); +void usage_smtp(const char* service); + +#endif /* _HYDRA_SERVICE_SMTP_H_ */ diff --git a/services/hydra-snmp.h b/services/hydra-snmp.h new file mode 100644 index 0000000..936fcee --- /dev/null +++ b/services/hydra-snmp.h @@ -0,0 +1,8 @@ +#ifndef _HYDRA_SERVICE_SNMP_H_ +#define _HYDRA_SERVICE_SNMP_H_ + +void service_snmp(char *ip, int sp, unsigned char options, char *miscptr, FILE * fp, int port, char *hostname); +int service_snmp_init(char *ip, int sp, unsigned char options, char *miscptr, FILE * fp, int port, char *hostname); +void usage_snmp(const char* service); + +#endif /* _HYDRA_SERVICE_SNMP_H_ */ diff --git a/services/hydra-socks5.h b/services/hydra-socks5.h new file mode 100644 index 0000000..4d82a71 --- /dev/null +++ b/services/hydra-socks5.h @@ -0,0 +1,8 @@ +#ifndef _HYDRA_SERVICE_SOCKS5_H_ +#define _HYDRA_SERVICE_SOCKS5_H_ + +void service_socks5(char *ip, int sp, unsigned char options, char *miscptr, FILE * fp, int port, char *hostname); +int service_socks5_init(char *ip, int sp, unsigned char options, char *miscptr, FILE * fp, int port, char *hostname); +void usage_socks5(const char* service); + +#endif /* _HYDRA_SERVICE_SOCKS5_H_ */ diff --git a/services/hydra-ssh.h b/services/hydra-ssh.h new file mode 100644 index 0000000..b181463 --- /dev/null +++ b/services/hydra-ssh.h @@ -0,0 +1,8 @@ +#ifndef _HYDRA_SERVICE_SSH_H_ +#define _HYDRA_SERVICE_SSH_H_ + +void service_ssh(char *ip, int sp, unsigned char options, char *miscptr, FILE * fp, int port, char *hostname); +int service_ssh_init(char *ip, int sp, unsigned char options, char *miscptr, FILE * fp, int port, char *hostname); +void usage_ssh(const char* service); + +#endif /* _HYDRA_SERVICE_SSH_H_ */ diff --git a/services/hydra-sshkey.h b/services/hydra-sshkey.h new file mode 100644 index 0000000..fd30ef1 --- /dev/null +++ b/services/hydra-sshkey.h @@ -0,0 +1,8 @@ +#ifndef _HYDRA_SERVICE_SSHKEY_H_ +#define _HYDRA_SERVICE_SSHKEY_H_ + +void service_sshkey(char *ip, int sp, unsigned char options, char *miscptr, FILE * fp, int port, char *hostname); +int service_sshkey_init(char *ip, int sp, unsigned char options, char *miscptr, FILE * fp, int port, char *hostname); +void usage_sshkey(const char* service); + +#endif /* _HYDRA_SERVICE_SSHKEY_H_ */ diff --git a/services/hydra-svn.h b/services/hydra-svn.h new file mode 100644 index 0000000..fcc1491 --- /dev/null +++ b/services/hydra-svn.h @@ -0,0 +1,8 @@ +#ifndef _HYDRA_SERVICE_SVN_H_ +#define _HYDRA_SERVICE_SVN_H_ + +void service_svn(char *ip, int sp, unsigned char options, char *miscptr, FILE * fp, int port, char *hostname); +int service_svn_init(char *ip, int sp, unsigned char options, char *miscptr, FILE * fp, int port, char *hostname); +void usage_svn(const char* service); + +#endif /* _HYDRA_SERVICE_SVN_H_ */ diff --git a/services/hydra-teamspeak.h b/services/hydra-teamspeak.h new file mode 100644 index 0000000..d94ba44 --- /dev/null +++ b/services/hydra-teamspeak.h @@ -0,0 +1,8 @@ +#ifndef _HYDRA_SERVICE_TEAMSPEAK_H_ +#define _HYDRA_SERVICE_TEAMSPEAK_H_ + +void service_teamspeak(char *ip, int sp, unsigned char options, char *miscptr, FILE * fp, int port, char *hostname); +int service_teamspeak_init(char *ip, int sp, unsigned char options, char *miscptr, FILE * fp, int port, char *hostname); +void usage_teamspeak(const char* service); + +#endif /* _HYDRA_SERVICE_TEAMSPEAK_H_ */ diff --git a/services/hydra-telnet.h b/services/hydra-telnet.h new file mode 100644 index 0000000..b20c26a --- /dev/null +++ b/services/hydra-telnet.h @@ -0,0 +1,8 @@ +#ifndef _HYDRA_SERVICE_TELNET_H_ +#define _HYDRA_SERVICE_TELNET_H_ + +void service_telnet(char *ip, int sp, unsigned char options, char *miscptr, FILE * fp, int port, char *hostname); +int service_telnet_init(char *ip, int sp, unsigned char options, char *miscptr, FILE * fp, int port, char *hostname); +void usage_telnet(const char* service); + +#endif /* _HYDRA_SERVICE_TELNET_H_ */ diff --git a/services/hydra-vmauthd.h b/services/hydra-vmauthd.h new file mode 100644 index 0000000..4e9143a --- /dev/null +++ b/services/hydra-vmauthd.h @@ -0,0 +1,8 @@ +#ifndef _HYDRA_SERVICE_VMAUTHD_H_ +#define _HYDRA_SERVICE_VMAUTHD_H_ + +void service_vmauthd(char *ip, int sp, unsigned char options, char *miscptr, FILE * fp, int port, char *hostname); +int service_vmauthd_init(char *ip, int sp, unsigned char options, char *miscptr, FILE * fp, int port, char *hostname); +void usage_vmauthd(const char* service); + +#endif /* _HYDRA_SERVICE_VMAUTHD_H_ */ diff --git a/services/hydra-vnc.h b/services/hydra-vnc.h new file mode 100644 index 0000000..88529b7 --- /dev/null +++ b/services/hydra-vnc.h @@ -0,0 +1,8 @@ +#ifndef _HYDRA_SERVICE_VNC_H_ +#define _HYDRA_SERVICE_VNC_H_ + +void service_vnc(char *ip, int sp, unsigned char options, char *miscptr, FILE * fp, int port, char *hostname); +int service_vnc_init(char *ip, int sp, unsigned char options, char *miscptr, FILE * fp, int port, char *hostname); +void usage_vnc(const char* service); + +#endif /* _HYDRA_SERVICE_VNC_H_ */ diff --git a/services/hydra-xmpp.h b/services/hydra-xmpp.h new file mode 100644 index 0000000..16ccd4d --- /dev/null +++ b/services/hydra-xmpp.h @@ -0,0 +1,8 @@ +#ifndef _HYDRA_SERVICE_XMPP_H_ +#define _HYDRA_SERVICE_XMPP_H_ + +void service_xmpp(char *target, char *ip, int sp, unsigned char options, char *miscptr, FILE * fp, int port, char *hostname); +int service_xmpp_init(char *ip, int sp, unsigned char options, char *miscptr, FILE * fp, int port, char *hostname); +void usage_xmpp(const char* service); + +#endif /* _HYDRA_SERVICE_XMPP_H_ */ From f3324ddababfa834da86633545a04a4b56dbe667 Mon Sep 17 00:00:00 2001 From: Diadlo Date: Thu, 22 Jun 2017 12:49:42 +0300 Subject: [PATCH 4/6] Replace extern declaration on include --- hydra.c | 192 +++++++++++++++----------------------------------------- 1 file changed, 50 insertions(+), 142 deletions(-) diff --git a/hydra.c b/hydra.c index 56ded02..cb3df69 100644 --- a/hydra.c +++ b/hydra.c @@ -15,170 +15,78 @@ #include #endif -void usage_oracle(const char* service); -void usage_oracle_listener(const char* service); -void usage_cvs(const char* service); -void usage_xmpp(const char* service); -void usage_pop3(const char* service); -void usage_rdp(const char* service); -void usage_s7_300(const char* service); -void usage_nntp(const char* service); -void usage_imap(const char* service); -void usage_smtp_enum(const char* service); -void usage_smtp(const char* service); -void usage_svn(const char* service); -void usage_ncp(const char* service); -void usage_firebird(const char* service); -void usage_mysql(const char* service); -void usage_irc(const char* service); -void usage_postgres(const char* service); -void usage_telnet(const char* service); -void usage_sapr3(const char* service); -void usage_sshkey(const char* service); -void usage_cisco_enable(const char* service); -void usage_cisco(const char* service); -void usage_ldap(const char* service); -void usage_smb(const char* service); -void usage_http_form(const char* service); -void usage_http_proxy(const char* service); -void usage_http_proxy_urlenum(const char* service); -void usage_snmp(const char* service); -void usage_http(const char* service); - - -extern void service_asterisk(char *ip, int sp, unsigned char options, char *miscptr, FILE * fp, int port, char *hostname); -extern void service_telnet(char *ip, int sp, unsigned char options, char *miscptr, FILE * fp, int port, char *hostname); -extern void service_ftp(char *ip, int sp, unsigned char options, char *miscptr, FILE * fp, int port, char *hostname); -extern void service_ftps(char *ip, int sp, unsigned char options, char *miscptr, FILE * fp, int port, char *hostname); -extern void service_pop3(char *ip, int sp, unsigned char options, char *miscptr, FILE * fp, int port, char *hostname); -extern void service_vmauthd(char *ip, int sp, unsigned char options, char *miscptr, FILE * fp, int port, char *hostname); -extern void service_imap(char *ip, int sp, unsigned char options, char *miscptr, FILE * fp, int port, char *hostname); -extern void service_ldap2(char *ip, int sp, unsigned char options, char *miscptr, FILE * fp, int port, char *hostname); -extern void service_ldap3(char *ip, int sp, unsigned char options, char *miscptr, FILE * fp, int port, char *hostname); -extern void service_ldap3_cram_md5(char *ip, int sp, unsigned char options, char *miscptr, FILE * fp, int port, char *hostname); -extern void service_ldap3_digest_md5(char *ip, int sp, unsigned char options, char *miscptr, FILE * fp, int port, char *hostname); -extern void service_adam6500(char *ip, int sp, unsigned char options, char *miscptr, FILE * fp, int port, char *hostname); -extern void service_cisco(char *ip, int sp, unsigned char options, char *miscptr, FILE * fp, int port, char *hostname); -extern void service_cisco_enable(char *ip, int sp, unsigned char options, char *miscptr, FILE * fp, int port, char *hostname); -extern void service_vnc(char *ip, int sp, unsigned char options, char *miscptr, FILE * fp, int port, char *hostname); -extern void service_socks5(char *ip, int sp, unsigned char options, char *miscptr, FILE * fp, int port, char *hostname); -extern void service_rexec(char *ip, int sp, unsigned char options, char *miscptr, FILE * fp, int port, char *hostname); -extern void service_rlogin(char *ip, int sp, unsigned char options, char *miscptr, FILE * fp, int port, char *hostname); -extern void service_rsh(char *ip, int sp, unsigned char options, char *miscptr, FILE * fp, int port, char *hostname); -extern void service_nntp(char *ip, int sp, unsigned char options, char *miscptr, FILE * fp, int port, char *hostname); -extern void service_http_head(char *ip, int sp, unsigned char options, char *miscptr, FILE * fp, int port, char *hostname); -extern void service_http_get(char *ip, int sp, unsigned char options, char *miscptr, FILE * fp, int port, char *hostname); -extern void service_http_post(char *ip, int sp, unsigned char options, char *miscptr, FILE * fp, int port, char *hostname); -extern void service_http_get_form(char *ip, int sp, unsigned char options, char *miscptr, FILE * fp, int port, char *hostname); -extern void service_http_post_form(char *ip, int sp, unsigned char options, char *miscptr, FILE * fp, int port, char *hostname); -extern void service_icq(char *ip, int sp, unsigned char options, char *miscptr, FILE * fp, int port, char *hostname); -extern void service_pcnfs(char *ip, int sp, unsigned char options, char *miscptr, FILE * fp, int port, char *hostname); -extern void service_mssql(char *ip, int sp, unsigned char options, char *miscptr, FILE * fp, int port, char *hostname); -extern void service_cvs(char *ip, int sp, unsigned char options, char *miscptr, FILE * fp, int port, char *hostname); -extern void service_snmp(char *ip, int sp, unsigned char options, char *miscptr, FILE * fp, int port, char *hostname); -extern void service_smtp(char *ip, int sp, unsigned char options, char *miscptr, FILE * fp, int port, char *hostname); -extern void service_smtp_enum(char *ip, int sp, unsigned char options, char *miscptr, FILE * fp, int port, char *hostname); -extern void service_teamspeak(char *ip, int sp, unsigned char options, char *miscptr, FILE * fp, int port, char *hostname); -extern void service_pcanywhere(char *ip, int sp, unsigned char options, char *miscptr, FILE * fp, int port, char *hostname); -extern void service_http_proxy(char *ip, int sp, unsigned char options, char *miscptr, FILE * fp, int port, char *hostname); -extern void service_xmpp(char *target, char *ip, int sp, unsigned char options, char *miscptr, FILE * fp, int port, char *hostname); -extern void service_irc(char *ip, int sp, unsigned char options, char *miscptr, FILE * fp, int port, char *hostname); -extern void service_redis(char *ip, int sp, unsigned char options, char *miscptr, FILE * fp, int port, char *hostname); -extern void service_http_proxy_urlenum(char *ip, int sp, unsigned char options, char *miscptr, FILE * fp, int port, char *hostname); -extern void service_s7_300(char *ip, int sp, unsigned char options, char *miscptr, FILE * fp, int port, char *hostname); -extern void service_rtsp(char *ip, int sp, unsigned char options, char *miscptr, FILE * fp, int port, char *hostname); -extern void service_rpcap(char *ip, int sp, unsigned char options, char *miscptr, FILE * fp, int port, char *hostname); - -// ADD NEW SERVICES HERE - +#include "services/hydra-asterisk.h" +#include "services/hydra-telnet.h" +#include "services/hydra-ftp.h" +#include "services/hydra-pop3.h" +#include "services/hydra-vmauthd.h" +#include "services/hydra-imap.h" +#include "services/hydra-ldap.h" +#include "services/hydra-adam6500.h" +#include "services/hydra-cisco.h" +#include "services/hydra-cisco-enable.h" +#include "services/hydra-vnc.h" +#include "services/hydra-socks5.h" +#include "services/hydra-rexec.h" +#include "services/hydra-rlogin.h" +#include "services/hydra-rsh.h" +#include "services/hydra-nntp.h" +#include "services/hydra-http.h" +#include "services/hydra-http-form.h" +#include "services/hydra-icq.h" +#include "services/hydra-pcnfs.h" +#include "services/hydra-mssql.h" +#include "services/hydra-cvs.h" +#include "services/hydra-snmp.h" +#include "services/hydra-smtp.h" +#include "services/hydra-smtp-enum.h" +#include "services/hydra-teamspeak.h" +#include "services/hydra-pcanywhere.h" +#include "services/hydra-http-proxy.h" +#include "services/hydra-xmpp.h" +#include "services/hydra-irc.h" +#include "services/hydra-redis.h" +#include "services/hydra-http-proxy-urlenum.h" +#include "services/hydra-s7-300.h" +#include "services/hydra-rtsp.h" +#include "services/hydra-rpcap.h" #ifdef HAVE_MATH_H -extern void service_mysql(char *ip, int sp, unsigned char options, char *miscptr, FILE * fp, int port, char *hostname); -extern int service_mysql_init(char *ip, int sp, unsigned char options, char *miscptr, FILE * fp, int port, char *hostname); +#include "services/hydra-mysql.h" #endif #ifdef LIBPOSTGRES -extern void service_postgres(char *ip, int sp, unsigned char options, char *miscptr, FILE * fp, int port, char *hostname); -extern int service_postgres_init(char *ip, int sp, unsigned char options, char *miscptr, FILE * fp, int port, char *hostname); +#include "services/hydra-postgres.h" #endif #ifdef LIBOPENSSL -extern void service_smb(char *ip, int sp, unsigned char options, char *miscptr, FILE * fp, int port, char *hostname); -extern int service_smb_init(char *ip, int sp, unsigned char options, char *miscptr, FILE * fp, int port, char *hostname); -extern void service_oracle_listener(char *ip, int sp, unsigned char options, char *miscptr, FILE * fp, int port, char *hostname); -extern int service_oracle_listener_init(char *ip, int sp, unsigned char options, char *miscptr, FILE * fp, int port, char *hostname); -extern void service_oracle_sid(char *ip, int sp, unsigned char options, char *miscptr, FILE * fp, int port, char *hostname); -extern int service_oracle_sid_init(char *ip, int sp, unsigned char options, char *miscptr, FILE * fp, int port, char *hostname); -extern void service_sip(char *ip, int sp, unsigned char options, char *miscptr, FILE * fp, int port, char *hostname); -extern int service_sip_init(char *ip, int sp, unsigned char options, char *miscptr, FILE * fp, int port, char *hostname); -extern void service_rdp(char *ip, int sp, unsigned char options, char *miscptr, FILE * fp, int port, char *hostname); -extern int service_rdp_init(char *ip, int sp, unsigned char options, char *miscptr, FILE * fp, int port, char *hostname); +#include "services/hydra-smb.h" +#include "services/hydra-oracle-listener.h" +#include "services/hydra-oracle-sid.h" +#include "services/hydra-sip.h" +#include "services/hydra-rdp.h" #endif #ifdef LIBSAPR3 -extern void service_sapr3(char *ip, int sp, unsigned char options, char *miscptr, FILE * fp, int port, char *hostname); -extern int service_sapr3_init(char *ip, int sp, unsigned char options, char *miscptr, FILE * fp, int port, char *hostname); +#include "services/hydra-sapr3.h" #endif #ifdef LIBFIREBIRD -extern void service_firebird(char *ip, int sp, unsigned char options, char *miscptr, FILE * fp, int port, char *hostname); -extern int service_firebird_init(char *ip, int sp, unsigned char options, char *miscptr, FILE * fp, int port, char *hostname); +#include "services/hydra-firebird.h" #endif #ifdef LIBAFP -extern void service_afp(char *ip, int sp, unsigned char options, char *miscptr, FILE * fp, int port, char *hostname); -extern int service_afp_init(char *ip, int sp, unsigned char options, char *miscptr, FILE * fp, int port, char *hostname); +#include "services/hydra-afp.h" #endif #ifdef LIBNCP -extern void service_ncp(char *ip, int sp, unsigned char options, char *miscptr, FILE * fp, int port, char *hostname); -extern int service_ncp_init(char *ip, int sp, unsigned char options, char *miscptr, FILE * fp, int port, char *hostname); +#include "services/hydra-ncp.h" #endif #ifdef LIBSSH -extern void service_ssh(char *ip, int sp, unsigned char options, char *miscptr, FILE * fp, int port, char *hostname); -extern int service_ssh_init(char *ip, int sp, unsigned char options, char *miscptr, FILE * fp, int port, char *hostname); -extern void service_sshkey(char *ip, int sp, unsigned char options, char *miscptr, FILE * fp, int port, char *hostname); -extern int service_sshkey_init(char *ip, int sp, unsigned char options, char *miscptr, FILE * fp, int port, char *hostname); +#include "services/hydra-ssh.h" +#include "services/hydra-sshkey.h" #endif #ifdef LIBSVN -extern void service_svn(char *ip, int sp, unsigned char options, char *miscptr, FILE * fp, int port, char *hostname); -extern int service_svn_init(char *ip, int sp, unsigned char options, char *miscptr, FILE * fp, int port, char *hostname); +#include "services/hydra-svn.h" #endif #ifdef LIBORACLE -extern void service_oracle(char *ip, int sp, unsigned char options, char *miscptr, FILE * fp, int port, char *hostname); -extern int service_oracle_init(char *ip, int sp, unsigned char options, char *miscptr, FILE * fp, int port, char *hostname); +#include "services/hydra-oracle.h" #endif -extern int service_adam6500_init(char *ip, int sp, unsigned char options, char *miscptr, FILE * fp, int port, char *hostname); -extern int service_cisco_init(char *ip, int sp, unsigned char options, char *miscptr, FILE * fp, int port, char *hostname); -extern int service_cisco_enable_init(char *ip, int sp, unsigned char options, char *miscptr, FILE * fp, int port, char *hostname); -extern int service_cvs_init(char *ip, int sp, unsigned char options, char *miscptr, FILE * fp, int port, char *hostname); -extern int service_smtp_enum_init(char *ip, int sp, unsigned char options, char *miscptr, FILE * fp, int port, char *hostname); -extern int service_http_form_init(char *ip, int sp, unsigned char options, char *miscptr, FILE * fp, int port, char *hostname); -extern int service_ftp_init(char *ip, int sp, unsigned char options, char *miscptr, FILE * fp, int port, char *hostname); -extern int service_http_init(char *ip, int sp, unsigned char options, char *miscptr, FILE * fp, int port, char *hostname); -extern int service_icq_init(char *ip, int sp, unsigned char options, char *miscptr, FILE * fp, int port, char *hostname); -extern int service_imap_init(char *ip, int sp, unsigned char options, char *miscptr, FILE * fp, int port, char *hostname); -extern int service_irc_init(char *ip, int sp, unsigned char options, char *miscptr, FILE * fp, int port, char *hostname); -extern int service_ldap_init(char *ip, int sp, unsigned char options, char *miscptr, FILE * fp, int port, char *hostname); -extern int service_mssql_init(char *ip, int sp, unsigned char options, char *miscptr, FILE * fp, int port, char *hostname); -extern int service_nntp_init(char *ip, int sp, unsigned char options, char *miscptr, FILE * fp, int port, char *hostname); -extern int service_pcanywhere_init(char *ip, int sp, unsigned char options, char *miscptr, FILE * fp, int port, char *hostname); -extern int service_pcnfs_init(char *ip, int sp, unsigned char options, char *miscptr, FILE * fp, int port, char *hostname); -extern int service_pop3_init(char *ip, int sp, unsigned char options, char *miscptr, FILE * fp, int port, char *hostname); -extern int service_http_proxy_init(char *ip, int sp, unsigned char options, char *miscptr, FILE * fp, int port, char *hostname); -extern int service_asterisk_init(char *ip, int sp, unsigned char options, char *miscptr, FILE * fp, int port, char *hostname); -extern int service_redis_init(char *ip, int sp, unsigned char options, char *miscptr, FILE * fp, int port, char *hostname); -extern int service_rexec_init(char *ip, int sp, unsigned char options, char *miscptr, FILE * fp, int port, char *hostname); -extern int service_rlogin_init(char *ip, int sp, unsigned char options, char *miscptr, FILE * fp, int port, char *hostname); -extern int service_rsh_init(char *ip, int sp, unsigned char options, char *miscptr, FILE * fp, int port, char *hostname); -extern int service_smtp_init(char *ip, int sp, unsigned char options, char *miscptr, FILE * fp, int port, char *hostname); -extern int service_snmp_init(char *ip, int sp, unsigned char options, char *miscptr, FILE * fp, int port, char *hostname); -extern int service_socks5_init(char *ip, int sp, unsigned char options, char *miscptr, FILE * fp, int port, char *hostname); -extern int service_teamspeak_init(char *ip, int sp, unsigned char options, char *miscptr, FILE * fp, int port, char *hostname); -extern int service_telnet_init(char *ip, int sp, unsigned char options, char *miscptr, FILE * fp, int port, char *hostname); -extern int service_http_proxy_urlenum_init(char *ip, int sp, unsigned char options, char *miscptr, FILE * fp, int port, char *hostname); -extern int service_vmauthd_init(char *ip, int sp, unsigned char options, char *miscptr, FILE * fp, int port, char *hostname); -extern int service_vnc_init(char *ip, int sp, unsigned char options, char *miscptr, FILE * fp, int port, char *hostname); -extern int service_xmpp_init(char *ip, int sp, unsigned char options, char *miscptr, FILE * fp, int port, char *hostname); -extern int service_s7_300_init(char *ip, int sp, unsigned char options, char *miscptr, FILE * fp, int port, char *hostname); -extern int service_rtsp_init(char *ip, int sp, unsigned char options, char *miscptr, FILE * fp, int port, char *hostname); -extern int service_rpcap_init(char *ip, int sp, unsigned char options, char *miscptr, FILE * fp, int port, char *hostname); - // ADD NEW SERVICES HERE From 34429ab8260ada50a00f90e11302a51404cd50e2 Mon Sep 17 00:00:00 2001 From: Diadlo Date: Thu, 22 Jun 2017 13:07:47 +0300 Subject: [PATCH 5/6] Add service initializer in header files --- hydra.c | 122 ++++++++++++++-------------- services/hydra-adam6500.h | 3 +- services/hydra-afp.h | 3 +- services/hydra-asterisk.h | 3 +- services/hydra-cisco-enable.h | 2 + services/hydra-cisco.h | 2 + services/hydra-cvs.h | 2 + services/hydra-firebird.h | 2 + services/hydra-ftp.h | 4 +- services/hydra-http-form.h | 21 +++++ services/hydra-http-proxy-urlenum.h | 7 ++ services/hydra-http-proxy.h | 7 ++ services/hydra-http.h | 21 +++++ services/hydra-icq.h | 8 +- services/hydra-imap.h | 7 ++ services/hydra-irc.h | 7 ++ services/hydra-ldap.h | 28 +++++++ services/hydra-mssql.h | 8 +- services/hydra-mysql.h | 7 ++ services/hydra-ncp.h | 7 ++ services/hydra-nntp.h | 7 ++ services/hydra-oracle-listener.h | 7 ++ services/hydra-oracle-sid.h | 8 +- services/hydra-oracle.h | 7 ++ services/hydra-pcanywhere.h | 8 +- services/hydra-pcnfs.h | 8 +- services/hydra-pop3.h | 7 ++ services/hydra-postgres.h | 7 ++ services/hydra-rdp.h | 7 ++ services/hydra-redis.h | 8 +- services/hydra-rexec.h | 8 +- services/hydra-rlogin.h | 8 +- services/hydra-rpcap.h | 8 +- services/hydra-rsh.h | 8 +- services/hydra-rtsp.h | 8 +- services/hydra-s7-300.h | 7 ++ services/hydra-sapr3.h | 7 ++ services/hydra-sip.h | 8 +- services/hydra-smb.h | 14 ++++ services/hydra-smtp-enum.h | 7 ++ services/hydra-smtp.h | 7 ++ services/hydra-snmp.h | 7 ++ services/hydra-socks5.h | 8 +- services/hydra-ssh.h | 8 +- services/hydra-sshkey.h | 7 ++ services/hydra-svn.h | 7 ++ services/hydra-teamspeak.h | 8 +- services/hydra-telnet.h | 7 ++ services/hydra-vmauthd.h | 8 +- services/hydra-vnc.h | 8 +- services/hydra-xmpp.h | 7 ++ 51 files changed, 426 insertions(+), 84 deletions(-) diff --git a/hydra.c b/hydra.c index cb3df69..ed88f12 100644 --- a/hydra.c +++ b/hydra.c @@ -290,99 +290,95 @@ typedef void (*service_t)(char *ip, int sp, unsigned char options, char *miscptr typedef int (*service_init_t)(char *ip, int sp, unsigned char options, char *miscptr, FILE * fp, int port, char *hostname); typedef void (*service_usage_t)(const char* service); -#define SERVICE2(name, func) { name, service_##func##_init, service_##func, NULL } -#define SERVICE(name) { #name, service_##name##_init, service_##name, NULL } -#define SERVICE3(name, func) { name, service_##func##_init, service_##func, usage_##func } - static const struct { const char* name; service_init_t init; service_t exec; service_usage_t usage; } services[] = { - SERVICE(adam6500), + SERVICE_ADAM6500, #ifdef LIBAFP - SERVICE(afp), + SERVICE_AFP, #endif - SERVICE(asterisk), - SERVICE3("cisco", cisco), - SERVICE3("cisco-enable", cisco_enable), - SERVICE3("cvs", cvs), + SERVICE_ASTERISK, + SERVICE_CISCO_ENABLE, + SERVICE_CISCO, + SERVICE_CVS, #ifdef LIBFIREBIRD - SERVICE3("firebird", firebird), + SERVICE_FIREBIRD, #endif - SERVICE(ftp), - { "ftps", service_ftp_init, service_ftps }, - { "http-get", service_http_init, service_http_get, usage_http }, - { "http-get-form", service_http_form_init, service_http_get_form, usage_http_form }, - { "http-head", service_http_init, service_http_head, NULL }, - { "http-form", service_http_form_init, NULL, usage_http_form }, - { "http-post", NULL, service_http_post, usage_http }, - { "http-post-form", service_http_form_init, service_http_post_form, usage_http_form }, - SERVICE3("http-proxy", http_proxy), - SERVICE3("http-proxy-urlenum", http_proxy_urlenum), - SERVICE(icq), - SERVICE3("imap", imap), - SERVICE3("irc", irc), - { "ldap2", service_ldap_init, service_ldap2, usage_ldap }, - { "ldap3", service_ldap_init, service_ldap3, usage_ldap }, - { "ldap3-crammd5", service_ldap_init, service_ldap3_cram_md5, usage_ldap }, - { "ldap3-digestmd5", service_ldap_init, service_ldap3_digest_md5, usage_ldap }, - SERVICE(mssql), + SERVICE_FTP, + SERVICE_FTPS, + SERVICE_HTTP_FORM, + SERVICE_HTTP_GET, + SERVICE_HTTP_GET_FORM, + SERVICE_HTTP_HEAD, + SERVICE_HTTP_POST, + SERVICE_HTTP_POST_FORM, + SERVICE_HTTP_PROXY_URLENUM, + SERVICE_HTTP_PROXY, + SERVICE_ICQ, + SERVICE_IMAP, + SERVICE_IRC, + SERVICE_LDAP2, + SERVICE_LDAP3, + SERVICE_LDAP3_CRAM_MD5, + SERVICE_LDAP3_DIGEST_MD5, + SERVICE_MSSQL, #ifdef HAVE_MATH_H - SERVICE3("mysql", mysql), + SERVICE_MYSQL, #endif #ifdef LIBNCP - SERVICE3("ncp", ncp), + SERVICE_NCP, #endif - SERVICE3("nntp", nntp), + SERVICE_NNTP, #ifdef LIBORACLE - SERVICE3("oracle", oracle), + SERVICE_ORACLE, #endif #ifdef LIBOPENSSL - SERVICE3("oracle-listener", oracle_listener), - SERVICE2("oracle-sid", oracle_sid), + SERVICE_ORACLE_LISTENER, + SERVICE_ORACLE_SID, #endif - SERVICE(pcanywhere), - SERVICE(pcnfs), - SERVICE3("pop3", pop3), + SERVICE_PCANYWHERE, + SERVICE_PCNFS, + SERVICE_POP3, #ifdef LIBPOSTGRES - SERVICE3("postgres", postgres), + SERVICE_POSTGRES, #endif - SERVICE(redis), - SERVICE(rexec), #ifdef LIBOPENSSL - SERVICE3("rdp", rdp), + SERVICE_RDP, #endif - SERVICE(rlogin), - SERVICE(rsh), - SERVICE(rtsp), - SERVICE(rpcap), - SERVICE3("s7-300", s7_300), + SERVICE_REDIS, + SERVICE_REXEC, + SERVICE_RLOGIN, + SERVICE_RPCAP, + SERVICE_RSH, + SERVICE_RTSP, + SERVICE_S7_300, #ifdef LIBSAPR3 - SERVICE3("sarp3", sapr3), + SERVICE_SAPR3, #endif #ifdef LIBOPENSSL - SERVICE(sip), - SERVICE3("smbnt", smb), - SERVICE3("smb", smb), + SERVICE_SIP, + SERVICE_SMB, + SERVICE_SMBNT, #endif - SERVICE3("smtp", smtp), - SERVICE3("smtp-enum", smtp_enum), - SERVICE3("snmp", snmp), - SERVICE(socks5), + SERVICE_SMTP, + SERVICE_SMTP_ENUM, + SERVICE_SNMP, + SERVICE_SOCKS5, #ifdef LIBSSH - { "ssh", NULL, service_ssh }, - SERVICE3("sshkey", sshkey), + SERVICE_SSH, + SERVICE_SSHKEY, #endif #ifdef LIBSVN - SERVICE3("svn", svn), + SERVICE_SVN, #endif - SERVICE(teamspeak), - SERVICE3("telnet", telnet), - SERVICE(vmauthd), - SERVICE(vnc), - { "xmpp", service_xmpp_init, NULL, usage_xmpp } + SERVICE_TEAMSPEAK, + SERVICE_TELNET, + SERVICE_VMAUTHD, + SERVICE_VNC, + SERVICE_XMPP }; diff --git a/services/hydra-adam6500.h b/services/hydra-adam6500.h index 7df03ca..c60c0a7 100644 --- a/services/hydra-adam6500.h +++ b/services/hydra-adam6500.h @@ -3,6 +3,7 @@ void service_adam6500(char *ip, int sp, unsigned char options, char *miscptr, FILE * fp, int port, char *hostname); int service_adam6500_init(char *ip, int sp, unsigned char options, char *miscptr, FILE * fp, int port, char *hostname); -void usage_adam6500(const char* service); + +#define SERVICE_ADAM6500 { "adam6500", service_adam6500_init, service_adam6500, NULL } #endif /* _HYDRA_SERVICE_ADAM6500_H_ */ diff --git a/services/hydra-afp.h b/services/hydra-afp.h index ae90af1..a06425e 100644 --- a/services/hydra-afp.h +++ b/services/hydra-afp.h @@ -3,6 +3,7 @@ void service_afp(char *ip, int sp, unsigned char options, char *miscptr, FILE * fp, int port, char *hostname); int service_afp_init(char *ip, int sp, unsigned char options, char *miscptr, FILE * fp, int port, char *hostname); -void usage_afp(const char* service); + +#define SERVICE_AFP { "afp", service_afp_init, service_afp, NULL } #endif /* _HYDRA_SERVICE_AFP_H_ */ diff --git a/services/hydra-asterisk.h b/services/hydra-asterisk.h index 885a97f..e4ff713 100644 --- a/services/hydra-asterisk.h +++ b/services/hydra-asterisk.h @@ -3,6 +3,7 @@ void service_asterisk(char *ip, int sp, unsigned char options, char *miscptr, FILE * fp, int port, char *hostname); int service_asterisk_init(char *ip, int sp, unsigned char options, char *miscptr, FILE * fp, int port, char *hostname); -void usage_asterisk(const char* service); + +#define SERVICE_ASTERISK { "asterisk", service_asterisk_init, service_asterisk, NULL } #endif /* _HYDRA_SERVICE_ASTERISK_H_ */ diff --git a/services/hydra-cisco-enable.h b/services/hydra-cisco-enable.h index 3b58cfc..1f15441 100644 --- a/services/hydra-cisco-enable.h +++ b/services/hydra-cisco-enable.h @@ -5,4 +5,6 @@ void service_cisco_enable(char *ip, int sp, unsigned char options, char *miscptr int service_cisco_enable_init(char *ip, int sp, unsigned char options, char *miscptr, FILE * fp, int port, char *hostname); void usage_cisco_enable(const char* service); +#define SERVICE_CISCO_ENABLE { "cisco-enable", service_cisco_enable_init, service_cisco_enable, usage_cisco_enable } + #endif /* _HYDRA_SERVICE_CISCO_ENABLE_H_ */ diff --git a/services/hydra-cisco.h b/services/hydra-cisco.h index a96d23b..06c3ff9 100644 --- a/services/hydra-cisco.h +++ b/services/hydra-cisco.h @@ -5,4 +5,6 @@ void service_cisco(char *ip, int sp, unsigned char options, char *miscptr, FILE int service_cisco_init(char *ip, int sp, unsigned char options, char *miscptr, FILE * fp, int port, char *hostname); void usage_cisco(const char* service); +#define SERVICE_CISCO { "cisco", service_cisco_init, service_cisco, usage_cisco } + #endif /* _HYDRA_SERVICE_CISCO_H_ */ diff --git a/services/hydra-cvs.h b/services/hydra-cvs.h index 94d5e4d..080b32e 100644 --- a/services/hydra-cvs.h +++ b/services/hydra-cvs.h @@ -5,4 +5,6 @@ void service_cvs(char *ip, int sp, unsigned char options, char *miscptr, FILE * int service_cvs_init(char *ip, int sp, unsigned char options, char *miscptr, FILE * fp, int port, char *hostname); void usage_cvs(const char* service); +#define SERVICE_CVS { "cvs", service_cvs_init, service_cvs, usage_cvs } + #endif /* _HYDRA_SERVICE_CVS_H_ */ diff --git a/services/hydra-firebird.h b/services/hydra-firebird.h index c9d25c7..2107d61 100644 --- a/services/hydra-firebird.h +++ b/services/hydra-firebird.h @@ -5,4 +5,6 @@ void service_firebird(char *ip, int sp, unsigned char options, char *miscptr, FI int service_firebird_init(char *ip, int sp, unsigned char options, char *miscptr, FILE * fp, int port, char *hostname); void usage_firebird(const char* service); +#define SERVICE_FIREBIRD { "firebird", service_firebird_init, service_firebird, usage_firebird } + #endif /* _HYDRA_SERVICE_FIREBIRD_H_ */ diff --git a/services/hydra-ftp.h b/services/hydra-ftp.h index 8db5eb0..bef8734 100644 --- a/services/hydra-ftp.h +++ b/services/hydra-ftp.h @@ -4,6 +4,8 @@ void service_ftp(char *ip, int sp, unsigned char options, char *miscptr, FILE * fp, int port, char *hostname); void service_ftps(char *ip, int sp, unsigned char options, char *miscptr, FILE * fp, int port, char *hostname); int service_ftp_init(char *ip, int sp, unsigned char options, char *miscptr, FILE * fp, int port, char *hostname); -void usage_ftp(const char* service); + +#define SERVICE_FTP { "ftp", service_ftp_init, service_ftp, NULL } +#define SERVICE_FTPS { "ftps", service_ftp_init, service_ftps, NULL } #endif /* _HYDRA_SERVICE_FTP_H_ */ diff --git a/services/hydra-http-form.h b/services/hydra-http-form.h index eca7959..c7a97f5 100644 --- a/services/hydra-http-form.h +++ b/services/hydra-http-form.h @@ -6,4 +6,25 @@ void service_http_get_form(char *ip, int sp, unsigned char options, char *miscpt int service_http_form_init(char *ip, int sp, unsigned char options, char *miscptr, FILE * fp, int port, char *hostname); void usage_http_form(const char* service); +#define SERVICE_HTTP_GET_FORM { \ + "http-get-form", \ + service_http_form_init, \ + service_http_get_form, \ + usage_http_form \ +} + +#define SERVICE_HTTP_POST_FORM { \ + "http-post-form", \ + service_http_form_init, \ + service_http_post_form, \ + usage_http_form \ +} + +#define SERVICE_HTTP_FORM { \ + "http-post-form", \ + service_http_form_init, \ + NULL, \ + usage_http_form \ +} + #endif /* _HYDRA_SERVICE_HTTP_FORM_H_ */ diff --git a/services/hydra-http-proxy-urlenum.h b/services/hydra-http-proxy-urlenum.h index 4f28b7a..5205681 100644 --- a/services/hydra-http-proxy-urlenum.h +++ b/services/hydra-http-proxy-urlenum.h @@ -5,4 +5,11 @@ void service_http_proxy_urlenum(char *ip, int sp, unsigned char options, char *m int service_http_proxy_urlenum_init(char *ip, int sp, unsigned char options, char *miscptr, FILE * fp, int port, char *hostname); void usage_http_proxy_urlenum(const char* service); +#define SERVICE_HTTP_PROXY_URLENUM { \ + "http-proxy-urlenum", \ + service_http_proxy_urlenum_init, \ + service_http_proxy_urlenum, \ + usage_http_proxy_urlenum \ +} + #endif /* _HYDRA_SERVICE_HTTP_PROXY_URLENUM_H_ */ diff --git a/services/hydra-http-proxy.h b/services/hydra-http-proxy.h index 4c247cb..8efa56e 100644 --- a/services/hydra-http-proxy.h +++ b/services/hydra-http-proxy.h @@ -5,4 +5,11 @@ void service_http_proxy(char *ip, int sp, unsigned char options, char *miscptr, int service_http_proxy_init(char *ip, int sp, unsigned char options, char *miscptr, FILE * fp, int port, char *hostname); void usage_http_proxy(const char* service); +#define SERVICE_HTTP_PROXY { \ + "http-proxy", \ + service_http_proxy_init, \ + service_http_proxy, \ + usage_http_proxy \ +} + #endif /* _HYDRA_SERVICE_HTTP_PROXY_H_ */ diff --git a/services/hydra-http.h b/services/hydra-http.h index a72871d..127e228 100644 --- a/services/hydra-http.h +++ b/services/hydra-http.h @@ -7,4 +7,25 @@ void service_http_post(char *ip, int sp, unsigned char options, char *miscptr, F int service_http_init(char *ip, int sp, unsigned char options, char *miscptr, FILE * fp, int port, char *hostname); void usage_http(const char* service); +#define SERVICE_HTTP_GET { \ + "http-get", \ + service_http_init, \ + service_http_get, \ + usage_http \ +} + +#define SERVICE_HTTP_HEAD { \ + "http-head", \ + service_http_init, \ + service_http_head, \ + NULL \ +} + +#define SERVICE_HTTP_POST { \ + "http-post", \ + NULL, \ + service_http_post, \ + usage_http \ +} + #endif /* _HYDRA_SERVICE_HTTP_H_ */ diff --git a/services/hydra-icq.h b/services/hydra-icq.h index 1f64ddb..d4ed144 100644 --- a/services/hydra-icq.h +++ b/services/hydra-icq.h @@ -3,6 +3,12 @@ void service_icq(char *ip, int sp, unsigned char options, char *miscptr, FILE * fp, int port, char *hostname); int service_icq_init(char *ip, int sp, unsigned char options, char *miscptr, FILE * fp, int port, char *hostname); -void usage_icq(const char* service); + +#define SERVICE_ICQ { \ + "icq", \ + service_icq_init, \ + service_icq, \ + NULL \ +} #endif /* _HYDRA_SERVICE_ICQ_H_ */ diff --git a/services/hydra-imap.h b/services/hydra-imap.h index a766a57..02b828d 100644 --- a/services/hydra-imap.h +++ b/services/hydra-imap.h @@ -5,4 +5,11 @@ void service_imap(char *ip, int sp, unsigned char options, char *miscptr, FILE * int service_imap_init(char *ip, int sp, unsigned char options, char *miscptr, FILE * fp, int port, char *hostname); void usage_imap(const char* service); +#define SERVICE_IMAP { \ + "imap", \ + service_imap_init, \ + service_imap, \ + usage_imap \ +} + #endif /* _HYDRA_SERVICE_IMAP_H_ */ diff --git a/services/hydra-irc.h b/services/hydra-irc.h index d5e7acd..f24a7aa 100644 --- a/services/hydra-irc.h +++ b/services/hydra-irc.h @@ -5,4 +5,11 @@ void service_irc(char *ip, int sp, unsigned char options, char *miscptr, FILE * int service_irc_init(char *ip, int sp, unsigned char options, char *miscptr, FILE * fp, int port, char *hostname); void usage_irc(const char* service); +#define SERVICE_IRC { \ + "irc", \ + service_irc_init, \ + service_irc, \ + usage_irc \ +} + #endif /* _HYDRA_SERVICE_IRC_H_ */ diff --git a/services/hydra-ldap.h b/services/hydra-ldap.h index df5b80a..6cc7ad6 100644 --- a/services/hydra-ldap.h +++ b/services/hydra-ldap.h @@ -8,4 +8,32 @@ void service_ldap3_digest_md5(char *ip, int sp, unsigned char options, char *mis int service_ldap_init(char *ip, int sp, unsigned char options, char *miscptr, FILE * fp, int port, char *hostname); void usage_ldap(const char* service); +#define SERVICE_LDAP2 { \ + "ldap2", \ + service_ldap_init, \ + service_ldap2, \ + usage_ldap \ +} + +#define SERVICE_LDAP3 { \ + "ldap3", \ + service_ldap_init, \ + service_ldap3, \ + usage_ldap \ +} + +#define SERVICE_LDAP3_CRAM_MD5 { \ + "ldap3-crammd5", \ + service_ldap_init, \ + service_ldap3_cram_md5, \ + usage_ldap \ +} + +#define SERVICE_LDAP3_DIGEST_MD5 { \ + "ldap3-digestmd5", \ + service_ldap_init, \ + service_ldap3_digest_md5, \ + usage_ldap \ +} + #endif /* _HYDRA_SERVICE_LDAP_H_ */ diff --git a/services/hydra-mssql.h b/services/hydra-mssql.h index e060fb7..9fd1aaa 100644 --- a/services/hydra-mssql.h +++ b/services/hydra-mssql.h @@ -3,6 +3,12 @@ void service_mssql(char *ip, int sp, unsigned char options, char *miscptr, FILE * fp, int port, char *hostname); int service_mssql_init(char *ip, int sp, unsigned char options, char *miscptr, FILE * fp, int port, char *hostname); -void usage_mssql(const char* service); + +#define SERVICE_MSSQL { \ + "mssql", \ + service_mssql_init, \ + service_mssql, \ + NULL \ +} #endif /* _HYDRA_SERVICE_MSSQL_H_ */ diff --git a/services/hydra-mysql.h b/services/hydra-mysql.h index d2452af..941d413 100644 --- a/services/hydra-mysql.h +++ b/services/hydra-mysql.h @@ -5,4 +5,11 @@ void service_mysql(char *ip, int sp, unsigned char options, char *miscptr, FILE int service_mysql_init(char *ip, int sp, unsigned char options, char *miscptr, FILE * fp, int port, char *hostname); void usage_mysql(const char* service); +#define SERVICE_MYSQL { \ + "mysql", \ + service_mysql_init, \ + service_mysql, \ + usage_mysql \ +} + #endif /* _HYDRA_SERVICE_MYSQL_H_ */ diff --git a/services/hydra-ncp.h b/services/hydra-ncp.h index ee6dd85d..7db010b 100644 --- a/services/hydra-ncp.h +++ b/services/hydra-ncp.h @@ -5,4 +5,11 @@ void service_ncp(char *ip, int sp, unsigned char options, char *miscptr, FILE * int service_ncp_init(char *ip, int sp, unsigned char options, char *miscptr, FILE * fp, int port, char *hostname); void usage_ncp(const char* service); +#define SERVICE_NCP { \ + "ncp", \ + service_ncp_init, \ + service_ncp, \ + usage_ncp \ +} + #endif /* _HYDRA_SERVICE_NCP_H_ */ diff --git a/services/hydra-nntp.h b/services/hydra-nntp.h index f63455c..47f3260 100644 --- a/services/hydra-nntp.h +++ b/services/hydra-nntp.h @@ -5,4 +5,11 @@ void service_nntp(char *ip, int sp, unsigned char options, char *miscptr, FILE * int service_nntp_init(char *ip, int sp, unsigned char options, char *miscptr, FILE * fp, int port, char *hostname); void usage_nntp(const char* service); +#define SERVICE_NNTP { \ + "nntp", \ + service_nntp_init, \ + service_nntp, \ + usage_nntp \ +} + #endif /* _HYDRA_SERVICE_NNTP_H_ */ diff --git a/services/hydra-oracle-listener.h b/services/hydra-oracle-listener.h index 9bc93a0..6e371ca 100644 --- a/services/hydra-oracle-listener.h +++ b/services/hydra-oracle-listener.h @@ -5,4 +5,11 @@ void service_oracle_listener(char *ip, int sp, unsigned char options, char *misc int service_oracle_listener_init(char *ip, int sp, unsigned char options, char *miscptr, FILE * fp, int port, char *hostname); void usage_oracle_listener(const char* service); +#define SERVICE_ORACLE_LISTENER { \ + "oracle-listener", \ + service_oracle_listener_init, \ + service_oracle_listener, \ + usage_oracle_listener \ +} + #endif /* _HYDRA_SERVICE_ORACLE_LISTENER_H_ */ diff --git a/services/hydra-oracle-sid.h b/services/hydra-oracle-sid.h index d9dd047..8a6386e 100644 --- a/services/hydra-oracle-sid.h +++ b/services/hydra-oracle-sid.h @@ -3,6 +3,12 @@ void service_oracle_sid(char *ip, int sp, unsigned char options, char *miscptr, FILE * fp, int port, char *hostname); int service_oracle_sid_init(char *ip, int sp, unsigned char options, char *miscptr, FILE * fp, int port, char *hostname); -void usage_oracle_sid(const char* service); + +#define SERVICE_ORACLE_SID { \ + "oracle-sid", \ + service_oracle_sid_init, \ + service_oracle_sid, \ + NULL \ +} #endif /* _HYDRA_SERVICE_ORACLE_SID_H_ */ diff --git a/services/hydra-oracle.h b/services/hydra-oracle.h index 44204a6..b67a150 100644 --- a/services/hydra-oracle.h +++ b/services/hydra-oracle.h @@ -5,4 +5,11 @@ void service_oracle(char *ip, int sp, unsigned char options, char *miscptr, FILE int service_oracle_init(char *ip, int sp, unsigned char options, char *miscptr, FILE * fp, int port, char *hostname); void usage_oracle(const char* service); +#define SERVICE_ORACLE { \ + "oracle", \ + service_oracle_init, \ + service_oracle, \ + usage_oracle \ +} + #endif /* _HYDRA_SERVICE_ORACLE_H_ */ diff --git a/services/hydra-pcanywhere.h b/services/hydra-pcanywhere.h index 8532223..5210eea 100644 --- a/services/hydra-pcanywhere.h +++ b/services/hydra-pcanywhere.h @@ -3,6 +3,12 @@ void service_pcanywhere(char *ip, int sp, unsigned char options, char *miscptr, FILE * fp, int port, char *hostname); int service_pcanywhere_init(char *ip, int sp, unsigned char options, char *miscptr, FILE * fp, int port, char *hostname); -void usage_pcanywhere(const char* service); + +#define SERVICE_PCANYWHERE { \ + "pcanywhere", \ + service_pcanywhere_init, \ + service_pcanywhere, \ + NULL \ +} #endif /* _HYDRA_SERVICE_PCANYWHERE_H_ */ diff --git a/services/hydra-pcnfs.h b/services/hydra-pcnfs.h index 36836f0..34202fd 100644 --- a/services/hydra-pcnfs.h +++ b/services/hydra-pcnfs.h @@ -3,6 +3,12 @@ void service_pcnfs(char *ip, int sp, unsigned char options, char *miscptr, FILE * fp, int port, char *hostname); int service_pcnfs_init(char *ip, int sp, unsigned char options, char *miscptr, FILE * fp, int port, char *hostname); -void usage_pcnfs(const char* service); + +#define SERVICE_PCNFS { \ + "pcnfs", \ + service_pcnfs_init, \ + service_pcnfs, \ + NULL \ +} #endif /* _HYDRA_SERVICE_PCNFS_H_ */ diff --git a/services/hydra-pop3.h b/services/hydra-pop3.h index b306729..5de3600 100644 --- a/services/hydra-pop3.h +++ b/services/hydra-pop3.h @@ -5,4 +5,11 @@ void service_pop3(char *ip, int sp, unsigned char options, char *miscptr, FILE * int service_pop3_init(char *ip, int sp, unsigned char options, char *miscptr, FILE * fp, int port, char *hostname); void usage_pop3(const char* service); +#define SERVICE_POP3 { \ + "pop3", \ + service_pop3_init, \ + service_pop3, \ + usage_pop3 \ +} + #endif /* _HYDRA_SERVICE_POP3_H_ */ diff --git a/services/hydra-postgres.h b/services/hydra-postgres.h index b1c4dc4..508fef1 100644 --- a/services/hydra-postgres.h +++ b/services/hydra-postgres.h @@ -5,4 +5,11 @@ void service_postgres(char *ip, int sp, unsigned char options, char *miscptr, FI int service_postgres_init(char *ip, int sp, unsigned char options, char *miscptr, FILE * fp, int port, char *hostname); void usage_postgres(const char* service); +#define SERVICE_POSTGRES { \ + "postgres", \ + service_postgres_init, \ + service_postgres, \ + usage_postgres \ +} + #endif /* _HYDRA_SERVICE_POSTGRES_H_ */ diff --git a/services/hydra-rdp.h b/services/hydra-rdp.h index 36ea4fb..9aa7bf7 100644 --- a/services/hydra-rdp.h +++ b/services/hydra-rdp.h @@ -5,4 +5,11 @@ void service_rdp(char *ip, int sp, unsigned char options, char *miscptr, FILE * int service_rdp_init(char *ip, int sp, unsigned char options, char *miscptr, FILE * fp, int port, char *hostname); void usage_rdp(const char* service); +#define SERVICE_RDP { \ + "rdp", \ + service_rdp_init, \ + service_rdp, \ + usage_rdp \ +} + #endif /* _HYDRA_SERVICE_RDP_H_ */ diff --git a/services/hydra-redis.h b/services/hydra-redis.h index b01f238..69cfb64 100644 --- a/services/hydra-redis.h +++ b/services/hydra-redis.h @@ -3,6 +3,12 @@ void service_redis(char *ip, int sp, unsigned char options, char *miscptr, FILE * fp, int port, char *hostname); int service_redis_init(char *ip, int sp, unsigned char options, char *miscptr, FILE * fp, int port, char *hostname); -void usage_redis(const char* service); + +#define SERVICE_REDIS { \ + "redis", \ + service_redis_init, \ + service_redis, \ + NULL \ +} #endif /* _HYDRA_SERVICE_REDIS_H_ */ diff --git a/services/hydra-rexec.h b/services/hydra-rexec.h index a453e76..b03be96 100644 --- a/services/hydra-rexec.h +++ b/services/hydra-rexec.h @@ -3,6 +3,12 @@ void service_rexec(char *ip, int sp, unsigned char options, char *miscptr, FILE * fp, int port, char *hostname); int service_rexec_init(char *ip, int sp, unsigned char options, char *miscptr, FILE * fp, int port, char *hostname); -void usage_rexec(const char* service); + +#define SERVICE_REXEC { \ + "rexec", \ + service_rexec_init, \ + service_rexec, \ + NULL \ +} #endif /* _HYDRA_SERVICE_REXEC_H_ */ diff --git a/services/hydra-rlogin.h b/services/hydra-rlogin.h index c05674c..8ce5de4 100644 --- a/services/hydra-rlogin.h +++ b/services/hydra-rlogin.h @@ -3,6 +3,12 @@ void service_rlogin(char *ip, int sp, unsigned char options, char *miscptr, FILE * fp, int port, char *hostname); int service_rlogin_init(char *ip, int sp, unsigned char options, char *miscptr, FILE * fp, int port, char *hostname); -void usage_rlogin(const char* service); + +#define SERVICE_RLOGIN { \ + "rlogin", \ + service_rlogin_init, \ + service_rlogin, \ + NULL \ +} #endif /* _HYDRA_SERVICE_RLOGIN_H_ */ diff --git a/services/hydra-rpcap.h b/services/hydra-rpcap.h index 8a09b3f..bcf139e 100644 --- a/services/hydra-rpcap.h +++ b/services/hydra-rpcap.h @@ -3,6 +3,12 @@ void service_rpcap(char *ip, int sp, unsigned char options, char *miscptr, FILE * fp, int port, char *hostname); int service_rpcap_init(char *ip, int sp, unsigned char options, char *miscptr, FILE * fp, int port, char *hostname); -void usage_rpcap(const char* service); + +#define SERVICE_RPCAP { \ + "rpcap", \ + service_rpcap_init, \ + service_rpcap, \ + NULL \ +} #endif /* _HYDRA_SERVICE_RPCAP_H_ */ diff --git a/services/hydra-rsh.h b/services/hydra-rsh.h index 04fe785..d13aecc 100644 --- a/services/hydra-rsh.h +++ b/services/hydra-rsh.h @@ -3,6 +3,12 @@ void service_rsh(char *ip, int sp, unsigned char options, char *miscptr, FILE * fp, int port, char *hostname); int service_rsh_init(char *ip, int sp, unsigned char options, char *miscptr, FILE * fp, int port, char *hostname); -void usage_rsh(const char* service); + +#define SERVICE_RSH { \ + "rsh", \ + service_rsh_init, \ + service_rsh, \ + NULL \ +} #endif /* _HYDRA_SERVICE_RSH_H_ */ diff --git a/services/hydra-rtsp.h b/services/hydra-rtsp.h index ca4d275..8519721 100644 --- a/services/hydra-rtsp.h +++ b/services/hydra-rtsp.h @@ -3,6 +3,12 @@ void service_rtsp(char *ip, int sp, unsigned char options, char *miscptr, FILE * fp, int port, char *hostname); int service_rtsp_init(char *ip, int sp, unsigned char options, char *miscptr, FILE * fp, int port, char *hostname); -void usage_rtsp(const char* service); + +#define SERVICE_RTSP { \ + "rtsp", \ + service_rtsp_init, \ + service_rtsp, \ + NULL \ +} #endif /* _HYDRA_SERVICE_RTSP_H_ */ diff --git a/services/hydra-s7-300.h b/services/hydra-s7-300.h index b5f7b05..141267f 100644 --- a/services/hydra-s7-300.h +++ b/services/hydra-s7-300.h @@ -5,4 +5,11 @@ void service_s7_300(char *ip, int sp, unsigned char options, char *miscptr, FILE int service_s7_300_init(char *ip, int sp, unsigned char options, char *miscptr, FILE * fp, int port, char *hostname); void usage_s7_300(const char* service); +#define SERVICE_S7_300 { \ + "s7-300", \ + service_s7_300_init, \ + service_s7_300, \ + usage_s7_300 \ +} + #endif /* _HYDRA_SERVICE_S7_300_H_ */ diff --git a/services/hydra-sapr3.h b/services/hydra-sapr3.h index aba0f32..59cb31e 100644 --- a/services/hydra-sapr3.h +++ b/services/hydra-sapr3.h @@ -5,4 +5,11 @@ void service_sapr3(char *ip, int sp, unsigned char options, char *miscptr, FILE int service_sapr3_init(char *ip, int sp, unsigned char options, char *miscptr, FILE * fp, int port, char *hostname); void usage_sapr3(const char* service); +#define SERVICE_SAPR3 { \ + "sapr3", \ + service_sapr3_init, \ + service_sapr3, \ + usage_sapr3 \ +} + #endif /* _HYDRA_SERVICE_SAPR3_H_ */ diff --git a/services/hydra-sip.h b/services/hydra-sip.h index 71a5331..9d9b215 100644 --- a/services/hydra-sip.h +++ b/services/hydra-sip.h @@ -3,6 +3,12 @@ void service_sip(char *ip, int sp, unsigned char options, char *miscptr, FILE * fp, int port, char *hostname); int service_sip_init(char *ip, int sp, unsigned char options, char *miscptr, FILE * fp, int port, char *hostname); -void usage_sip(const char* service); + +#define SERVICE_SIP { \ + "sip", \ + service_sip_init, \ + service_sip, \ + NULL \ +} #endif /* _HYDRA_SERVICE_SIP_H_ */ diff --git a/services/hydra-smb.h b/services/hydra-smb.h index b7593d8..1237563 100644 --- a/services/hydra-smb.h +++ b/services/hydra-smb.h @@ -5,4 +5,18 @@ void service_smb(char *ip, int sp, unsigned char options, char *miscptr, FILE * int service_smb_init(char *ip, int sp, unsigned char options, char *miscptr, FILE * fp, int port, char *hostname); void usage_smb(const char* service); +#define SERVICE_SMB { \ + "smb", \ + service_smb_init, \ + service_smb, \ + usage_smb \ +} + +#define SERVICE_SMBNT { \ + "smbnt", \ + service_smb_init, \ + service_smb, \ + usage_smb \ +} + #endif /* _HYDRA_SERVICE_SMB_H_ */ diff --git a/services/hydra-smtp-enum.h b/services/hydra-smtp-enum.h index 7e3f81e..0cb1c35 100644 --- a/services/hydra-smtp-enum.h +++ b/services/hydra-smtp-enum.h @@ -5,4 +5,11 @@ void service_smtp_enum(char *ip, int sp, unsigned char options, char *miscptr, F int service_smtp_enum_init(char *ip, int sp, unsigned char options, char *miscptr, FILE * fp, int port, char *hostname); void usage_smtp_enum(const char* service); +#define SERVICE_SMTP_ENUM { \ + "smtp-enum", \ + service_smtp_enum_init, \ + service_smtp_enum, \ + usage_smtp_enum \ +} + #endif /* _HYDRA_SERVICE_SMTP_ENUM_H_ */ diff --git a/services/hydra-smtp.h b/services/hydra-smtp.h index 44045a5..e5db5fa 100644 --- a/services/hydra-smtp.h +++ b/services/hydra-smtp.h @@ -5,4 +5,11 @@ void service_smtp(char *ip, int sp, unsigned char options, char *miscptr, FILE * int service_smtp_init(char *ip, int sp, unsigned char options, char *miscptr, FILE * fp, int port, char *hostname); void usage_smtp(const char* service); +#define SERVICE_SMTP { \ + "smtp", \ + service_smtp_init, \ + service_smtp, \ + usage_smtp \ +} + #endif /* _HYDRA_SERVICE_SMTP_H_ */ diff --git a/services/hydra-snmp.h b/services/hydra-snmp.h index 936fcee..c13b97b 100644 --- a/services/hydra-snmp.h +++ b/services/hydra-snmp.h @@ -5,4 +5,11 @@ void service_snmp(char *ip, int sp, unsigned char options, char *miscptr, FILE * int service_snmp_init(char *ip, int sp, unsigned char options, char *miscptr, FILE * fp, int port, char *hostname); void usage_snmp(const char* service); +#define SERVICE_SNMP { \ + "snmp", \ + service_snmp_init, \ + service_snmp, \ + usage_snmp \ +} + #endif /* _HYDRA_SERVICE_SNMP_H_ */ diff --git a/services/hydra-socks5.h b/services/hydra-socks5.h index 4d82a71..b5c8ca6 100644 --- a/services/hydra-socks5.h +++ b/services/hydra-socks5.h @@ -3,6 +3,12 @@ void service_socks5(char *ip, int sp, unsigned char options, char *miscptr, FILE * fp, int port, char *hostname); int service_socks5_init(char *ip, int sp, unsigned char options, char *miscptr, FILE * fp, int port, char *hostname); -void usage_socks5(const char* service); + +#define SERVICE_SOCKS5 { \ + "socks5", \ + service_socks5_init, \ + service_socks5, \ + NULL \ +} #endif /* _HYDRA_SERVICE_SOCKS5_H_ */ diff --git a/services/hydra-ssh.h b/services/hydra-ssh.h index b181463..4261677 100644 --- a/services/hydra-ssh.h +++ b/services/hydra-ssh.h @@ -3,6 +3,12 @@ void service_ssh(char *ip, int sp, unsigned char options, char *miscptr, FILE * fp, int port, char *hostname); int service_ssh_init(char *ip, int sp, unsigned char options, char *miscptr, FILE * fp, int port, char *hostname); -void usage_ssh(const char* service); + +#define SERVICE_SSH { \ + "ssh", \ + service_ssh_init, \ + NULL, \ + NULL \ +} #endif /* _HYDRA_SERVICE_SSH_H_ */ diff --git a/services/hydra-sshkey.h b/services/hydra-sshkey.h index fd30ef1..3450bcf 100644 --- a/services/hydra-sshkey.h +++ b/services/hydra-sshkey.h @@ -5,4 +5,11 @@ void service_sshkey(char *ip, int sp, unsigned char options, char *miscptr, FILE int service_sshkey_init(char *ip, int sp, unsigned char options, char *miscptr, FILE * fp, int port, char *hostname); void usage_sshkey(const char* service); +#define SERVICE_SSHKEY { \ + "sshkey", \ + service_sshkey_init, \ + service_sshkey, \ + usage_sshkey \ +} + #endif /* _HYDRA_SERVICE_SSHKEY_H_ */ diff --git a/services/hydra-svn.h b/services/hydra-svn.h index fcc1491..c110d3a 100644 --- a/services/hydra-svn.h +++ b/services/hydra-svn.h @@ -5,4 +5,11 @@ void service_svn(char *ip, int sp, unsigned char options, char *miscptr, FILE * int service_svn_init(char *ip, int sp, unsigned char options, char *miscptr, FILE * fp, int port, char *hostname); void usage_svn(const char* service); +#define SERVICE_SVN { \ + "svn", \ + service_svn_init, \ + service_svn, \ + usage_svn \ +} + #endif /* _HYDRA_SERVICE_SVN_H_ */ diff --git a/services/hydra-teamspeak.h b/services/hydra-teamspeak.h index d94ba44..4c6efc3 100644 --- a/services/hydra-teamspeak.h +++ b/services/hydra-teamspeak.h @@ -3,6 +3,12 @@ void service_teamspeak(char *ip, int sp, unsigned char options, char *miscptr, FILE * fp, int port, char *hostname); int service_teamspeak_init(char *ip, int sp, unsigned char options, char *miscptr, FILE * fp, int port, char *hostname); -void usage_teamspeak(const char* service); + +#define SERVICE_TEAMSPEAK { \ + "teamspeak", \ + service_teamspeak_init, \ + service_teamspeak, \ + NULL \ +} #endif /* _HYDRA_SERVICE_TEAMSPEAK_H_ */ diff --git a/services/hydra-telnet.h b/services/hydra-telnet.h index b20c26a..519fdc9 100644 --- a/services/hydra-telnet.h +++ b/services/hydra-telnet.h @@ -5,4 +5,11 @@ void service_telnet(char *ip, int sp, unsigned char options, char *miscptr, FILE int service_telnet_init(char *ip, int sp, unsigned char options, char *miscptr, FILE * fp, int port, char *hostname); void usage_telnet(const char* service); +#define SERVICE_TELNET { \ + "telnet", \ + service_telnet_init, \ + service_telnet, \ + usage_telnet \ +} + #endif /* _HYDRA_SERVICE_TELNET_H_ */ diff --git a/services/hydra-vmauthd.h b/services/hydra-vmauthd.h index 4e9143a..deb0c2c 100644 --- a/services/hydra-vmauthd.h +++ b/services/hydra-vmauthd.h @@ -3,6 +3,12 @@ void service_vmauthd(char *ip, int sp, unsigned char options, char *miscptr, FILE * fp, int port, char *hostname); int service_vmauthd_init(char *ip, int sp, unsigned char options, char *miscptr, FILE * fp, int port, char *hostname); -void usage_vmauthd(const char* service); + +#define SERVICE_VMAUTHD { \ + "vmauthd", \ + service_vmauthd_init, \ + service_vmauthd, \ + NULL \ +} #endif /* _HYDRA_SERVICE_VMAUTHD_H_ */ diff --git a/services/hydra-vnc.h b/services/hydra-vnc.h index 88529b7..2396d2a 100644 --- a/services/hydra-vnc.h +++ b/services/hydra-vnc.h @@ -3,6 +3,12 @@ void service_vnc(char *ip, int sp, unsigned char options, char *miscptr, FILE * fp, int port, char *hostname); int service_vnc_init(char *ip, int sp, unsigned char options, char *miscptr, FILE * fp, int port, char *hostname); -void usage_vnc(const char* service); + +#define SERVICE_VNC { \ + "vnc", \ + service_vnc_init, \ + service_vnc, \ + NULL \ +} #endif /* _HYDRA_SERVICE_VNC_H_ */ diff --git a/services/hydra-xmpp.h b/services/hydra-xmpp.h index 16ccd4d..45281c2 100644 --- a/services/hydra-xmpp.h +++ b/services/hydra-xmpp.h @@ -5,4 +5,11 @@ void service_xmpp(char *target, char *ip, int sp, unsigned char options, char *m int service_xmpp_init(char *ip, int sp, unsigned char options, char *miscptr, FILE * fp, int port, char *hostname); void usage_xmpp(const char* service); +#define SERVICE_XMPP { \ + "xmpp", \ + service_xmpp_init, \ + NULL, \ + usage_xmpp \ +} + #endif /* _HYDRA_SERVICE_XMPP_H_ */ From a960ff8f4fc79f51f85cc573cbbc1efecae461b8 Mon Sep 17 00:00:00 2001 From: Diadlo Date: Thu, 22 Jun 2017 14:43:20 +0300 Subject: [PATCH 6/6] Move usage in corresponding service module --- hydra.c | 207 ---------------------------- services/hydra-cisco-enable.c | 10 ++ services/hydra-cisco.c | 4 + services/hydra-cvs.c | 4 + services/hydra-firebird.c | 4 + services/hydra-http-form.c | 37 +++++ services/hydra-http-proxy-urlenum.c | 7 + services/hydra-http-proxy.c | 5 + services/hydra-http.c | 5 + services/hydra-imap.c | 6 + services/hydra-irc.c | 4 + services/hydra-ldap.c | 11 ++ services/hydra-mysql.c | 4 + services/hydra-ncp.c | 4 + services/hydra-nntp.c | 4 + services/hydra-oracle-listener.c | 4 + services/hydra-oracle.c | 4 + services/hydra-pop3.c | 6 + services/hydra-postgres.c | 4 + services/hydra-rdp.c | 4 + services/hydra-s7-300.c | 4 + services/hydra-sapr3.c | 4 + services/hydra-smb.c | 13 ++ services/hydra-smtp-enum.c | 7 + services/hydra-smtp.c | 6 + services/hydra-snmp.c | 20 +++ services/hydra-sshkey.c | 7 + services/hydra-svn.c | 4 + services/hydra-telnet.c | 5 + services/hydra-xmpp.c | 6 + 30 files changed, 207 insertions(+), 207 deletions(-) diff --git a/hydra.c b/hydra.c index ed88f12..60ae236 100644 --- a/hydra.c +++ b/hydra.c @@ -482,213 +482,6 @@ void help_bfg() { exit(-1); } -void usage_oracle(const char* service) { - printf("Module oracle / ora is optionally taking the ORACLE SID, default is \"ORCL\"\n\n"); -} - -void usage_oracle_listener(const char* service) { - printf("Module oracle-listener / tns is optionally taking the mode the password is stored as, could be PLAIN (default) or CLEAR\n\n"); -} - -void usage_cvs(const char* service) { - printf("Module cvs is optionally taking the repository name to attack, default is \"/root\"\n\n"); -} - -void usage_xmpp(const char* service) { - printf("Module xmpp is optionally taking one authentication type of:\n" - " LOGIN (default), PLAIN, CRAM-MD5, DIGEST-MD5, SCRAM-SHA1\n\n" - "Note, the target passed should be a fdqn as the value is used in the Jabber init request, example: hermes.jabber.org\n\n"); -} - -void usage_pop3(const char* service) { - printf("Module pop3 is optionally taking one authentication type of:\n" - " CLEAR (default), LOGIN, PLAIN, CRAM-MD5, CRAM-SHA1,\n" - " CRAM-SHA256, DIGEST-MD5, NTLM.\n" "Additionally TLS encryption via STLS can be enforced with the TLS option.\n\n" "Example: pop3://target/TLS:PLAIN\n"); -} - -void usage_rdp(const char* service) { - printf("Module rdp is optionally taking the windows domain name.\n" "For example:\nhydra rdp://192.168.0.1/firstdomainname -l john -p doe\n\n"); -} - -void usage_s7_300(const char* service) { - printf("Module S7-300 is for a special Siemens PLC. It either requires only a password or no authentication, so just use the -p or -P option.\n\n"); -} - -void usage_nntp(const char* service) { - printf("Module nntp is optionally taking one authentication type of:\n" " USER (default), LOGIN, PLAIN, CRAM-MD5, DIGEST-MD5, NTLM\n\n"); -} - -void usage_imap(const char* service) { - printf("Module imap is optionally taking one authentication type of:\n" - " CLEAR or APOP (default), LOGIN, PLAIN, CRAM-MD5, CRAM-SHA1,\n" - " CRAM-SHA256, DIGEST-MD5, NTLM\n" "Additionally TLS encryption via STARTTLS can be enforced with the TLS option.\n\n" "Example: imap://target/TLS:PLAIN\n"); -} - -void usage_smtp_enum(const char* service) { - printf("Module smtp-enum is optionally taking one SMTP command of:\n\n" - "VRFY (default), EXPN, RCPT (which will connect using \"root\" account)\n" - "login parameter is used as username and password parameter as the domain name\n" - "For example to test if john@localhost exists on 192.168.0.1:\n" "hydra smtp-enum://192.168.0.1/vrfy -l john -p localhost\n\n"); -} - -void usage_smtp(const char* service) { - printf("Module smtp is optionally taking one authentication type of:\n" - " LOGIN (default), PLAIN, CRAM-MD5, DIGEST-MD5, NTLM\n\n" - "Additionally TLS encryption via STARTTLS can be enforced with the TLS option.\n\n" "Example: smtp://target/TLS:PLAIN\n"); -} - -void usage_svn(const char* service) { - printf("Module svn is optionally taking the repository name to attack, default is \"trunk\"\n\n"); -} - -void usage_ncp(const char* service) { - printf("Module ncp is optionally taking the full context, for example \".O=cx\"\n\n"); -} - -void usage_firebird(const char* service) { - printf("Module firebird is optionally taking the database path to attack,\n" "default is \"C:\\Program Files\\Firebird\\Firebird_1_5\\security.fdb\"\n\n"); -} - -void usage_mysql(const char* service) { - printf("Module mysql is optionally taking the database to attack, default is \"mysql\"\n\n"); -} - -void usage_irc(const char* service) { - printf("Module irc is optionally taking the general server password, if the server is requiring one\n" "and none is passed the password from -p/-P will be used\n\n"); -} - -void usage_postgres(const char* service) { - printf("Module postgres is optionally taking the database to attack, default is \"template1\"\n\n"); -} - -void usage_telnet(const char* service) { - printf("Module telnet is optionally taking the string which is displayed after\n" - "a successful login (case insensitive), use if the default in the telnet\n" "module produces too many false positives\n\n"); -} - -void usage_sapr3(const char* service) { - printf("Module sapr3 requires the client id, a number between 0 and 99\n\n"); -} - -void usage_sshkey(const char* service) { - printf("Module sshkey does not provide additional options, although the semantic for\n" - "options -p and -P is changed:\n" - " -p expects a path to an unencrypted private key in PEM format.\n" - " -P expects a filename containing a list of path to some unencrypted\n" " private keys in PEM format.\n\n"); -} - -void usage_cisco_enable(const char* service) { - printf("Module cisco-enable is optionally taking the logon password for the cisco device\n" - "Note: if AAA authentication is used, use the -l option for the username\n" - "and the optional parameter for the password of the user.\n" - "Examples:\n" - " hydra -P pass.txt target cisco-enable (direct console access)\n" - " hydra -P pass.txt -m cisco target cisco-enable (Logon password cisco)\n" - " hydra -l foo -m bar -P pass.txt target cisco-enable (AAA Login foo, password bar)\n"); -} - -void usage_cisco(const char* service) { - printf("Module cisco is optionally taking the keyword ENTER, it then sends an initial\n" "ENTER when connecting to the service.\n"); -} - -void usage_ldap(const char* service) { - printf("Module %s is optionally taking the DN (depending of the auth method choosed\n" - "Note: you can also specify the DN as login when Simple auth method is used).\n" - "The keyword \"^USER^\" is replaced with the login.\n" - "Special notes for Simple method has 3 operation modes: anonymous, (no user no pass),\n" - "unauthenticated (user but no pass), user/pass authenticated (user and pass).\n" - "So don't forget to set empty string as user/pass to test all modes.\n" - "Hint: to authenticate to a windows active directy ldap, this is usually\n" - " cn=^USER^,cn=users,dc=foo,dc=bar,dc=com for domain foo.bar.com\n\n", service); -} - -void usage_smb(const char* service) { - printf("Module smb default value is set to test both local and domain account, using a simple password with NTLM dialect.\n" - "Note: you can set the group type using LOCAL or DOMAIN keyword\n" - " or other_domain:{value} to specify a trusted domain.\n" - " you can set the password type using HASH or MACHINE keyword\n" - " (to use the Machine's NetBIOS name as the password).\n" - " you can set the dialect using NTLMV2, NTLM, LMV2, LM keyword.\n" - "Example: \n" - " hydra smb://microsoft.com -l admin -p tooeasy -m \"local lmv2\"\n" - " hydra smb://microsoft.com -l admin -p D5731CFC6C2A069C21FD0D49CAEBC9EA:2126EE7712D37E265FD63F2C84D2B13D::: -m \"local hash\"\n" - " hydra smb://microsoft.com -l admin -p tooeasy -m \"other_domain:SECONDDOMAIN\"\n\n"); -} - -void usage_http_form(const char* service) { - printf("Module %s requires the page and the parameters for the web form.\n\n" - "By default this module is configured to follow a maximum of 5 redirections in\n" - "a row. It always gathers a new cookie from the same URL without variables\n" - "The parameters take three \":\" separated values, plus optional values.\n" - "(Note: if you need a colon in the option string as value, escape it with \"\\:\", but do not escape a \"\\\" with \"\\\\\".)\n" - "\nSyntax: :
:[:[:]\n" - "First is the page on the server to GET or POST to (URL).\n" - "Second is the POST/GET variables (taken from either the browser, proxy, etc.\n" - " with usernames and passwords being replaced in the \"^USER^\" and \"^PASS^\"\n" - " placeholders (FORM PARAMETERS)\n" - "Third is the string that it checks for an *invalid* login (by default)\n" - " Invalid condition login check can be preceded by \"F=\", successful condition\n" - " login check must be preceded by \"S=\".\n" - " This is where most people get it wrong. You have to check the webapp what a\n" - " failed string looks like and put it in this parameter!\n" - "The following parameters are optional:\n" - " C=/page/uri to define a different page to gather initial cookies from\n" - " (h|H)=My-Hdr\\: foo to send a user defined HTTP header with each request\n" - " ^USER^ and ^PASS^ can also be put into these headers!\n" - " Note: 'h' will add the user-defined header at the end\n" - " regardless it's already being sent by Hydra or not.\n" - " 'H' will replace the value of that header if it exists, by the\n" - " one supplied by the user, or add the header at the end\n" - "Note that if you are going to put colons (:) in your headers you should escape them with a backslash (\\).\n" - " All colons that are not option separators should be escaped (see the examples above and below).\n" - " You can specify a header without escaping the colons, but that way you will not be able to put colons\n" - " in the header value itself, as they will be interpreted by hydra as option separators.\n" - "\nExamples:\n" - " \"/login.php:user=^USER^&pass=^PASS^:incorrect\"\n" - " \"/login.php:user=^USER^&pass=^PASS^&colon=colon\\:escape:S=authlog=.*success\"\n" - " \"/login.php:user=^USER^&pass=^PASS^&mid=123:authlog=.*failed\"\n" - " \"/:user=^USER&pass=^PASS^:failed:H=Authorization\\: Basic dT1w:H=Cookie\\: sessid=aaaa:h=X-User\\: ^USER^:H=User-Agent\\: wget\"\n" - " \"/exchweb/bin/auth/owaauth.dll:destination=http%%3A%%2F%%2F%%2Fexchange&flags=0&username=%%5C^USER^&password=^PASS^&SubmitCreds=x&trusted=0:reason=:C=/exchweb\"\n", - service); -} - -void usage_http_proxy(const char* service) { - printf("Module http-proxy is optionally taking the page to authenticate at.\n" - "Default is http://www.microsoft.com/)\n" "Basic, DIGEST-MD5 and NTLM are supported and negotiated automatically.\n\n"); -} - -void usage_http_proxy_urlenum(const char* service) { - printf("Module http-proxy-urlenum only uses the -L option, not -x or -p/-P option.\n" - "The -L loginfile must contain the URL list to try through the proxy.\n" - "The proxy credentials cann be put as the optional parameter, e.g.\n" - " hydra -L urllist.txt -s 3128 target.com http-proxy-urlenum user:pass\n" " hydra -L urllist.txt http-proxy-urlenum://target.com:3128/user:pass\n\n"); -} - -void usage_snmp(const char* service) { - printf("Module snmp is optionally taking the following parameters:\n" - " READ perform read requests (default)\n" - " WRITE perform write requests\n" - " 1 use SNMP version 1 (default)\n" - " 2 use SNMP version 2\n" - " 3 use SNMP version 3\n" - " Note that SNMP version 3 usually uses both login and passwords!\n" - " SNMP version 3 has the following optional sub parameters:\n" - " MD5 use MD5 authentication (default)\n" - " SHA use SHA authentication\n" - " DES use DES encryption\n" - " AES use AES encryption\n" - " if no -p/-P parameter is given, SNMPv3 noauth is performed, which\n" - " only requires a password (or username) not both.\n" - "To combine the options, use colons (\":\"), e.g.:\n" - " hydra -L user.txt -P pass.txt -m 3:SHA:AES:READ target.com snmp\n" - " hydra -P pass.txt -m 2 target.com snmp\n"); -} - -void usage_http(const char* service) { - printf("Module %s requires the page to authenticate.\n" - "For example: \"/secret\" or \"http://bla.com/foo/bar\" or \"https://test.com:8080/members\"\n\n", service); -} - void module_usage() { int i; if (!hydra_options.service) { diff --git a/services/hydra-cisco-enable.c b/services/hydra-cisco-enable.c index f943d5c..3113179 100644 --- a/services/hydra-cisco-enable.c +++ b/services/hydra-cisco-enable.c @@ -209,3 +209,13 @@ int service_cisco_enable_init(char *ip, int sp, unsigned char options, char *mis return 0; } + +void usage_cisco_enable(const char* service) { + printf("Module cisco-enable is optionally taking the logon password for the cisco device\n" + "Note: if AAA authentication is used, use the -l option for the username\n" + "and the optional parameter for the password of the user.\n" + "Examples:\n" + " hydra -P pass.txt target cisco-enable (direct console access)\n" + " hydra -P pass.txt -m cisco target cisco-enable (Logon password cisco)\n" + " hydra -l foo -m bar -P pass.txt target cisco-enable (AAA Login foo, password bar)\n"); +} diff --git a/services/hydra-cisco.c b/services/hydra-cisco.c index 3e45ad4..dcb50fc 100644 --- a/services/hydra-cisco.c +++ b/services/hydra-cisco.c @@ -211,3 +211,7 @@ int service_cisco_init(char *ip, int sp, unsigned char options, char *miscptr, F return 0; } + +void usage_cisco(const char* service) { + printf("Module cisco is optionally taking the keyword ENTER, it then sends an initial\n" "ENTER when connecting to the service.\n"); +} diff --git a/services/hydra-cvs.c b/services/hydra-cvs.c index 3995c95..0fa24e4 100644 --- a/services/hydra-cvs.c +++ b/services/hydra-cvs.c @@ -149,3 +149,7 @@ int service_cvs_init(char *ip, int sp, unsigned char options, char *miscptr, FIL return 0; } + +void usage_cvs(const char* service) { + printf("Module cvs is optionally taking the repository name to attack, default is \"/root\"\n\n"); +} diff --git a/services/hydra-firebird.c b/services/hydra-firebird.c index f606f0e..006c5c0 100644 --- a/services/hydra-firebird.c +++ b/services/hydra-firebird.c @@ -159,3 +159,7 @@ int service_firebird_init(char *ip, int sp, unsigned char options, char *miscptr return 0; } + +void usage_firebird(const char* service) { + printf("Module firebird is optionally taking the database path to attack,\n" "default is \"C:\\Program Files\\Firebird\\Firebird_1_5\\security.fdb\"\n\n"); +} diff --git a/services/hydra-http-form.c b/services/hydra-http-form.c index f322650..8d7ce36 100644 --- a/services/hydra-http-form.c +++ b/services/hydra-http-form.c @@ -1239,3 +1239,40 @@ ptr_header_node initialize(char *ip, unsigned char options, char *miscptr) { } return ptr_head; } + +void usage_http_form(const char* service) { + printf("Module %s requires the page and the parameters for the web form.\n\n" + "By default this module is configured to follow a maximum of 5 redirections in\n" + "a row. It always gathers a new cookie from the same URL without variables\n" + "The parameters take three \":\" separated values, plus optional values.\n" + "(Note: if you need a colon in the option string as value, escape it with \"\\:\", but do not escape a \"\\\" with \"\\\\\".)\n" + "\nSyntax: ::[:[:]\n" + "First is the page on the server to GET or POST to (URL).\n" + "Second is the POST/GET variables (taken from either the browser, proxy, etc.\n" + " with usernames and passwords being replaced in the \"^USER^\" and \"^PASS^\"\n" + " placeholders (FORM PARAMETERS)\n" + "Third is the string that it checks for an *invalid* login (by default)\n" + " Invalid condition login check can be preceded by \"F=\", successful condition\n" + " login check must be preceded by \"S=\".\n" + " This is where most people get it wrong. You have to check the webapp what a\n" + " failed string looks like and put it in this parameter!\n" + "The following parameters are optional:\n" + " C=/page/uri to define a different page to gather initial cookies from\n" + " (h|H)=My-Hdr\\: foo to send a user defined HTTP header with each request\n" + " ^USER^ and ^PASS^ can also be put into these headers!\n" + " Note: 'h' will add the user-defined header at the end\n" + " regardless it's already being sent by Hydra or not.\n" + " 'H' will replace the value of that header if it exists, by the\n" + " one supplied by the user, or add the header at the end\n" + "Note that if you are going to put colons (:) in your headers you should escape them with a backslash (\\).\n" + " All colons that are not option separators should be escaped (see the examples above and below).\n" + " You can specify a header without escaping the colons, but that way you will not be able to put colons\n" + " in the header value itself, as they will be interpreted by hydra as option separators.\n" + "\nExamples:\n" + " \"/login.php:user=^USER^&pass=^PASS^:incorrect\"\n" + " \"/login.php:user=^USER^&pass=^PASS^&colon=colon\\:escape:S=authlog=.*success\"\n" + " \"/login.php:user=^USER^&pass=^PASS^&mid=123:authlog=.*failed\"\n" + " \"/:user=^USER&pass=^PASS^:failed:H=Authorization\\: Basic dT1w:H=Cookie\\: sessid=aaaa:h=X-User\\: ^USER^:H=User-Agent\\: wget\"\n" + " \"/exchweb/bin/auth/owaauth.dll:destination=http%%3A%%2F%%2F%%2Fexchange&flags=0&username=%%5C^USER^&password=^PASS^&SubmitCreds=x&trusted=0:reason=:C=/exchweb\"\n", + service); +} diff --git a/services/hydra-http-proxy-urlenum.c b/services/hydra-http-proxy-urlenum.c index 97dce71..2f265d4 100644 --- a/services/hydra-http-proxy-urlenum.c +++ b/services/hydra-http-proxy-urlenum.c @@ -291,3 +291,10 @@ int service_http_proxy_urlenum_init(char *ip, int sp, unsigned char options, cha return 0; } + +void usage_http_proxy_urlenum(const char* service) { + printf("Module http-proxy-urlenum only uses the -L option, not -x or -p/-P option.\n" + "The -L loginfile must contain the URL list to try through the proxy.\n" + "The proxy credentials cann be put as the optional parameter, e.g.\n" + " hydra -L urllist.txt -s 3128 target.com http-proxy-urlenum user:pass\n" " hydra -L urllist.txt http-proxy-urlenum://target.com:3128/user:pass\n\n"); +} diff --git a/services/hydra-http-proxy.c b/services/hydra-http-proxy.c index 6a5c578..d21ae90 100644 --- a/services/hydra-http-proxy.c +++ b/services/hydra-http-proxy.c @@ -312,3 +312,8 @@ int service_http_proxy_init(char *ip, int sp, unsigned char options, char *miscp return 0; } + +void usage_http_proxy(const char* service) { + printf("Module http-proxy is optionally taking the page to authenticate at.\n" + "Default is http://www.microsoft.com/)\n" "Basic, DIGEST-MD5 and NTLM are supported and negotiated automatically.\n\n"); +} diff --git a/services/hydra-http.c b/services/hydra-http.c index a7d773f..9e5a28e 100644 --- a/services/hydra-http.c +++ b/services/hydra-http.c @@ -350,3 +350,8 @@ int service_http_init(char *ip, int sp, unsigned char options, char *miscptr, FI return 0; } + +void usage_http(const char* service) { + printf("Module %s requires the page to authenticate.\n" + "For example: \"/secret\" or \"http://bla.com/foo/bar\" or \"https://test.com:8080/members\"\n\n", service); +} diff --git a/services/hydra-imap.c b/services/hydra-imap.c index dcf45ed..07524d5 100644 --- a/services/hydra-imap.c +++ b/services/hydra-imap.c @@ -584,3 +584,9 @@ int service_imap_init(char *ip, int sp, unsigned char options, char *miscptr, FI return 0; } + +void usage_imap(const char* service) { + printf("Module imap is optionally taking one authentication type of:\n" + " CLEAR or APOP (default), LOGIN, PLAIN, CRAM-MD5, CRAM-SHA1,\n" + " CRAM-SHA256, DIGEST-MD5, NTLM\n" "Additionally TLS encryption via STARTTLS can be enforced with the TLS option.\n\n" "Example: imap://target/TLS:PLAIN\n"); +} diff --git a/services/hydra-irc.c b/services/hydra-irc.c index 42e2043..bb79ee0 100644 --- a/services/hydra-irc.c +++ b/services/hydra-irc.c @@ -222,3 +222,7 @@ int service_irc_init(char *ip, int sp, unsigned char options, char *miscptr, FIL return 0; } + +void usage_irc(const char* service) { + printf("Module irc is optionally taking the general server password, if the server is requiring one\n" "and none is passed the password from -p/-P will be used\n\n"); +} diff --git a/services/hydra-ldap.c b/services/hydra-ldap.c index 517d3c0..b1514c4 100644 --- a/services/hydra-ldap.c +++ b/services/hydra-ldap.c @@ -454,3 +454,14 @@ int service_ldap_init(char *ip, int sp, unsigned char options, char *miscptr, FI return 0; } + +void usage_ldap(const char* service) { + printf("Module %s is optionally taking the DN (depending of the auth method choosed\n" + "Note: you can also specify the DN as login when Simple auth method is used).\n" + "The keyword \"^USER^\" is replaced with the login.\n" + "Special notes for Simple method has 3 operation modes: anonymous, (no user no pass),\n" + "unauthenticated (user but no pass), user/pass authenticated (user and pass).\n" + "So don't forget to set empty string as user/pass to test all modes.\n" + "Hint: to authenticate to a windows active directy ldap, this is usually\n" + " cn=^USER^,cn=users,dc=foo,dc=bar,dc=com for domain foo.bar.com\n\n", service); +} diff --git a/services/hydra-mysql.c b/services/hydra-mysql.c index babf4a8..df9dad4 100644 --- a/services/hydra-mysql.c +++ b/services/hydra-mysql.c @@ -437,3 +437,7 @@ int service_mysql_init(char *ip, int sp, unsigned char options, char *miscptr, F return 0; } + +void usage_mysql(const char* service) { + printf("Module mysql is optionally taking the database to attack, default is \"mysql\"\n\n"); +} diff --git a/services/hydra-ncp.c b/services/hydra-ncp.c index 44c084c..ca22236 100644 --- a/services/hydra-ncp.c +++ b/services/hydra-ncp.c @@ -197,3 +197,7 @@ int service_ncp_init(char *ip, int sp, unsigned char options, char *miscptr, FIL return 0; } + +void usage_ncp(const char* service) { + printf("Module ncp is optionally taking the full context, for example \".O=cx\"\n\n"); +} diff --git a/services/hydra-nntp.c b/services/hydra-nntp.c index bfa3108..82753d1 100644 --- a/services/hydra-nntp.c +++ b/services/hydra-nntp.c @@ -485,3 +485,7 @@ int service_nntp_init(char *ip, int sp, unsigned char options, char *miscptr, FI return 0; } + +void usage_nntp(const char* service) { + printf("Module nntp is optionally taking one authentication type of:\n" " USER (default), LOGIN, PLAIN, CRAM-MD5, DIGEST-MD5, NTLM\n\n"); +} diff --git a/services/hydra-oracle-listener.c b/services/hydra-oracle-listener.c index 5f58181..9a52cea 100644 --- a/services/hydra-oracle-listener.c +++ b/services/hydra-oracle-listener.c @@ -339,4 +339,8 @@ int service_oracle_listener_init(char *ip, int sp, unsigned char options, char * return 0; } +void usage_oracle_listener(const char* service) { + printf("Module oracle-listener / tns is optionally taking the mode the password is stored as, could be PLAIN (default) or CLEAR\n\n"); +} + #endif diff --git a/services/hydra-oracle.c b/services/hydra-oracle.c index f590ea9..871adc8 100644 --- a/services/hydra-oracle.c +++ b/services/hydra-oracle.c @@ -196,3 +196,7 @@ int service_oracle_init(char *ip, int sp, unsigned char options, char *miscptr, return 0; } + +void usage_oracle(const char* service) { + printf("Module oracle / ora is optionally taking the ORACLE SID, default is \"ORCL\"\n\n"); +} diff --git a/services/hydra-pop3.c b/services/hydra-pop3.c index 4481dfc..1ae675b 100644 --- a/services/hydra-pop3.c +++ b/services/hydra-pop3.c @@ -775,3 +775,9 @@ int service_pop3_init(char *ip, int sp, unsigned char options, char *miscptr, FI return 0; } + +void usage_pop3(const char* service) { + printf("Module pop3 is optionally taking one authentication type of:\n" + " CLEAR (default), LOGIN, PLAIN, CRAM-MD5, CRAM-SHA1,\n" + " CRAM-SHA256, DIGEST-MD5, NTLM.\n" "Additionally TLS encryption via STLS can be enforced with the TLS option.\n\n" "Example: pop3://target/TLS:PLAIN\n"); +} diff --git a/services/hydra-postgres.c b/services/hydra-postgres.c index e572622..056e23b 100644 --- a/services/hydra-postgres.c +++ b/services/hydra-postgres.c @@ -132,3 +132,7 @@ int service_postgres_init(char *ip, int sp, unsigned char options, char *miscptr return 0; } + +void usage_postgres(const char* service) { + printf("Module postgres is optionally taking the database to attack, default is \"template1\"\n\n"); +} diff --git a/services/hydra-rdp.c b/services/hydra-rdp.c index 38c9c83..bd5b0e0 100644 --- a/services/hydra-rdp.c +++ b/services/hydra-rdp.c @@ -3247,3 +3247,7 @@ int service_rdp_init(char *ip, int sp, unsigned char options, char *miscptr, FIL return 0; } + +void usage_rdp(const char* service) { + printf("Module rdp is optionally taking the windows domain name.\n" "For example:\nhydra rdp://192.168.0.1/firstdomainname -l john -p doe\n\n"); +} diff --git a/services/hydra-s7-300.c b/services/hydra-s7-300.c index b06e398..6ece2f8 100644 --- a/services/hydra-s7-300.c +++ b/services/hydra-s7-300.c @@ -285,3 +285,7 @@ int service_s7_300_init(char *ip, int sp, unsigned char options, char *miscptr, return 0; } + +void usage_s7_300(const char* service) { + printf("Module S7-300 is for a special Siemens PLC. It either requires only a password or no authentication, so just use the -p or -P option.\n\n"); +} diff --git a/services/hydra-sapr3.c b/services/hydra-sapr3.c index bd46c3c..0eaa54a 100644 --- a/services/hydra-sapr3.c +++ b/services/hydra-sapr3.c @@ -130,3 +130,7 @@ int service_sapr3_init(char *ip, int sp, unsigned char options, char *miscptr, F return 0; } + +void usage_sapr3(const char* service) { + printf("Module sapr3 requires the client id, a number between 0 and 99\n\n"); +} diff --git a/services/hydra-smb.c b/services/hydra-smb.c index f0f5a40..0f669f2 100644 --- a/services/hydra-smb.c +++ b/services/hydra-smb.c @@ -1440,3 +1440,16 @@ int service_smb_init(char *ip, int sp, unsigned char options, char *miscptr, FIL return 0; } + +void usage_smb(const char* service) { + printf("Module smb default value is set to test both local and domain account, using a simple password with NTLM dialect.\n" + "Note: you can set the group type using LOCAL or DOMAIN keyword\n" + " or other_domain:{value} to specify a trusted domain.\n" + " you can set the password type using HASH or MACHINE keyword\n" + " (to use the Machine's NetBIOS name as the password).\n" + " you can set the dialect using NTLMV2, NTLM, LMV2, LM keyword.\n" + "Example: \n" + " hydra smb://microsoft.com -l admin -p tooeasy -m \"local lmv2\"\n" + " hydra smb://microsoft.com -l admin -p D5731CFC6C2A069C21FD0D49CAEBC9EA:2126EE7712D37E265FD63F2C84D2B13D::: -m \"local hash\"\n" + " hydra smb://microsoft.com -l admin -p tooeasy -m \"other_domain:SECONDDOMAIN\"\n\n"); +} diff --git a/services/hydra-smtp-enum.c b/services/hydra-smtp-enum.c index aad98f4..2e8e93b 100644 --- a/services/hydra-smtp-enum.c +++ b/services/hydra-smtp-enum.c @@ -262,3 +262,10 @@ int service_smtp_enum_init(char *ip, int sp, unsigned char options, char *miscpt return 0; } + +void usage_smtp_enum(const char* service) { + printf("Module smtp-enum is optionally taking one SMTP command of:\n\n" + "VRFY (default), EXPN, RCPT (which will connect using \"root\" account)\n" + "login parameter is used as username and password parameter as the domain name\n" + "For example to test if john@localhost exists on 192.168.0.1:\n" "hydra smtp-enum://192.168.0.1/vrfy -l john -p localhost\n\n"); +} diff --git a/services/hydra-smtp.c b/services/hydra-smtp.c index 1f40110..721671b 100644 --- a/services/hydra-smtp.c +++ b/services/hydra-smtp.c @@ -456,3 +456,9 @@ int service_smtp_init(char *ip, int sp, unsigned char options, char *miscptr, FI return 0; } + +void usage_smtp(const char* service) { + printf("Module smtp is optionally taking one authentication type of:\n" + " LOGIN (default), PLAIN, CRAM-MD5, DIGEST-MD5, NTLM\n\n" + "Additionally TLS encryption via STARTTLS can be enforced with the TLS option.\n\n" "Example: smtp://target/TLS:PLAIN\n"); +} diff --git a/services/hydra-snmp.c b/services/hydra-snmp.c index 497b7b1..1af2d3d 100644 --- a/services/hydra-snmp.c +++ b/services/hydra-snmp.c @@ -586,3 +586,23 @@ int service_snmp_init(char *ip, int sp, unsigned char options, char *miscptr, FI return 0; } + +void usage_snmp(const char* service) { + printf("Module snmp is optionally taking the following parameters:\n" + " READ perform read requests (default)\n" + " WRITE perform write requests\n" + " 1 use SNMP version 1 (default)\n" + " 2 use SNMP version 2\n" + " 3 use SNMP version 3\n" + " Note that SNMP version 3 usually uses both login and passwords!\n" + " SNMP version 3 has the following optional sub parameters:\n" + " MD5 use MD5 authentication (default)\n" + " SHA use SHA authentication\n" + " DES use DES encryption\n" + " AES use AES encryption\n" + " if no -p/-P parameter is given, SNMPv3 noauth is performed, which\n" + " only requires a password (or username) not both.\n" + "To combine the options, use colons (\":\"), e.g.:\n" + " hydra -L user.txt -P pass.txt -m 3:SHA:AES:READ target.com snmp\n" + " hydra -P pass.txt -m 2 target.com snmp\n"); +} diff --git a/services/hydra-sshkey.c b/services/hydra-sshkey.c index 74df1e8..a8b3ec0 100644 --- a/services/hydra-sshkey.c +++ b/services/hydra-sshkey.c @@ -164,3 +164,10 @@ int service_sshkey_init(char *ip, int sp, unsigned char options, char *miscptr, return 0; } + +void usage_sshkey(const char* service) { + printf("Module sshkey does not provide additional options, although the semantic for\n" + "options -p and -P is changed:\n" + " -p expects a path to an unencrypted private key in PEM format.\n" + " -P expects a filename containing a list of path to some unencrypted\n" " private keys in PEM format.\n\n"); +} diff --git a/services/hydra-svn.c b/services/hydra-svn.c index ec1efae..2e4b06a 100644 --- a/services/hydra-svn.c +++ b/services/hydra-svn.c @@ -212,3 +212,7 @@ int service_svn_init(char *ip, int sp, unsigned char options, char *miscptr, FIL return 0; } + +void usage_svn(const char* service) { + printf("Module svn is optionally taking the repository name to attack, default is \"trunk\"\n\n"); +} diff --git a/services/hydra-telnet.c b/services/hydra-telnet.c index b5ba065..caecdd4 100644 --- a/services/hydra-telnet.c +++ b/services/hydra-telnet.c @@ -217,3 +217,8 @@ int service_telnet_init(char *ip, int sp, unsigned char options, char *miscptr, return 0; } + +void usage_telnet(const char* service) { + printf("Module telnet is optionally taking the string which is displayed after\n" + "a successful login (case insensitive), use if the default in the telnet\n" "module produces too many false positives\n\n"); +} diff --git a/services/hydra-xmpp.c b/services/hydra-xmpp.c index db38fe0..ffd2552 100644 --- a/services/hydra-xmpp.c +++ b/services/hydra-xmpp.c @@ -498,3 +498,9 @@ int service_xmpp_init(char *ip, int sp, unsigned char options, char *miscptr, FI return 0; } + +void usage_xmpp(const char* service) { + printf("Module xmpp is optionally taking one authentication type of:\n" + " LOGIN (default), PLAIN, CRAM-MD5, DIGEST-MD5, SCRAM-SHA1\n\n" + "Note, the target passed should be a fdqn as the value is used in the Jabber init request, example: hermes.jabber.org\n\n"); +}