Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int __usercall main<eax>(int a1<ebx>, int a2<ebp>, char a3)
- {
- int v3; // eax@6
- int v4; // eax@7
- char v6; // [sp+1Fh] [bp-21h]@3
- char v7; // [sp+28h] [bp-18h]@1
- char v8; // [sp+2Ch] [bp-14h]@1
- char *v9; // [sp+30h] [bp-10h]@1
- int v10; // [sp+34h] [bp-Ch]@1
- int v11; // [sp+38h] [bp-8h]@1
- void *v12; // [sp+3Ch] [bp-4h]@1
- void *v13; // [sp+40h] [bp+0h]@1
- v12 = v13;
- v11 = a2;
- v10 = a1;
- v9 = &a3;
- std__string__string((int)&v8);
- std__string__string((int)&v7);
- std__operator___std__char_traits_char__(std__cout, "Username: ");
- std__getline_char_std__char_traits_char__std__allocator_char__(std__cin, &v8);
- std__operator___std__char_traits_char__(std__cout, "Password: ");
- std__getline_char_std__char_traits_char__std__allocator_char__(std__cin, &v7);
- v6 = !(std__operator___char_std__char_traits_char__std__allocator_char__((int)&v8, (int)"level2") ^ 1)
- && !(std__operator___char_std__char_traits_char__std__allocator_char__((int)&v7, (int)"PassFor2") ^ 1);
- if ( v6 )
- {
- v3 = std__operator___std__char_traits_char__(std__cout, "Welcome, level 2!");
- std__ostream__operator__(v3, (int (*)(void))std__endl_char_std__char_traits_char__);
- system("/bin/sh");
- }
- else
- {
- v4 = std__operator___std__char_traits_char__(std__cout, "Invalid username or password");
- std__ostream__operator__(v4, (int (*)(void))std__endl_char_std__char_traits_char__);
- }
- std__string___string(&v7);
- std__string___string(&v8);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement