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

OneTap for Android and Micronaut

Android ViewModel with Variable Arguments

Creating Lists — How to Implement RecyclerView in the MVVM? Use DiffUtils

Intermediate: Integration of Huawei Game Services in Flutter (Cross platform)

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

How to Fix Roblox Arceus X Crash

How to Fix Roblox Arceus X Crash

PWA vs SPA vs Native Mobile Application — What’s Right?

A Definitive Guide to Clean Architecture in Android with MVVM

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

Detecting and Fetching Bank Card Details using Huawei ML Kit in Flutter

Harmony OS: How to release an app?

Track the Motion using Huawei Map Kit and Location Kit in Android app (Kotlin)

Android-Pentesting- Android Appsec (Kotlin) HTTP & HTTPS Traffic