Advertisement
Guest User

Untitled

a guest
Jun 26th, 2017
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.95 KB | None | 0 0
  1. smali code:
  2.  
  3. .class public Lhello;
  4. .super Ljava/lang/Object;
  5.  
  6. .method public static main()V
  7. .registers 2
  8.  
  9.     invoke-static {}, Ljava/lang/Runtime;->getRuntime()Ljava/lang/Runtime;
  10.  
  11.     move-result-object v0
  12.  
  13.     const-string v1, "echo hello"
  14.  
  15.     invoke-virtual {v0, v1}, Ljava/lang/Runtime;->exec(Ljava/lang/String;)Ljava/lang/Process;
  16.    
  17. .end method
  18.  
  19. logcat:
  20.  
  21. D/dalvikvm( 8473): DexOpt: --- BEGIN 'hello.zip' (bootstrap=0) ---
  22. D/dalvikvm( 8477): creating instr width table
  23. D/dalvikvm( 8477): DexOpt: load 0ms, verify 0ms, opt 0ms
  24. D/dalvikvm( 8473): DexOpt: --- END 'hello.zip' (success) ---
  25. D/dalvikvm( 8473): DEX prep '/data/local/hello.zip': unzip in 0ms, rewrite 25ms
  26. W/dalvikvm( 8473): VFY: execution can walk off end of code area (from 0x6)
  27. W/dalvikvm( 8473): VFY:  rejected Lhello;.main ()V
  28. W/dalvikvm( 8473): Verifier rejected class Lhello;
  29. W/dalvikvm( 8473): threadid=1: thread exiting with uncaught exception (group=0x4
  30. 001d660)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement