#define NULL ((void *)0)
typedef unsigned long size_t; // Customize by platform.
typedef long intptr_t;
typedef unsigned long uintptr_t;
typedef long scalar_t__; // Either arithmetic or pointer type.
/* By default, we understand bool (as a convenience). */
typedef int bool;
#define false 0
#define true 1

/* Forward declarations */

/* Type definitions */

/* Variables and functions */
int /*<<< orphan*/ writeVerbose(int, char *, ...);
void showUsage() {
  writeVerbose(1, "%s (%s) %s :: %s\n", "mysql.mod", "2.0",
               "JoMo-Kun <jmk@foofus.net>",
               "Brute force module for MySQL sessions");
  writeVerbose(1, "Available module options:");
  writeVerbose(1, "  PASS:?  (PASSWORD*, HASH)");
  writeVerbose(1, "    PASSWORD: Use normal password.");
  writeVerbose(1, "    HASH:     Use a hash rather than a password. (non-SHA1 "
                  "hashes only)");
  writeVerbose(1, "\n(*) Default value");
  writeVerbose(1, "");
  writeVerbose(1, "Usage examples:");
  writeVerbose(1, "");
  writeVerbose(1, "1: Normal boring check...");
  writeVerbose(1,
               "    medusa -M mysql -h somehost -u someuser -p somepassword");
  writeVerbose(1, "");
  writeVerbose(1, "2: Using an old-style MySQL hash...");
  writeVerbose(1, "    medusa -M mysql -h somehost -U users.txt -p "
                  "39b52a209cf03d62 -m PASS:HASH");
  writeVerbose(1, "");
}


x86 assembly (clang, -O0):
<showUsage>:
push   %rbp
mov    %rsp,%rbp
mov    $0x1,%edi
lea    0xee0(%rip),%rsi
lea    0xeeb(%rip),%rdx
lea    0xeee(%rip),%rcx
lea    0xeeb(%rip),%r8
lea    0xefe(%rip),%r9
mov    $0x0,%al
call   1030 <writeVerbose@plt>
mov    $0x1,%edi
lea    0xf11(%rip),%rsi
mov    $0x0,%al
call   1030 <writeVerbose@plt>
mov    $0x1,%edi
lea    0xf18(%rip),%rsi
mov    $0x0,%al
call   1030 <writeVerbose@plt>
mov    $0x1,%edi
lea    0xf21(%rip),%rsi
mov    $0x0,%al
call   1030 <writeVerbose@plt>
mov    $0x1,%edi
lea    0xf31(%rip),%rsi
mov    $0x0,%al
call   1030 <writeVerbose@plt>
mov    $0x1,%edi
lea    0xf66(%rip),%rsi
mov    $0x0,%al
call   1030 <writeVerbose@plt>
mov    $0x1,%edi
lea    0xe63(%rip),%rsi
mov    $0x0,%al
call   1030 <writeVerbose@plt>
mov    $0x1,%edi
lea    0xf53(%rip),%rsi
mov    $0x0,%al
call   1030 <writeVerbose@plt>
mov    $0x1,%edi
lea    0xe3d(%rip),%rsi
mov    $0x0,%al
call   1030 <writeVerbose@plt>
mov    $0x1,%edi
lea    0xf3d(%rip),%rsi
mov    $0x0,%al
call   1030 <writeVerbose@plt>
mov    $0x1,%edi
lea    0xf44(%rip),%rsi
mov    $0x0,%al
call   1030 <writeVerbose@plt>
mov    $0x1,%edi
lea    0xe04(%rip),%rsi
mov    $0x0,%al
call   1030 <writeVerbose@plt>
mov    $0x1,%edi
lea    0xf5a(%rip),%rsi
mov    $0x0,%al
call   1030 <writeVerbose@plt>
mov    $0x1,%edi
lea    0xf6b(%rip),%rsi
mov    $0x0,%al
call   1030 <writeVerbose@plt>
mov    $0x1,%edi
lea    0xdcb(%rip),%rsi
mov    $0x0,%al
call   1030 <writeVerbose@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<showUsage>:
push   %rbx
lea    0xee8(%rip),%rsi
lea    0xef3(%rip),%rdx
lea    0xef6(%rip),%rcx
lea    0xef3(%rip),%r8
lea    0xf06(%rip),%r9
mov    $0x1,%edi
xor    %eax,%eax
call   1030 <writeVerbose@plt>
lea    0xf19(%rip),%rsi
mov    $0x1,%edi
xor    %eax,%eax
call   1030 <writeVerbose@plt>
lea    0xf20(%rip),%rsi
mov    $0x1,%edi
xor    %eax,%eax
call   1030 <writeVerbose@plt>
lea    0xf29(%rip),%rsi
mov    $0x1,%edi
xor    %eax,%eax
call   1030 <writeVerbose@plt>
lea    0xf39(%rip),%rsi
mov    $0x1,%edi
xor    %eax,%eax
call   1030 <writeVerbose@plt>
lea    0xf6e(%rip),%rsi
mov    $0x1,%edi
xor    %eax,%eax
call   1030 <writeVerbose@plt>
lea    0xe6b(%rip),%rbx
mov    $0x1,%edi
mov    %rbx,%rsi
xor    %eax,%eax
call   1030 <writeVerbose@plt>
lea    0xf58(%rip),%rsi
mov    $0x1,%edi
xor    %eax,%eax
call   1030 <writeVerbose@plt>
mov    $0x1,%edi
mov    %rbx,%rsi
xor    %eax,%eax
call   1030 <writeVerbose@plt>
lea    0xf46(%rip),%rsi
mov    $0x1,%edi
xor    %eax,%eax
call   1030 <writeVerbose@plt>
lea    0xf4d(%rip),%rsi
mov    $0x1,%edi
xor    %eax,%eax
call   1030 <writeVerbose@plt>
mov    $0x1,%edi
mov    %rbx,%rsi
xor    %eax,%eax
call   1030 <writeVerbose@plt>
lea    0xf67(%rip),%rsi
mov    $0x1,%edi
xor    %eax,%eax
call   1030 <writeVerbose@plt>
lea    0xf78(%rip),%rsi
mov    $0x1,%edi
xor    %eax,%eax
call   1030 <writeVerbose@plt>
mov    $0x1,%edi
mov    %rbx,%rsi
xor    %eax,%eax
pop    %rbx
jmp    1030 <writeVerbose@plt>

LLVM IR (-O0):
@.str = [18 x i8] c"%s (%s) %s :: %s\0A\00"
@.str.1 = [10 x i8] c"mysql.mod\00"
@.str.2 = [4 x i8] c"2.0\00"
@.str.3 = [26 x i8] c"JoMo-Kun <jmk@foofus.net>\00"
@.str.4 = [38 x i8] c"Brute force module for MySQL sessions\00"
@.str.5 = [26 x i8] c"Available module options:\00"
@.str.6 = [28 x i8] c" PASS:? (PASSWORD*, HASH)\00"
@.str.7 = [35 x i8] c" PASSWORD: Use normal password.\00"
@.str.8 = [72 x i8] c" HASH: Use a hash rather than a password. (non-SHA1 hashes only)\00"
@.str.9 = [19 x i8] c"\0A(*) Default value\00"
@.str.10 = [1 x i8] zeroinitializer
@.str.11 = [16 x i8] c"Usage examples:\00"
@.str.12 = [26 x i8] c"1: Normal boring check...\00"
@.str.13 = [60 x i8] c" medusa -M mysql -h somehost -u someuser -p somepassword\00"
@.str.14 = [36 x i8] c"2: Using an old-style MySQL hash...\00"
@.str.15 = [78 x i8] c" medusa -M mysql -h somehost -U users.txt -p 39b52a209cf03d62 -m PASS:HASH\00"
define void @showUsage() {
%1 = call i32 (i32, i8*, ...) @writeVerbose(i32 1, i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.4, i64 0, i64 0))
%2 = call i32 (i32, i8*, ...) @writeVerbose(i32 1, i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.5, i64 0, i64 0))
%3 = call i32 (i32, i8*, ...) @writeVerbose(i32 1, i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.6, i64 0, i64 0))
%4 = call i32 (i32, i8*, ...) @writeVerbose(i32 1, i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.7, i64 0, i64 0))
%5 = call i32 (i32, i8*, ...) @writeVerbose(i32 1, i8* getelementptr inbounds ([72 x i8], [72 x i8]* @.str.8, i64 0, i64 0))
%6 = call i32 (i32, i8*, ...) @writeVerbose(i32 1, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.9, i64 0, i64 0))
%7 = call i32 (i32, i8*, ...) @writeVerbose(i32 1, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.10, i64 0, i64 0))
%8 = call i32 (i32, i8*, ...) @writeVerbose(i32 1, i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.11, i64 0, i64 0))
%9 = call i32 (i32, i8*, ...) @writeVerbose(i32 1, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.10, i64 0, i64 0))
%10 = call i32 (i32, i8*, ...) @writeVerbose(i32 1, i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.12, i64 0, i64 0))
%11 = call i32 (i32, i8*, ...) @writeVerbose(i32 1, i8* getelementptr inbounds ([60 x i8], [60 x i8]* @.str.13, i64 0, i64 0))
%12 = call i32 (i32, i8*, ...) @writeVerbose(i32 1, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.10, i64 0, i64 0))
%13 = call i32 (i32, i8*, ...) @writeVerbose(i32 1, i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.14, i64 0, i64 0))
%14 = call i32 (i32, i8*, ...) @writeVerbose(i32 1, i8* getelementptr inbounds ([78 x i8], [78 x i8]* @.str.15, i64 0, i64 0))
%15 = call i32 (i32, i8*, ...) @writeVerbose(i32 1, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.10, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [18 x i8] c"%s (%s) %s :: %s\0A\00"
@.str.1 = [10 x i8] c"mysql.mod\00"
@.str.2 = [4 x i8] c"2.0\00"
@.str.3 = [26 x i8] c"JoMo-Kun <jmk@foofus.net>\00"
@.str.4 = [38 x i8] c"Brute force module for MySQL sessions\00"
@.str.5 = [26 x i8] c"Available module options:\00"
@.str.6 = [28 x i8] c" PASS:? (PASSWORD*, HASH)\00"
@.str.7 = [35 x i8] c" PASSWORD: Use normal password.\00"
@.str.8 = [72 x i8] c" HASH: Use a hash rather than a password. (non-SHA1 hashes only)\00"
@.str.9 = [19 x i8] c"\0A(*) Default value\00"
@.str.10 = [1 x i8] zeroinitializer
@.str.11 = [16 x i8] c"Usage examples:\00"
@.str.12 = [26 x i8] c"1: Normal boring check...\00"
@.str.13 = [60 x i8] c" medusa -M mysql -h somehost -u someuser -p somepassword\00"
@.str.14 = [36 x i8] c"2: Using an old-style MySQL hash...\00"
@.str.15 = [78 x i8] c" medusa -M mysql -h somehost -U users.txt -p 39b52a209cf03d62 -m PASS:HASH\00"
define void @showUsage() {
%1 = tail call i32 (i32, i8*, ...) @writeVerbose(i32 1, i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.4, i64 0, i64 0))
%2 = tail call i32 (i32, i8*, ...) @writeVerbose(i32 1, i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.5, i64 0, i64 0))
%3 = tail call i32 (i32, i8*, ...) @writeVerbose(i32 1, i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.6, i64 0, i64 0))
%4 = tail call i32 (i32, i8*, ...) @writeVerbose(i32 1, i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.7, i64 0, i64 0))
%5 = tail call i32 (i32, i8*, ...) @writeVerbose(i32 1, i8* getelementptr inbounds ([72 x i8], [72 x i8]* @.str.8, i64 0, i64 0))
%6 = tail call i32 (i32, i8*, ...) @writeVerbose(i32 1, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.9, i64 0, i64 0))
%7 = tail call i32 (i32, i8*, ...) @writeVerbose(i32 1, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.10, i64 0, i64 0))
%8 = tail call i32 (i32, i8*, ...) @writeVerbose(i32 1, i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.11, i64 0, i64 0))
%9 = tail call i32 (i32, i8*, ...) @writeVerbose(i32 1, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.10, i64 0, i64 0))
%10 = tail call i32 (i32, i8*, ...) @writeVerbose(i32 1, i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.12, i64 0, i64 0))
%11 = tail call i32 (i32, i8*, ...) @writeVerbose(i32 1, i8* getelementptr inbounds ([60 x i8], [60 x i8]* @.str.13, i64 0, i64 0))
%12 = tail call i32 (i32, i8*, ...) @writeVerbose(i32 1, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.10, i64 0, i64 0))
%13 = tail call i32 (i32, i8*, ...) @writeVerbose(i32 1, i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.14, i64 0, i64 0))
%14 = tail call i32 (i32, i8*, ...) @writeVerbose(i32 1, i8* getelementptr inbounds ([78 x i8], [78 x i8]* @.str.15, i64 0, i64 0))
%15 = tail call i32 (i32, i8*, ...) @writeVerbose(i32 1, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.10, i64 0, i64 0))
ret void
}