SHARE
TWEET

Untitled

a guest Jun 8th, 2017 74 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. int __usercall main<eax>(int a1<ebx>, int a2<ebp>, char a3)
  2. {
  3.   int v3; // eax@6
  4.   int v4; // eax@7
  5.   char v6; // [sp+1Fh] [bp-21h]@3
  6.   char v7; // [sp+28h] [bp-18h]@1
  7.   char v8; // [sp+2Ch] [bp-14h]@1
  8.   char *v9; // [sp+30h] [bp-10h]@1
  9.   int v10; // [sp+34h] [bp-Ch]@1
  10.   int v11; // [sp+38h] [bp-8h]@1
  11.   void *v12; // [sp+3Ch] [bp-4h]@1
  12.   void *v13; // [sp+40h] [bp+0h]@1
  13.  
  14.   v12 = v13;
  15.   v11 = a2;
  16.   v10 = a1;
  17.   v9 = &a3;
  18.   std__string__string((int)&v8);
  19.   std__string__string((int)&v7);
  20.   std__operator___std__char_traits_char__(std__cout, "Username: ");
  21.   std__getline_char_std__char_traits_char__std__allocator_char__(std__cin, &v8);
  22.   std__operator___std__char_traits_char__(std__cout, "Password: ");
  23.   std__getline_char_std__char_traits_char__std__allocator_char__(std__cin, &v7);
  24.   v6 = !(std__operator___char_std__char_traits_char__std__allocator_char__((int)&v8, (int)"level2") ^ 1)
  25.     && !(std__operator___char_std__char_traits_char__std__allocator_char__((int)&v7, (int)"PassFor2") ^ 1);
  26.   if ( v6 )
  27.   {
  28.     v3 = std__operator___std__char_traits_char__(std__cout, "Welcome, level 2!");
  29.     std__ostream__operator__(v3, (int (*)(void))std__endl_char_std__char_traits_char__);
  30.     system("/bin/sh");
  31.   }
  32.   else
  33.   {
  34.     v4 = std__operator___std__char_traits_char__(std__cout, "Invalid username or password");
  35.     std__ostream__operator__(v4, (int (*)(void))std__endl_char_std__char_traits_char__);
  36.   }
  37.   std__string___string(&v7);
  38.   std__string___string(&v8);
  39.   return 0;
  40. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top