Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- smali code:
- .class public Lhello;
- .super Ljava/lang/Object;
- .method public static main()V
- .registers 2
- invoke-static {}, Ljava/lang/Runtime;->getRuntime()Ljava/lang/Runtime;
- move-result-object v0
- const-string v1, "echo hello"
- invoke-virtual {v0, v1}, Ljava/lang/Runtime;->exec(Ljava/lang/String;)Ljava/lang/Process;
- .end method
- logcat:
- D/dalvikvm( 8473): DexOpt: --- BEGIN 'hello.zip' (bootstrap=0) ---
- D/dalvikvm( 8477): creating instr width table
- D/dalvikvm( 8477): DexOpt: load 0ms, verify 0ms, opt 0ms
- D/dalvikvm( 8473): DexOpt: --- END 'hello.zip' (success) ---
- D/dalvikvm( 8473): DEX prep '/data/local/hello.zip': unzip in 0ms, rewrite 25ms
- W/dalvikvm( 8473): VFY: execution can walk off end of code area (from 0x6)
- W/dalvikvm( 8473): VFY: rejected Lhello;.main ()V
- W/dalvikvm( 8473): Verifier rejected class Lhello;
- W/dalvikvm( 8473): threadid=1: thread exiting with uncaught exception (group=0x4
- 001d660)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement