|
Line 0
Link Here
|
|
|
1 |
--- hydra.c.orig Fri Oct 17 16:25:46 2003 |
| 2 |
+++ hydra.c Fri Oct 17 16:25:46 2003 |
| 3 |
@@ -55,33 +55,30 @@ |
| 4 |
static pid_t pids[MAXTASKS]; |
| 5 |
|
| 6 |
void help() { |
| 7 |
- printf("%s %s (c) 2002 by %s %s |
| 8 |
-Syntax: %s [[[-l LOGIN|-L FILE] [-p PASS|-P FILE]] | [-C FILE]] [-o FILE] [-t TASKS] [-g TASKS] [-w TIME] [-f] [-e ns] [-s PORT] [-S] server service [OPT]\n", |
| 9 |
+ printf("%s %s (c) 2002 by %s %s\n"\ |
| 10 |
+"Syntax: %s [[[-l LOGIN|-L FILE] [-p PASS|-P FILE]] | [-C FILE]] [-o FILE] [-t TASKS] [-g TASKS] [-w TIME] [-f] [-e ns] [-s PORT] [-S] server service [OPT]\n", |
| 11 |
PROGRAM,VERSION,AUTHOR,EMAIL,prg); |
| 12 |
printf("\nOptions:"); |
| 13 |
#ifdef HYDRA_SSL |
| 14 |
-printf(" |
| 15 |
- -S connect via SSL"); |
| 16 |
+printf("\n -S connect via SSL"); |
| 17 |
#endif |
| 18 |
-printf(" |
| 19 |
- -s PORT if the service is on a different default port, define it here |
| 20 |
- -l LOGIN or -L FILE login with LOGIN name, or load several logins from FILE |
| 21 |
- -p PASS or -P FILE try password PASS, or load several passwords from FILE |
| 22 |
- -e ns additional checks, \"n\" for null password, \"s\" try login as pass |
| 23 |
- -C FILE colon seperated \"login:pass\" format, instead of -L/-P option |
| 24 |
- -o FILE write found login/password pairs to FILE instead of stdout |
| 25 |
- -f exit after the first found login/password pair |
| 26 |
- -t TASKS run TASKS number of connects in parallel (default: %d) |
| 27 |
- -g TASKS start TASKS number per second until -t TASKS are reached |
| 28 |
- -w TIME in seconds, defines the max wait reply time (default: %d) |
| 29 |
- server the target server |
| 30 |
- service the service to crack. Supported protocols: [%s] |
| 31 |
- OPT some service modules need additional input, put it here |
| 32 |
- |
| 33 |
-%s is a tool to guess valid login/password pairs on a target server. |
| 34 |
-You can always find the newest version at %s |
| 35 |
-Use this tool only for legal purposes! |
| 36 |
-",TASKS,WAITTIME,SERVICES,PROGRAM,RESSOURCE); |
| 37 |
+printf("\n"\ |
| 38 |
+" -s PORT if the service is on a different default port, define it here\n"\ |
| 39 |
+" -l LOGIN or -L FILE login with LOGIN name, or load several logins from FILE\n"\ |
| 40 |
+" -p PASS or -P FILE try password PASS, or load several passwords from FILE\n"\ |
| 41 |
+" -e ns additional checks, \"n\" for null password, \"s\" try login as pass\n"\ |
| 42 |
+" -C FILE colon seperated \"login:pass\" format, instead of -L/-P option\n"\ |
| 43 |
+" -o FILE write found login/password pairs to FILE instead of stdout\n"\ |
| 44 |
+" -f exit after the first found login/password pair\n"\ |
| 45 |
+" -t TASKS run TASKS number of connects in parallel (default: %d)\n"\ |
| 46 |
+" -g TASKS start TASKS number per second until -t TASKS are reached\n"\ |
| 47 |
+" -w TIME in seconds, defines the max wait reply time (default: %d)\n"\ |
| 48 |
+" server the target server\n"\ |
| 49 |
+" service the service to crack. Supported protocols: [%s]\n"\ |
| 50 |
+" OPT some service modules need additional input, put it here\n\n"\ |
| 51 |
+"%s is a tool to guess valid login/password pairs on a target server.\n"\ |
| 52 |
+"You can always find the newest version at %s\n"\ |
| 53 |
+"Use this tool only for legal purposes!\n",TASKS,WAITTIME,SERVICES,PROGRAM,RESSOURCE); |
| 54 |
exit(-1); |
| 55 |
} |
| 56 |
|