#TodayILearned
  • Intro
  • Mobile
    • ADB
    • Bundletool
    • Frida
    • Objection
    • Apktool
    • Patching Smali
    • jadx
    • Xamarin
    • Emulator
    • Correlium
  • Network
    • Bettercap
  • Red Team
    • Unicorn
    • Macros
    • Defense Evasion
      • Load shellcode from memory using Golang
      • Hershell
    • Initial Compromise
      • Password Spraying
  • Web
    • Burp
    • IIS
  • Pentest
    • Metasploit
    • sqlmap
    • Hashcat
  • Miscellaneous
  • Recon
  • Docker
    • GitHub
    • Pulling from an insecure registry
    • Exploring a Docker image
  • Recon
    • Aquatone
    • Censys
    • MassDNS
    • S3 buckets enumeration with ffuf
    • Shodan
  • Flutter
    • Privilege Escalation
  • SSTI
Powered by GitBook
On this page
  • Before
  • After

Was this helpful?

  1. Mobile

Patching Smali

Patching the method retrievePaywallIsOpen to always return true (0x1)

Before

.method public retrievePayWallIsOpen()Z
    .locals 3

    .line 12
    iget-object v0, p0, Lcom/xxx/xxx/paywall/PayWallStorageImpl;->sharedPreferences:Landroid/content/SharedPreferences;

    const-string v1, "pay_wall_is_open"

    const/4 v2, 0x0

    invoke-interface {v0, v1, v2}, Landroid/content/SharedPreferences;->getBoolean(Ljava/lang/String;Z)Z

    move-result v0

    return v0
.end method

After

.method public retrievePayWallIsOpen()Z
    .locals 1

    const/4 v0, 0x1

    return v0
.end method
PreviousApktoolNextjadx

Last updated 6 years ago

Was this helpful?