Android Hacking & Securing “Insecure Shop” — Hidden Credentials

Attacking

fun verifyUserNamePassword(username: String, password: String): Boolean {
if (getUserCreds().containsKey(username)) {
val passwordValue = getUserCreds()[username]
return passwordValue.equals(password)
} else {
return false
}
}
private fun getUserCreds(): HashMap<String,String> {
val userCreds = HashMap<String, String>()
userCreds["shopuser"] = "!ns3csh0p"
return userCreds
}

Securing

--

--

--

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Choose the Right On-Device Text Recognition (OCR) SDK on Android Using DeltaML

Shortcuts Will Work For You In Android Studio

Nova Launcher Apk Download NEW 2021

Nova Launcher Apk Download NEW 2021

Integrating Huawei Remote Configuration and In-App Purchase in Flutter QuizApp (Cross platform)

Intermediate: Integration of Huawei HiAI Scene Detection in Android

Exploring Native Functions with Frida on Android — part 1

Android system libraries in /system/lib64

Writing a Serverless Android app (ft. Huawei’s AppGallery Connect) — Part 3 — More CloudDB

Bottom Navigation View using Navigation Component with Badge…

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Daniel Llewellyn

Daniel Llewellyn

More from Medium

Implementing TLS Certificate Checking in Android Apps

Android Pentesting-Intents

Rise of Super Apps — A Boon or Bane?

Log4Shell: An Overview