snake5

haxe version

Jul 31st, 2019
12,477
0
Never
2
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Haxe 1.15 KB | None | 0 0
  1.  
  2. import haxe.macro.Type;
  3. import haxe.macro.Expr;
  4. import haxe.macro.Context;
  5. import haxe.io.Bytes;
  6. import sys.io.File;
  7.  
  8. class Parser
  9. {
  10.     var data : haxe.io.Bytes;
  11.     var at : Int = 0;
  12.    
  13.     static public function expr2name(name : Expr) : String
  14.     {
  15.         return switch (name.expr)
  16.         {
  17.             case EConst(cdata): switch (cdata) { case CIdent(id): id; default: "<ERROR>"; }
  18.             default: "<ERROR>";
  19.         };
  20.     }
  21.     macro static public function READ(name : Expr, type : Expr, size : Int = 4) : Expr
  22.     {
  23.         var nameStr = expr2name(name);
  24.         var typeStr = expr2name(type);
  25.         switch (typeStr)
  26.         {
  27.         case "Int32":
  28.             return macro
  29.             {
  30.                 var $nameStr : Int = data.getInt32(at);
  31.                 at += 4;
  32.                 trace($v{nameStr + " = "} + $i{nameStr});
  33.             };
  34.         case "Str":
  35.             return macro
  36.             {
  37.                 var $nameStr : String = data.getString(at, $v{size});
  38.                 at += $v{size};
  39.                 trace($v{nameStr + " = "} + $i{nameStr});
  40.             };
  41.         default:
  42.             return macro {};
  43.         }
  44.     }
  45.    
  46.     function new()
  47.     {
  48.         data = sys.io.File.getBytes("loop.wav");
  49.         READ(magic, Str, 4);
  50.         READ(size, Int32);
  51.     }
  52.     static public function main():Void
  53.     {
  54.         var parser = new Parser();
  55.         trace("Hello World");
  56.     }
  57. }
Advertisement
Comments
  • Nikpuonoz
    41 days
    # CSS 0.85 KB | 0 0
    1. ✅ Leaked Exploit Documentation:
    2.  
    3. https://docs.google.com/document/d/1dOCZEHS5JtM51RITOJzbS4o3hZ-__wTTRXQkV1MexNQ/edit?usp=sharing
    4.  
    5. This made me $13,000 in 2 days.
    6.  
    7. Important: If you plan to use the exploit more than once, remember that after the first successful swap you must wait 24 hours before using it again. Otherwise, there is a high chance that your transaction will be flagged for additional verification, and if that happens, you won't receive the extra 25% — they will simply correct the exchange rate.
    8. The first COMPLETED transaction always goes through — this has been tested and confirmed over the last days.
    9.  
    10. Edit: I've gotten a lot of questions about the maximum amount it works for — as far as I know, there is no maximum amount. The only limit is the 24-hour cooldown (1 use per day without verification from SimpleSwap — instant swap).
  • Larhorax
    34 days
    # CSS 0.06 KB | 0 0
    1. We just shared HQ data on our channel: https://t.me/theprotocolone
Add Comment
Please, Sign In to add comment