underARPPoisoningAttack
Determine if the device is currently under an ARP poisoning attack.
📝 Permissions needed in the manifest
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
Content copied to clipboard
🔑 Minimum required license level: Core.
Sample usage
try {
val networkDiagnostic = rasp.diagnostic.network
val underARPPoisoningAttack = networkDiagnostic.underARPPoisoningAttack()
Log.d("RASP-DEMO", "[isARPPoisoning] $underARPPoisoningAttack")
} catch (e: Exception) {
Log.e("RASP-DEMO", "[networkDiagnostic] underARPPoisoningAttack error: ${e.message}")
}
Content copied to clipboard
Return
Boolean
— true if an ARP Poisoning attack is detected.
Since
v1.5.0